diff --git a/modules/automation/automation.xml b/modules/automation/automation.xml
index 828fea6..5bfbc7e 100644
--- a/modules/automation/automation.xml
+++ b/modules/automation/automation.xml
@@ -75,7 +75,7 @@
automation.document
run_pipeline
- Run Full Pipeline
+ Create Weight Report
automation.document
diff --git a/modules/purchase_trade/__init__.py b/modules/purchase_trade/__init__.py
index 9039887..99e5b2a 100755
--- a/modules/purchase_trade/__init__.py
+++ b/modules/purchase_trade/__init__.py
@@ -116,6 +116,7 @@ def register():
stock.Location,
stock.InvoiceLine,
stock.ShipmentIn,
+ stock.ShipmentWR,
stock.ShipmentInternal,
stock.ShipmentOut,
stock.StatementOfFacts,
diff --git a/modules/purchase_trade/stock.py b/modules/purchase_trade/stock.py
index 4b56865..d0dd7be 100755
--- a/modules/purchase_trade/stock.py
+++ b/modules/purchase_trade/stock.py
@@ -361,6 +361,12 @@ class ShipmentContainer(ModelSQL, ModelView):
seal_no = fields.Char('Seal Number')
is_reefer = fields.Boolean('Reefer')
+class ShipmentWR(ModelSQL,ModelView):
+ "Shipment WR"
+ __name__ = "shipment.wr"
+ shipment_in = fields.Many2One('stock.shipment.in',"Shipment In")
+ wr = fields.Many2One('weight.report',"WR")
+
class ShipmentIn(metaclass=PoolMeta):
__name__ = 'stock.shipment.in'
@@ -413,6 +419,7 @@ class ShipmentIn(metaclass=PoolMeta):
'shipment',
'Container'
)
+ shipment_wr = fields.One2Many('shipment.wr','shipment_in',"WR")
@classmethod
def __setup__(cls):
diff --git a/modules/purchase_trade/stock.xml b/modules/purchase_trade/stock.xml
index 5e424b7..9c58f3c 100755
--- a/modules/purchase_trade/stock.xml
+++ b/modules/purchase_trade/stock.xml
@@ -38,6 +38,12 @@ this repository contains the full copyright notices and license terms. -->
stock.shipment.container
tree
shipment_container_tree
+
+
+
+ shipment.wr
+ tree
+ shipment_wr_tree
diff --git a/modules/purchase_trade/view/shipment_in_form.xml b/modules/purchase_trade/view/shipment_in_form.xml
index 4591e2e..0a3ff41 100755
--- a/modules/purchase_trade/view/shipment_in_form.xml
+++ b/modules/purchase_trade/view/shipment_in_form.xml
@@ -109,4 +109,9 @@ this repository contains the full copyright notices and license terms. -->
+
+
+
+
+
\ No newline at end of file
diff --git a/modules/purchase_trade/view/shipment_wr_tree.xml b/modules/purchase_trade/view/shipment_wr_tree.xml
new file mode 100644
index 0000000..18ef220
--- /dev/null
+++ b/modules/purchase_trade/view/shipment_wr_tree.xml
@@ -0,0 +1,3 @@
+
+
+
\ No newline at end of file