update 7.6
This commit is contained in:
6
sale.py
6
sale.py
@@ -69,13 +69,15 @@ class Sale(metaclass=PoolMeta):
|
||||
to_post = set()
|
||||
for sale in sales:
|
||||
grouping = getattr(sale.party, 'sale_invoice_grouping_method',
|
||||
False)
|
||||
False)
|
||||
if Transaction().context.get('skip_grouping', False):
|
||||
grouping = None
|
||||
if getattr(sale, 'invoices', None) and not grouping:
|
||||
for invoice in sale.invoices:
|
||||
if not invoice.state == 'draft':
|
||||
continue
|
||||
sale.set_basic_values_to_invoice(invoice)
|
||||
invoices.extend(([invoice], invoice._save_values))
|
||||
invoices.extend(([invoice], invoice._save_values()))
|
||||
to_post.add(invoice)
|
||||
|
||||
if to_post:
|
||||
|
||||
Reference in New Issue
Block a user