summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-04-24 14:55:07 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-04-24 14:55:07 +0700
commit398bcb1df3b86ba7a0ca83499ae706f1581d02b9 (patch)
treecd31c5802bea187f8f140a4a572d55c15503a78d
parent0c577a495101b4f8b6034d3fe097a0a53502d9b2 (diff)
remove readonly real_invoice_id on sale order
-rwxr-xr-xindoteknik_custom/models/sale_order.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index f9f849ca..6e32ca79 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -40,8 +40,7 @@ class SaleOrder(models.Model):
domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]",
help="Dipakai untuk alamat tempel")
real_invoice_id = fields.Many2one(
- 'res.partner', string='Delivery Invoice Address', readonly=True, required=True,
- states={'draft': [('readonly', False)], 'sent': [('readonly', False)], 'sale': [('readonly', False)]},
+ 'res.partner', string='Delivery Invoice Address', required=True,
domain="['|', ('company_id', '=', False), ('company_id', '=', company_id)]",
help="Dipakai untuk alamat tempel")
fee_third_party = fields.Float('Fee Pihak Ketiga')