From 8bbffd2729d003284ccef10bc00f246f14f4b23e Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Wed, 28 Feb 2024 16:00:55 +0700 Subject: change to non mandatory field --- indoteknik_custom/models/account_move.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index b505850f..58e462a0 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -40,7 +40,7 @@ class AccountMove(models.Model): new_invoice_day_to_due = fields.Integer(string="New Day Due", compute="_compute_invoice_day_to_due") date_efaktur_upload = fields.Datetime(string='eFaktur Upload Date', tracking=True) real_invoice_id = fields.Many2one( - 'res.partner', string='Delivery Invoice Address', readonly=True, required=True, + 'res.partner', string='Delivery Invoice Address', readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)], 'sale': [('readonly', False)]}, domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]", help="Dipakai untuk alamat tempel") -- cgit v1.2.3