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/product/views/product_attribute_views.xml | 154 +++++ addons/product/views/product_pricelist_views.xml | 339 ++++++++++ addons/product/views/product_template_views.xml | 166 +++++ addons/product/views/product_templates.xml | 15 + addons/product/views/product_views.xml | 714 +++++++++++++++++++++ addons/product/views/res_config_settings_views.xml | 43 ++ addons/product/views/res_partner_views.xml | 17 + 7 files changed, 1448 insertions(+) create mode 100644 addons/product/views/product_attribute_views.xml create mode 100644 addons/product/views/product_pricelist_views.xml create mode 100644 addons/product/views/product_template_views.xml create mode 100644 addons/product/views/product_templates.xml create mode 100644 addons/product/views/product_views.xml create mode 100644 addons/product/views/res_config_settings_views.xml create mode 100644 addons/product/views/res_partner_views.xml (limited to 'addons/product/views') diff --git a/addons/product/views/product_attribute_views.xml b/addons/product/views/product_attribute_views.xml new file mode 100644 index 00000000..c8f1eba8 --- /dev/null +++ b/addons/product/views/product_attribute_views.xml @@ -0,0 +1,154 @@ + + + + product.attribute.tree + product.attribute + + + + + + + + + + + + product.attribute.form + product.attribute + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + Attributes + ir.actions.act_window + product.attribute + tree,form + + + + product.template.attribute.line.form + product.template.attribute.line + primary + + +
+ +
+ +
+
+ + + product.template.attribute.value.view.tree + product.template.attribute.value + tree + + + + + + + + + + + + + + + product.template.attribute.value.view.form. + product.template.attribute.value + form + +
+ + + + + + + + + + + + + + + + +
+
+
+ + + product.template.attribute.value + + + + + + + + + + + Product Variant Values + product.template.attribute.value + tree,form + [('product_tmpl_id', '=', active_id)] + + { + 'default_product_tmpl_id': active_id, + 'search_default_active': 1, + } + + +
diff --git a/addons/product/views/product_pricelist_views.xml b/addons/product/views/product_pricelist_views.xml new file mode 100644 index 00000000..b19577ef --- /dev/null +++ b/addons/product/views/product_pricelist_views.xml @@ -0,0 +1,339 @@ + + + + + + product.pricelist.item.search + product.pricelist.item + + + + + + + + + + + + + + + + + + + + product.pricelist.item.tree + product.pricelist.item + 10 + + + + + + + + + + + + + + + + product.pricelist.item.tree + product.pricelist.item + 100 + + + + + + + + + + + + + + + + + + + + + product.pricelist.item.form + product.pricelist.item + +
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

The computed price is expressed in the default Unit of Measure of the product.

+
+ + +
+
+
+
+ + + product.pricelist.search + product.pricelist + + + + + + + + + + + + product.pricelist.tree + product.pricelist + + + + + + + + + + + + + product.pricelist.kanban + product.pricelist + + + + +
+
+
+ +
+ +
+ +
+
+
+
+
+
+ + + product.pricelist.form + product.pricelist + +
+ + +
+

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + product.pricelist.form.inherit + product.pricelist + + + + + + + + + + + + + + + + + + + + + + + + website_sale.country_group.form + res.country.group + + + + + + + + + Pricelists + ir.actions.act_window + product.pricelist + tree,kanban,form + + {"default_base":'list_price'} + +

+ Create a new pricelist +

+ A price is a set of sales prices or rules to compute the price of sales order lines based on products, product categories, dates and ordered quantities. + This is the perfect tool to handle several pricings, seasonal discounts, etc. +

+ You can assign pricelists to your customers or select one when creating a new sales quotation. +

+
+
+ + + Price Rules + ir.actions.act_window + product.pricelist.item + tree,form + +
+
diff --git a/addons/product/views/product_template_views.xml b/addons/product/views/product_template_views.xml new file mode 100644 index 00000000..4850d2bb --- /dev/null +++ b/addons/product/views/product_template_views.xml @@ -0,0 +1,166 @@ + + + + product.template.product.tree + product.template + + + + + + + + + + + + + + + + + + + + + + + + + product.template.product.form + product.template + primary + + + + + Product Template + + + + + + +
+ +
+ + + + + + + + + +

+ Warning: adding or deleting attributes + will delete and recreate existing variants and lead + to the loss of their possible customizations. +

+
+
+
+
+ + + Product.template.product.kanban + product.template + + + + + + + + + +
+
+ Product +
+
+ + + + [] +
+ + Variants + +
+
+ Price: +
+
+
+
+
+
+
+
+ + + product.template.activity + product.template + + + + +
+ +
+ +
+ [] +
+
+
+
+
+
+
+ + + Products + ir.actions.act_window + product.template + kanban,tree,form + + + {"search_default_filter_to_sell":1} + +

+ Create a new product +

+ You must define a product for everything you sell or purchase, + whether it's a storable product, a consumable or a service. +

+
+
+ + + Generate Pricelist + + + + code + +ctx = env.context +ctx.update({'default_pricelist': env['product.pricelist'].search([], limit=1).id}) +action = { + 'name': 'Pricelist Report', + 'type': 'ir.actions.client', + 'tag': 'generate_pricelist', + 'context': ctx, +} + + + +
diff --git a/addons/product/views/product_templates.xml b/addons/product/views/product_templates.xml new file mode 100644 index 00000000..5c33cfc2 --- /dev/null +++ b/addons/product/views/product_templates.xml @@ -0,0 +1,15 @@ + + + + + + + diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml new file mode 100644 index 00000000..2adb15c0 --- /dev/null +++ b/addons/product/views/product_views.xml @@ -0,0 +1,714 @@ + + + + + + product.template.common.form + product.template + primary + +
+
+
+ + + + +
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ +
+ + + + product.template.search + product.template + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Products + ir.actions.act_window + product.template + kanban,tree,form + {} + +

+ Create a new product +

+
+
+ + + product.product.search + product.product + primary + + + + + + + + + + + + + + Product Variants + ir.actions.act_window + product.product + tree,form,kanban,activity + + + +

+ Create a new product variant +

+ You must define a product for everything you sell or purchase, + whether it's a storable product, a consumable or a service. +

+
+
+ + + product.product.view.form.easy + product.product + primary + +
+ +
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + +
+ + + + Product Variants + ir.actions.act_window + product.product + {'search_default_product_tmpl_id': [active_id], 'default_product_tmpl_id': active_id, 'create': False} + + + +

+ Create a new product variant +

+ You must define a product for everything you sell or purchase, + whether it's a storable product, a consumable or a service. + The product form contains information to simplify the sale process: + price, notes in the quotation, accounting data, procurement methods, etc. +

+
+
+ + + product.product.tree + product.product + + + + + + + + + + + + + + + + + + + + + + product.product.form + product.product + primary + + + +
+ Product Variant + false +
+ + + + + + lst_price + {'readonly': [('product_variant_count', '>', 1)]} + + + + + {'invisible': 0} + + + + + + + + +
+ + + Product Kanban + product.product + + + + + + + + +
+
+ Product +
+
+ + + [] + +
+ +
+
    +
  • Price:
  • +
+
+
+
+ + + + + + + + product.product.activity + product.product + + + + + +
+ +
+ +
+ [] +
+
+
+
+
+
+
+ + + Product Variants + ir.actions.act_window + product.product + kanban,tree,form,activity + {"search_default_filter_to_sell":1} + + + +

+ Create a new product variant +

+ You must define a product for everything you sell, whether it's a physical product, + a consumable or a service you offer to customers. + The product form contains information to simplify the sale process: + price, notes in the quotation, accounting data, procurement methods, etc. +

+
+
+ + + product.category.search + product.category + + + + + + + + + product.category.form + product.category + +
+ +
+ +
+
+
+ + + +
+
+
+
+ + product.category.list + product.category + 1 + + + + + + + + Product Categories + ir.actions.act_window + product.category + + + + + + + product.packaging.tree.view + product.packaging + + + + + + + + + + + + + + product.packaging.tree.view2 + product.packaging + primary + + + + + + + + + product.packaging.form.view + product.packaging + +
+ + +
+
+
+ + + product.packaging.form.view2 + product.packaging + primary + + + + + + + + + Product Packagings + product.packaging + [('product_id', '!=', False)] + + + + + product.supplierinfo.form.view + product.supplierinfo + +
+ + + + + + + + + + + + + + +
+
+
+ + + product.supplierinfo.search.view + product.supplierinfo + + + + + + + + + + + + + + + + product.supplierinfo.kanban + product.supplierinfo + + + + + + + + + +
+
+ + + + + + +
+ +
+
+ days +
+
+
+
+
+
+
+
+ + + product.supplierinfo.tree.view + product.supplierinfo + + + + + + + + + + + + + + + + + + + + + + Vendor Pricelists + ir.actions.act_window + product.supplierinfo + tree,form,kanban + {'visible_product_tmpl_id':False} + +

+ No vendor pricelist found +

+ Register the prices requested by your vendors for each product, based on the quantity and the period. +

+
+
+ + + Generate Pricelist + + + + code + +ctx = env.context +ctx.update({'default_pricelist': env['product.pricelist'].search([], limit=1).id}) +action = { + 'name': 'Pricelist Report', + 'type': 'ir.actions.client', + 'tag': 'generate_pricelist', + 'context': ctx, +} + + + + + diff --git a/addons/product/views/res_config_settings_views.xml b/addons/product/views/res_config_settings_views.xml new file mode 100644 index 00000000..3325b056 --- /dev/null +++ b/addons/product/views/res_config_settings_views.xml @@ -0,0 +1,43 @@ + + + + res.config.settings.view.form.inherit.product + res.config.settings + + + +

Units of Measure

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/addons/product/views/res_partner_views.xml b/addons/product/views/res_partner_views.xml new file mode 100644 index 00000000..98c37975 --- /dev/null +++ b/addons/product/views/res_partner_views.xml @@ -0,0 +1,17 @@ + + + + res.partner.product.property.form.inherit + res.partner + + + + + +
+

Pricelists are managed on

+
+
+
+
-- cgit v1.2.3