diff options
| author | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2021-05-05 10:49:26 +0000 |
|---|---|---|
| committer | Andrea Grazioso (agr-odoo) <agr@odoo.com> | 2021-05-05 10:49:26 +0000 |
| commit | 8f6e2fa1096f57ace6c84ae6083ab77ee37a69a1 (patch) | |
| tree | ab9bca3a4c6372cab678500e5af8ed3be6b7afa1 /addons/repair | |
| parent | 1688265fe2f79385e7171b257489ae103288beee (diff) | |
[FIX] repair: correctly group invoices
Have 2 repair records with the same partner_id, ready to be invoiced
In list view select both records and click Action>Create invoices
In the wizard check 'Group by partner invoice address', create invoices.
Separate invoices will be created, but while grouping 1 invoice should
be created joining the 2 repairs
opw-2476539
closes odoo/odoo#70404
Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/repair')
| -rw-r--r-- | addons/repair/models/repair.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/repair/models/repair.py b/addons/repair/models/repair.py index 6110ea751fa..7ca599d9e9f 100644 --- a/addons/repair/models/repair.py +++ b/addons/repair/models/repair.py @@ -334,7 +334,7 @@ class Repair(models.Model): if not journal: raise UserError(_('Please define an accounting sales journal for the company %s (%s).') % (company.name, company.id)) - if (partner_invoice.id, currency.id) not in grouped_invoices_vals: + if (partner_invoice.id, currency.id, company.id) not in grouped_invoices_vals: grouped_invoices_vals[(partner_invoice.id, currency.id, company.id)] = [] current_invoices_list = grouped_invoices_vals[(partner_invoice.id, currency.id, company.id)] |
