diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2024-05-31 15:09:25 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2024-05-31 15:09:25 +0700 |
| commit | 322bdf115ff1c47d242739f09424f759c7aabe7f (patch) | |
| tree | 84ead35028a647a95cb8357ed2d7072f63c1d829 /fixco_api | |
| parent | aae5fa0956b49b8fd3fb46ec1c87d9e9fa56603f (diff) | |
fix discount while create invoice
Diffstat (limited to 'fixco_api')
| -rw-r--r-- | fixco_api/models/sale.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fixco_api/models/sale.py b/fixco_api/models/sale.py index 5ddd581..b7f404c 100644 --- a/fixco_api/models/sale.py +++ b/fixco_api/models/sale.py @@ -32,7 +32,7 @@ class SaleOrder(models.Model): sale_orders = self.env['sale.order'].search([('id', '=', sale_order_id)]) # if self.advance_payment_method == 'delivered': - invoices = sale_orders._create_invoices(final=False) + invoices = sale_orders._create_invoices(final=True) data = [] for invoice in invoices: invoice.action_post() |
