V5 - account_v6_reports_backport - missing company_id in account_move_line

Bug #703288 reported by Ferdinand
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Low
Jay Vora (Serpent Consulting Services)

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

Changed in openobject-addons:
importance: Undecided → Low
Changed in openobject-addons:
assignee: nobody → Jay Vora (OpenERP) (jvo-openerp)
status: New → Triaged
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Dr. Ferdinand,

Can you please describe when do you happen to meet this problem?

Thanks.

Changed in openobject-addons:
status: Triaged → Incomplete
Revision history for this message
Ferdinand (office-chricar) wrote :

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.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Dr. Ferdinand,

Do you still face this error?

Thanks.

Revision history for this message
Serpent Consulting Services (serpent-consulting-services) wrote :

Seems invalid.
Can still be reopened if faced again!

Changed in openobject-addons:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.