← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 666051] Re: point_of_sale : invoice line should use account of property of partner OR of category of product?

 

Well, IMHO the category of product,  this generate the right
account.move, with demo data:

Debtors (value) at credit vs Product Sales ( value) at debit choosing
the account partner as do it module now we get the bug and check the
code onchange methods are called what update the account.invoice.line,
To use POS i assume the accountant people get configured categories and
action_invoice will create correctly the invoice.

regards,

-- 
point_of_sale : invoice line should use account of property of partner OR of category of product?
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: Opinion

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