c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #01020
[Bug 666051] [NEW] action_invoice setting wrong the account
Public bug reported:
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,
** Affects: openobject-addons
Importance: Undecided
Status: New
** Description changed:
Hello, when action_invoice is called from POS, the process configure data wrong.
- In line: acc= order.partner_id.property_account_receivable.id you read the account for account.invoice model (its ok), the this acc is assigned in inv_line var with: inv_line['account_id'] = acc, this break the concept to call onchange before and update inv_line with data returned.
+ 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), the this acc is assigned in inv_line var with: inv_line['account_id'] = acc, this break the concept to call onchange 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 changed:
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), the this acc is assigned in inv_line var with: inv_line['account_id'] = acc, this break the concept to call onchange before and update inv_line with data returned.
+ 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,
--
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,
Follow ups
References