Browse Source

contract_sale_invoicing fix moved field

Since that commit : a429b10c20, account_analytic_id has been moved to group_id.
pull/400/head
Martronic SA 5 years ago
committed by GitHub
parent
commit
a18abf049f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      contract_sale_invoicing/models/contract.py

2
contract_sale_invoicing/models/contract.py

@ -19,7 +19,7 @@ class ContractContract(models.Model):
if not self.invoicing_sales:
return invoices
sales = self.env['sale.order'].search([
('analytic_account_id', '=', self.analytic_account_id.id),
('analytic_account_id', '=', self.group_id.id),
('partner_invoice_id', 'child_of',
self.partner_id.commercial_partner_id.ids),
('invoice_status', '=', 'to invoice'),

Loading…
Cancel
Save