From 592570df7218f80d8622bfc52501c45440f9845a Mon Sep 17 00:00:00 2001 From: Mqdd Date: Fri, 2 Jan 2026 09:36:40 +0700 Subject: hide button create order altama --- fixco_custom/views/purchase_order.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fixco_custom/views/purchase_order.xml b/fixco_custom/views/purchase_order.xml index d81982e..2538081 100644 --- a/fixco_custom/views/purchase_order.xml +++ b/fixco_custom/views/purchase_order.xml @@ -19,16 +19,16 @@ @@ -58,4 +58,4 @@ - \ No newline at end of file + -- cgit v1.2.3 From 7c18662262af2041f18e0dd7890f88e72f066032 Mon Sep 17 00:00:00 2001 From: Mqdd Date: Fri, 2 Jan 2026 09:51:05 +0700 Subject: hide get order and create order altama for other vendor --- fixco_custom/views/purchase_order.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fixco_custom/views/purchase_order.xml b/fixco_custom/views/purchase_order.xml index 2538081..b68da31 100644 --- a/fixco_custom/views/purchase_order.xml +++ b/fixco_custom/views/purchase_order.xml @@ -19,15 +19,18 @@ -- cgit v1.2.3 From 20a17a725aa9f3ff3d94c9405042f924101a3d13 Mon Sep 17 00:00:00 2001 From: Mqdd Date: Fri, 2 Jan 2026 10:16:15 +0700 Subject: fix formula amount all PO --- fixco_custom/models/purchase_order.py | 5 +++-- fixco_custom/views/purchase_order.xml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fixco_custom/models/purchase_order.py b/fixco_custom/models/purchase_order.py index cf8945e..f2a6c3e 100644 --- a/fixco_custom/models/purchase_order.py +++ b/fixco_custom/models/purchase_order.py @@ -55,6 +55,7 @@ class PurchaseOrder(models.Model): soo_price = fields.Float('SOO Price', copy=False) soo_discount = fields.Float('SOO Discount', copy=False) soo_tax = fields.Float('SOO Tax', copy=False) + discount_total = fields.Float('Discount Total', help = 'Total Discount for Each Product') def _get_fixco_token(self, source='auto'): ICP = self.env['ir.config_parameter'].sudo() @@ -422,12 +423,12 @@ class PurchaseOrder(models.Model): 'domain': [('id', 'in', journals.ids)], } - @api.depends('order_line.price_total', 'biaya_lain_lain') + @api.depends('order_line.price_total', 'biaya_lain_lain', 'discount_total') def _amount_all(self): super(PurchaseOrder, self)._amount_all() for order in self: - amount_total = order.amount_untaxed + order.amount_tax - order.biaya_lain_lain + amount_total = order.amount_untaxed + order.amount_tax + order.biaya_lain_lain - order.discount_total order.amount_total = order.currency_id.round(amount_total) @api.depends('order_line.discount_amount') diff --git a/fixco_custom/views/purchase_order.xml b/fixco_custom/views/purchase_order.xml index b68da31..d5e612c 100644 --- a/fixco_custom/views/purchase_order.xml +++ b/fixco_custom/views/purchase_order.xml @@ -40,6 +40,7 @@ + -- cgit v1.2.3