diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-03-17 09:02:59 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-03-17 09:02:59 +0700 |
| commit | f2014f14ecd0fc471f7272e6f869c16d42175eaf (patch) | |
| tree | 608444987c349b69e4ec07400ff74375d07b4623 /indoteknik_custom/models | |
| parent | cba69ee6c06c3386bed68b537c56393ae2cba11f (diff) | |
| parent | 9acebb424ead07109438e46c4f96038c9f50fbec (diff) | |
Merge branch 'odoo-backup' into CR/md-bom
Diffstat (limited to 'indoteknik_custom/models')
| -rwxr-xr-x | indoteknik_custom/models/sale_order.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py index adc9bb98..4d186c8d 100755 --- a/indoteknik_custom/models/sale_order.py +++ b/indoteknik_custom/models/sale_order.py @@ -208,8 +208,7 @@ class SaleOrder(models.Model): ) expected_ready_to_ship = fields.Datetime( string='ET Ready to Ship', - copy=False, - store=True + copy=False ) shipping_method_picking = fields.Char(string='Shipping Method Picking', compute='_compute_shipping_method_picking') @@ -557,7 +556,7 @@ class SaleOrder(models.Model): return {'slatime': max_slatime, 'include_instant': include_instant} - @api.depends("order_line.product_id") + # @api.depends("order_line.product_id") def _compute_etrts_date(self): #Function to calculate Estimated Ready To Ship Date for rec in self: max_slatime = 1 # Default SLA jika tidak ada @@ -1274,7 +1273,7 @@ class SaleOrder(models.Model): order._set_sppkp_npwp_contact() order.calculate_line_no() order.send_notif_to_salesperson() - order._compute_etrts_date() + # order._compute_etrts_date() # order.order_line.get_reserved_from() res = super(SaleOrder, self).action_confirm() |
