diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2025-03-27 09:21:30 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2025-03-27 09:21:30 +0700 |
| commit | 91e2374469c3def7f980e7a079782cc3e2238424 (patch) | |
| tree | 122d1fa2cb3b7c5b49cb17a82086c838bd95ddda | |
| parent | 6a0664215fab4f63928092d98214acb7b68fdff5 (diff) | |
| parent | a83022f278c3fbe6a8ed6ae92a2ffee2e4a7c992 (diff) | |
Merge branch 'odoo-backup' of bitbucket.org:altafixco/indoteknik-addons into odoo-backup
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index 89ed0327..4c057f27 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -668,6 +668,7 @@ class SaleOrder(models.Model): if self.email and not re.match(pattern, self.email): raise UserError('Email yang anda input kurang valid') + @api.constrains('delivery_amt', 'carrier_id', 'shipping_cost_covered') def _validate_delivery_amt(self): if self.delivery_amt < 1: if(self.carrier_id.id == 1 or self.shipping_cost_covered == 'indoteknik') and not self.env.context.get('active_id', []): |
