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)
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 'currency_ id'): get('res. company' ).browse( cr,uid, vals['company_ id']).currency_ id.id update( currency_ id=comp_ curr)
if not vals.get(
comp_curr = self.pool.
vals.
This fixes the issue.
Thanks