point_of_sale : invoice line should use account of property of partner OR of category of product?

Bug #666051 reported by Cristian Salamea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Opinion
Undecided
Dhruti Shastri(OpenERP)

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,

description: updated
description: updated
Changed in openobject-addons:
assignee: nobody → DHS(OpenERP) (dhs-openerp)
summary: - action_invoice setting wrong the account
+ point_of_sale : invoice line should use account of property of partner
+ OR of category of product?
Changed in openobject-addons:
status: New → Opinion
Revision history for this message
Cristian Salamea (ovnicraft) wrote :

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,

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.