← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 703288] Re: V5 - account_v6_reports_backport - missing company_id in account_move_line

 

I installed the backport in V5 - and account_move_line has had no
company_id -

I didn't investigate further and added company_id manually

may be company_id is added only if multicompany is installed - which was
not the case.

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/703288

Title:
  V5 - account_v6_reports_backport - missing company_id in
  account_move_line

Status in OpenERP Modules (addons):
  Incomplete

Bug description:
       return account.balance
     File "/home/terp/OpenERP/branch/server/5.0/bin/osv/orm.py", line 239, in __getattr__
       return self[name]
     File "/home/terp/OpenERP/branch/server/5.0/bin/osv/orm.py", line 189, in __getitem__
       datas = self._table.read(self._cr, self._uid, ids, fffields, context=self._context, load="_classic_write")
     File "/home/terp/OpenERP/branch/server/5.0/bin/osv/orm.py", line 2229, in read
       result = self._read_flat(cr, user, select, fields, context, load)
     File "/home/terp/OpenERP/branch/server/5.0/bin/osv/orm.py", line 2355, in _read_flat
       res2 = self._columns[val[0]].get(cr, self, ids, val, user, context=context, values=res)
     File "/home/terp/OpenERP/branch/server/5.0/bin/osv/fields.py", line 659, in get
       res = self._fnct(obj, cr, user, ids, name, self._arg, context)
     File "/home/terp/OpenERP/branch/server/5.0/bin/addons/account/account.py", line 347, in __compute
       " GROUP BY l.account_id " ) % (acc_set,acc_set_previous,))
     File "/home/terp/OpenERP/branch/server/5.0/bin/sql_db.py", line 77, in wrapper
       return f(self, *args, **kwargs)
     File "/home/terp/OpenERP/branch/server/5.0/bin/sql_db.py", line 122, in execute
       res = self._obj.execute(query, params)
   ProgrammingError
   LINE 1

  works after adding company_id to account_move_line





References