summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindoteknik_custom/__manifest__.py1
-rw-r--r--indoteknik_custom/models/manufacturing.py4
-rw-r--r--indoteknik_custom/views/landedcost.xml15
3 files changed, 18 insertions, 2 deletions
diff --git a/indoteknik_custom/__manifest__.py b/indoteknik_custom/__manifest__.py
index e1c2ec7b..eaa5390a 100755
--- a/indoteknik_custom/__manifest__.py
+++ b/indoteknik_custom/__manifest__.py
@@ -75,6 +75,7 @@
'views/product_product.xml',
'views/brand_vendor.xml',
'views/requisition.xml',
+ 'views/landedcost.xml',
'report/report.xml',
'report/report_banner_banner.xml',
'report/report_banner_banner2.xml',
diff --git a/indoteknik_custom/models/manufacturing.py b/indoteknik_custom/models/manufacturing.py
index 15756e44..2455a117 100644
--- a/indoteknik_custom/models/manufacturing.py
+++ b/indoteknik_custom/models/manufacturing.py
@@ -25,8 +25,8 @@ class Manufacturing(models.Model):
return super(Manufacturing, self).button_mark_done()
for line in self.move_raw_ids:
- if line.quantity_done > 0 and line.quantity_done != self.product_uom_qty:
- raise UserError('Qty Consume per Line tidak sama dengan Qty to Produce')
+ # if line.quantity_done > 0 and line.quantity_done != self.product_uom_qty:
+ # raise UserError('Qty Consume per Line tidak sama dengan Qty to Produce')
if line.forecast_availability != line.product_uom_qty:
raise UserError('Qty Reserved belum sesuai dengan yang seharusnya')
diff --git a/indoteknik_custom/views/landedcost.xml b/indoteknik_custom/views/landedcost.xml
new file mode 100644
index 00000000..4736941a
--- /dev/null
+++ b/indoteknik_custom/views/landedcost.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<odoo>
+ <data>
+ <record id="landed_cost_form_inherit" model="ir.ui.view">
+ <field name="name">Landed Cost</field>
+ <field name="model">stock.landed.cost</field>
+ <field name="inherit_id" ref="stock_landed_costs.view_stock_landed_cost_form"/>
+ <field name="arch" type="xml">
+ <field name="vendor_bill_id" position="replace">
+ <field name="vendor_bill_id" required="1"/>
+ </field>
+ </field>
+ </record>
+ </data>
+</odoo> \ No newline at end of file