diff options
| author | Thibault Francois <tfr@openerp.com> | 2020-02-19 12:35:13 +0000 |
|---|---|---|
| committer | Thibault Francois <tfr@openerp.com> | 2020-03-10 10:16:12 +0000 |
| commit | 25e39cdf1b460277f306104c5d1beaaee70c0d5b (patch) | |
| tree | 751f988ae7539317af92897b6eabe6b32fcd1799 /doc/reference/javascript_reference.rst | |
| parent | 680b2797d8809f48718ad3a04bbde86dbd197063 (diff) | |
[FIX] account: set proper account_id one line
When you create a invoice from a sale_order
the account was taken from the journal and
it should comes from the product
or the product_categories and in last resort the journal
and finally fiscal position should have been apply.
It was not the case anymore,
because setting the partner_id prior the account_id
trigger the default_get on the account_id which
in that case take the wrong value
closes odoo/odoo#47267
Solution: set first the account_id then the partner_id
X-original-commit: 857564367691f3f11572f718499c9d22c823c421
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
