mirror of
https://bitbucket.org/presik/trytonpsk-sale_pos.git
synced 2023-12-14 07:13:02 +01:00
sendmail invoice electronic in pos and modify domain in report shopdaily
This commit is contained in:
parent
eebdbc5aef
commit
6e721c84a2
2
sale.py
2
sale.py
|
@ -559,6 +559,8 @@ class Sale(metaclass=PoolMeta):
|
|||
Invoice.validate_invoice([invoice])
|
||||
if hasattr(Invoice, 'submit'):
|
||||
Invoice.submit([invoice])
|
||||
if invoice.electronic_state == 'authorized':
|
||||
Invoice.send_email([invoice])
|
||||
|
||||
if invoice.invoice_type in ('P', 'M', 'C') or (
|
||||
hasattr(invoice, 'cufe') and invoice.cufe):
|
||||
|
|
Loading…
Reference in a new issue