summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-06-14 13:48:00 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-06-14 13:48:00 +0700
commitfe64d54541eb0c47a69cb789f593e44726758ab1 (patch)
tree9075e72697fb3c0b2646551a547773041342a35b
parentc5c8b034a15d2af7dc41ed1ba134d484c293ea04 (diff)
deactivate fullfilment
-rwxr-xr-xindoteknik_custom/models/sale_order.py4
-rwxr-xr-xindoteknik_custom/views/sale_order.xml6
2 files changed, 5 insertions, 5 deletions
diff --git a/indoteknik_custom/models/sale_order.py b/indoteknik_custom/models/sale_order.py
index f954c7bf..8d8dd04c 100755
--- a/indoteknik_custom/models/sale_order.py
+++ b/indoteknik_custom/models/sale_order.py
@@ -9,7 +9,7 @@ _logger = logging.getLogger(__name__)
class SaleOrder(models.Model):
_inherit = "sale.order"
- fullfillment_line = fields.One2many('sales.order.fullfillment', 'sales_order_id', string='Fullfillment')
+ # fullfillment_line = fields.One2many('sales.order.fullfillment', 'sales_order_id', string='Fullfillment')
order_sales_match_line = fields.One2many('sales.order.purchase.match', 'sales_order_id', string='Purchase Match Lines', states={'cancel': [('readonly', True)], 'done': [('readonly', True)]}, copy=True)
total_margin = fields.Float('Total Margin', compute='_compute_total_margin', help="Total Margin in Sales Order Header")
total_percent_margin = fields.Float('Total Percent Margin', compute='_compute_total_percent_margin', help="Total % Margin in Sales Order Header")
@@ -96,7 +96,7 @@ class SaleOrder(models.Model):
('cust_director', 'Customer Director'),
('cust_procurement', 'Customer Procurement')
], string='Web Approval', copy=False)
- compute_fullfillment = fields.Boolean(string='Compute Fullfillment')
+ # compute_fullfillment = fields.Boolean(string='Compute Fullfillment', compute="_compute_fullfillment")
# def _compute_fullfillment(self):
# for rec in self:
diff --git a/indoteknik_custom/views/sale_order.xml b/indoteknik_custom/views/sale_order.xml
index d6738759..ee864dab 100755
--- a/indoteknik_custom/views/sale_order.xml
+++ b/indoteknik_custom/views/sale_order.xml
@@ -49,7 +49,7 @@
</field>
<field name="user_id" position="after">
<field name="helper_by_id" readonly="1"/>
- <field name="compute_fullfillment"/>
+ <!-- <field name="compute_fullfillment"/> -->
</field>
<field name="tag_ids" position="after">
<field name="eta_date" readonly="1"/>
@@ -187,9 +187,9 @@
<page string="Matches PO" name="page_matches_po" invisible="1">
<field name="order_sales_match_line" readonly="1"/>
</page>
- <page string="Fullfillment" name="page_sale_order_fullfillment">
+ <!-- <page string="Fullfillment" name="page_sale_order_fullfillment">
<field name="fullfillment_line" readonly="1"/>
- </page>
+ </page> -->
</page>
</field>
</record>