From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/purchase_stock/views/assets.xml | 8 +++ .../views/product_category_views.xml | 13 ++++ addons/purchase_stock/views/purchase_views.xml | 72 ++++++++++++++++++++ .../views/res_config_settings_views.xml | 78 ++++++++++++++++++++++ addons/purchase_stock/views/res_partner_views.xml | 30 +++++++++ .../views/stock_production_lot_views.xml | 35 ++++++++++ addons/purchase_stock/views/stock_rule_views.xml | 17 +++++ addons/purchase_stock/views/stock_views.xml | 40 +++++++++++ 8 files changed, 293 insertions(+) create mode 100644 addons/purchase_stock/views/assets.xml create mode 100644 addons/purchase_stock/views/product_category_views.xml create mode 100644 addons/purchase_stock/views/purchase_views.xml create mode 100644 addons/purchase_stock/views/res_config_settings_views.xml create mode 100644 addons/purchase_stock/views/res_partner_views.xml create mode 100644 addons/purchase_stock/views/stock_production_lot_views.xml create mode 100644 addons/purchase_stock/views/stock_rule_views.xml create mode 100644 addons/purchase_stock/views/stock_views.xml (limited to 'addons/purchase_stock/views') diff --git a/addons/purchase_stock/views/assets.xml b/addons/purchase_stock/views/assets.xml new file mode 100644 index 00000000..8724db5b --- /dev/null +++ b/addons/purchase_stock/views/assets.xml @@ -0,0 +1,8 @@ + + + + diff --git a/addons/purchase_stock/views/product_category_views.xml b/addons/purchase_stock/views/product_category_views.xml new file mode 100644 index 00000000..43320f30 --- /dev/null +++ b/addons/purchase_stock/views/product_category_views.xml @@ -0,0 +1,13 @@ + + + + product.category.view.form.inherit.purchase.stock + product.category + + + + {'invisible':[('property_valuation', '=', 'manual_periodic')]} + + + + diff --git a/addons/purchase_stock/views/purchase_views.xml b/addons/purchase_stock/views/purchase_views.xml new file mode 100644 index 00000000..6f850b62 --- /dev/null +++ b/addons/purchase_stock/views/purchase_views.xml @@ -0,0 +1,72 @@ + + + + + purchase.order.form.inherit + purchase.order + + + + + + + + + + + + + + + + {'invisible': [('effective_date', '!=', False)]} + + + + + + + + + + + + {'column_invisible': [('parent.state', 'not in', ('purchase', 'done'))], 'readonly': [('product_type', 'in', ('consu', 'product'))]} + + + + + + + + + + + + purchase.order.line.form.inherit + purchase.order.line + + + + + + + + + + diff --git a/addons/purchase_stock/views/res_config_settings_views.xml b/addons/purchase_stock/views/res_config_settings_views.xml new file mode 100644 index 00000000..8bfcde03 --- /dev/null +++ b/addons/purchase_stock/views/res_config_settings_views.xml @@ -0,0 +1,78 @@ + + + + + res.config.settings.view.form.inherit.purchase + res.config.settings + + + + + +

Logistics

+
+
+
+ +
+
+
+
+
+
+
+
+ + + res.config.settings.view.form.inherit.purchase.stock + res.config.settings + + + + 0 + +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+ +
diff --git a/addons/purchase_stock/views/res_partner_views.xml b/addons/purchase_stock/views/res_partner_views.xml new file mode 100644 index 00000000..b86ca351 --- /dev/null +++ b/addons/purchase_stock/views/res_partner_views.xml @@ -0,0 +1,30 @@ + + + + + res.partner.purchase.stock.form.inherit + res.partner + + + + + + + + diff --git a/addons/purchase_stock/views/stock_production_lot_views.xml b/addons/purchase_stock/views/stock_production_lot_views.xml new file mode 100644 index 00000000..15211756 --- /dev/null +++ b/addons/purchase_stock/views/stock_production_lot_views.xml @@ -0,0 +1,35 @@ + + + + stock.production.lot.view.form + stock.production.lot + + + + + + + + + + + + + + + + + + + + diff --git a/addons/purchase_stock/views/stock_rule_views.xml b/addons/purchase_stock/views/stock_rule_views.xml new file mode 100644 index 00000000..adbdd662 --- /dev/null +++ b/addons/purchase_stock/views/stock_rule_views.xml @@ -0,0 +1,17 @@ + + + + + + stock.rule.form.stock.inherit.purchase_stock + stock.rule + + + + {'required': [('action', 'in', ['pull', 'push', 'pull_push'])], 'invisible': [('action', '=', 'buy')]} + + + + + + diff --git a/addons/purchase_stock/views/stock_views.xml b/addons/purchase_stock/views/stock_views.xml new file mode 100644 index 00000000..2ea08b5e --- /dev/null +++ b/addons/purchase_stock/views/stock_views.xml @@ -0,0 +1,40 @@ + + + + stock.move.form + stock.move + + + + + + + + + + Stock Warehouse Inherited + stock.warehouse + + + + + + + {} + + + + + + stock.warehouse.orderpoint.tree.editable.inherit.mrp + stock.warehouse.orderpoint + + + + + + + + + + -- cgit v1.2.3