diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-08-24 11:28:05 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-08-24 11:28:05 +0700 |
| commit | c420bd4e418b2f646e1b3116bdb31e4ff07bf448 (patch) | |
| tree | d004c85cec5800c218fc1b39de3f6e2d842c63bb /indoteknik_custom/models/sale_order.py | |
| parent | 9e4511c8d27665a53d296ee648150121a7f6cf84 (diff) | |
Add estimated arrival days field and estimated time arrival API response
Diffstat (limited to 'indoteknik_custom/models/sale_order.py')
| -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 ca98cde4..d0817ad5 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -76,6 +76,7 @@ class SaleOrder(models.Model): voucher_id = fields.Many2one(comodel_name='voucher', string='Voucher') amount_voucher_disc = fields.Float(string='Voucher Discount') source_id = fields.Many2one('utm.source', 'Source', domain="[('id', 'in', [32, 59, 60, 61])]") + estimated_arrival_days = fields.Integer('Estimated Arrival Days', default=0) def _compute_purchase_total(self): for order in self: |
