From 50054732da991bdd966f4fba879c33ee853879ff Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 3 Jun 2025 14:04:36 +0700 Subject: create receipt after invoice paid and schema invoice --- fixco_api/models/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fixco_api/models/invoice.py') diff --git a/fixco_api/models/invoice.py b/fixco_api/models/invoice.py index dc21fd3..33d74fa 100755 --- a/fixco_api/models/invoice.py +++ b/fixco_api/models/invoice.py @@ -17,7 +17,7 @@ class Invoice(models.Model): 'partner_id': invoice.partner_id.id, 'amount': invoice.amount_residual, 'date': invoice.invoice_date, - 'journal_id': invoice.partner_id.ginee_journal_id.id, + 'journal_id': invoice.partner_id.ginee_journal_id.id or 24, 'payment_method_id': self.env.ref('account.account_payment_method_manual_in').id, 'ref': invoice.name, # 'communication': invoice.name, -- cgit v1.2.3