diff options
| author | Nicolas Galler <ngl@odoo.com> | 2020-10-13 15:30:47 +0000 |
|---|---|---|
| committer | Nicolas Galler <ngl@odoo.com> | 2020-10-19 15:31:41 +0000 |
| commit | 32841c894fb89db14c0668083aa618c24f4f7cda (patch) | |
| tree | c66c2b46e363e2c94ab1ef1f84f07e01ef8d5172 /doc/reference/javascript_reference.rst | |
| parent | f8737b4676ea86abc0f39e448849453f28d4b10f (diff) | |
[FIX] account: use commercial partner id for auto computed lines
Behavior before the fix:
- if you create a sales order for a customer invoice address (a child
partner record), then create the invoice for that order, the partner_id
is not consistent between the move_line (some get the child partner id,
some get the commercial partner id = the parent partner id)
- if you create the invoice directly from the accounting app for a
child partner, the commercial partner id is used consistently for all
move lines (the invoice itself keeps the child partner id)
Behavior after the fix:
- when an invoice is created from a sales order, the partner id is set
using the commercial partner id, consistently for all lines (in this way
the behavior is consistent with that of the accounting app)
It is more appropriate to use the commercial_partner_id for this purpose
as it is used pretty consistently in the account_move file
opw-2347878
closes odoo/odoo#60296
X-original-commit: cd299518ae45f2732d47788869b013be16b814e8
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
Signed-off-by: Nicolas Galler <nicocrm@users.noreply.github.com>
Diffstat (limited to 'doc/reference/javascript_reference.rst')
0 files changed, 0 insertions, 0 deletions
