← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 666051] Re: action_invoice setting wrong the account

 

** Changed in: openobject-addons
     Assignee: (unassigned) => DHS(OpenERP) (dhs-openerp)

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

Status in OpenObject Addons Modules: New

Bug description:
Hello, when action_invoice is called from POS, the process configure data wrong.
In file point_of_sale/pos.py line: acc= order.partner_id.property_account_receivable.id you read the account for account.invoice model (its ok), then this acc is assigned in inv_line var with: inv_line['account_id'] = acc, this break the concept to call product_id_change before and update inv_line with data returned.
If wkf is called the move created is:

Debtors   100(debit)
Debtors                       100(credit)

i deleted the inv_line['account_id'] = acc and everything works correctly.

You can reproduce the bug, checking Invoice in Make payment from POS and looks the account.move created.

Regards,







References