Code review comment for lp:~openerp-dev/openobject-addons/6.1-opw-577235-skh

Revision history for this message
Nehal Panchal (OpenERP) (nep-openerp) wrote :

Hello,

When create new journal item using menu:Accounting/Customers/Journal Items and Accounting/Suppliers/Journal Items, record cannot be saved due to keyerror of company_id.

In the previous fix company_id is not passed while creating new journal item in
if not vals.get('currency_id'):
     comp_curr = self.pool.get('res.company').browse(cr,uid,vals['company_id']).currency_id.id
     vals.update(currency_id=comp_curr)

This fixes the issue.

Thanks

review: Needs Resubmitting

« Back to merge proposal