diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2018-07-27 09:50:44 +0200 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2018-07-30 10:06:13 +0200 |
| commit | 510fe712ee1481b37aca2dd771038737f6d78bd5 (patch) | |
| tree | 85084270403628eb8187ba2ea5a8d060d5379776 /addons | |
| parent | 8ee329c1dcc47c55f2243a7bc2752097f17c98f5 (diff) | |
[FIX] account: transmit analytic tags in credit note
Have an invoice with analytic tags
Create a credit note
Before this commit, the tags on the invoice lines
are not transmitted to the credit note's lines
After this commit, they are
OPW 1866432
closes #26010
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/account/models/account_invoice.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index cd0da9220e3..9ab256f4042 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -1250,6 +1250,8 @@ class AccountInvoice(models.Model): values[name] = line[name] elif name == 'invoice_line_tax_ids': values[name] = [(6, 0, line[name].ids)] + elif name == 'analytic_tag_ids': + values[name] = [(6, 0, line[name].ids)] result.append((0, 0, values)) return result |
