diff options
| author | Victor Feyens <vfe@odoo.com> | 2019-08-21 12:21:15 +0000 |
|---|---|---|
| committer | Victor Feyens <vfe@odoo.com> | 2019-08-22 15:27:59 +0000 |
| commit | 088de4f1eba2c13b4fa1b3ef6557dd870c4f7565 (patch) | |
| tree | 8b44a97229789f84fb84abd64842142839a9e780 | |
| parent | 3fdb6b6a716a2c7da851a5a97015614687e304fd (diff) | |
[FIX] *: see pricelists when enabled
Since
https://github.com/odoo/odoo/commit/e88fe6f380ed5682f2cedad16ba13ca43a3828c2
, the groups to have access to pricelists is `group_product_pricelist`,
not `group_sale_pricelist` anymore.
`group_sale_pricelist` is now a technical group enabling access to
advanced pricelist rules (percentage/discount).
| -rw-r--r-- | addons/point_of_sale/views/pos_config_view.xml | 4 | ||||
| -rw-r--r-- | addons/point_of_sale/views/pos_order_view.xml | 2 | ||||
| -rw-r--r-- | addons/point_of_sale/views/product_view.xml | 2 | ||||
| -rw-r--r-- | addons/point_of_sale/views/res_config_settings_views.xml | 2 | ||||
| -rw-r--r-- | addons/product/security/product_security.xml | 4 | ||||
| -rw-r--r-- | addons/product/views/product_pricelist_views.xml | 2 | ||||
| -rw-r--r-- | addons/product/views/product_views.xml | 2 | ||||
| -rw-r--r-- | addons/product/views/res_partner_views.xml | 10 | ||||
| -rw-r--r-- | addons/product/wizard/product_price_list_views.xml | 2 | ||||
| -rw-r--r-- | addons/repair/views/repair_views.xml | 2 | ||||
| -rw-r--r-- | addons/website_sale/views/sale_order_views.xml | 2 |
11 files changed, 17 insertions, 17 deletions
diff --git a/addons/point_of_sale/views/pos_config_view.xml b/addons/point_of_sale/views/pos_config_view.xml index d10f7a63296..824a3397904 100644 --- a/addons/point_of_sale/views/pos_config_view.xml +++ b/addons/point_of_sale/views/pos_config_view.xml @@ -249,7 +249,7 @@ </div> <h2>Pricing</h2> <div class="row mt16 o_settings_container" id="pricing"> - <div class="col-12 col-lg-6 o_setting_box" id="default_pricelist_setting" groups="base.group_multi_currency,product.group_sale_pricelist"> + <div class="col-12 col-lg-6 o_setting_box" id="default_pricelist_setting" groups="base.group_multi_currency,product.group_product_pricelist"> <div class="o_setting_right_pane"> <span class="o_form_label">Default Pricelist</span> <div class="content-group mt16"> @@ -260,7 +260,7 @@ </div> </div> </div> - <div class="col-12 col-lg-6 o_setting_box" id="pricelist_setting" groups="product.group_sale_pricelist"> + <div class="col-12 col-lg-6 o_setting_box" id="pricelist_setting" groups="product.group_product_pricelist"> <div class="o_setting_left_pane"> <field name="use_pricelist"/> </div> diff --git a/addons/point_of_sale/views/pos_order_view.xml b/addons/point_of_sale/views/pos_order_view.xml index 4c83e5a59b8..1d45e391586 100644 --- a/addons/point_of_sale/views/pos_order_view.xml +++ b/addons/point_of_sale/views/pos_order_view.xml @@ -104,7 +104,7 @@ <group string="Other Information"> <field name="pos_reference"/> <field name="company_id" groups="base.group_multi_company"/> - <field name="pricelist_id" groups="product.group_sale_pricelist"/> + <field name="pricelist_id" groups="product.group_product_pricelist"/> </group> </group> </page> diff --git a/addons/point_of_sale/views/product_view.xml b/addons/point_of_sale/views/product_view.xml index a2d6b8e9af9..72ccd3abad0 100644 --- a/addons/point_of_sale/views/product_view.xml +++ b/addons/point_of_sale/views/product_view.xml @@ -83,7 +83,7 @@ <menuitem id="pos_config_menu_action_product_pricelist" parent="point_of_sale.pos_config_menu_catalog" action="product.product_pricelist_action2" - groups="product.group_sale_pricelist" + groups="product.group_product_pricelist" sequence="20"/> <record id="product_uom_categ_form_view" model="ir.ui.view"> diff --git a/addons/point_of_sale/views/res_config_settings_views.xml b/addons/point_of_sale/views/res_config_settings_views.xml index 35477705722..b5e2a4debdd 100644 --- a/addons/point_of_sale/views/res_config_settings_views.xml +++ b/addons/point_of_sale/views/res_config_settings_views.xml @@ -44,7 +44,7 @@ <field name="product_pricelist_setting" widget="radio" class="o_light_label"/> </div> <div class="mt8"> - <button name="%(product.product_pricelist_action2)d" icon="fa-arrow-right" type="action" string="Pricelists" groups="product.group_sale_pricelist" class="btn-link"/> + <button name="%(product.product_pricelist_action2)d" icon="fa-arrow-right" type="action" string="Pricelists" groups="product.group_product_pricelist" class="btn-link"/> </div> </div> </div> diff --git a/addons/product/security/product_security.xml b/addons/product/security/product_security.xml index f10acf38bd2..1f71a6c8ec7 100644 --- a/addons/product/security/product_security.xml +++ b/addons/product/security/product_security.xml @@ -3,12 +3,12 @@ <data noupdate="0"> <record id="group_sale_pricelist" model="res.groups"> - <field name="name">Sales Pricelists</field> + <field name="name">Advanced Pricelists</field> <field name="category_id" ref="base.module_category_hidden"/> </record> <record id="group_product_pricelist" model="res.groups"> - <field name="name">Pricelists On Product</field> + <field name="name">Basic Pricelists</field> <field name="category_id" ref="base.module_category_hidden"/> </record> diff --git a/addons/product/views/product_pricelist_views.xml b/addons/product/views/product_pricelist_views.xml index 7a019c7480f..c6705db4c72 100644 --- a/addons/product/views/product_pricelist_views.xml +++ b/addons/product/views/product_pricelist_views.xml @@ -25,7 +25,7 @@ name="groupby_vendor" domain="[]" context="{'group_by': 'pricelist_id'}" - groups="product.group_sale_pricelist"/> + groups="product.group_product_pricelist"/> </group> </search> </field> diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index 352a3782fd3..fcd295e328b 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -142,7 +142,7 @@ <separator/> <filter string="Archived" name="inactive" domain="[('active','=',False)]"/> <field string="Attributes" name="attribute_line_ids" groups="product.group_product_variant"/> - <field name="pricelist_id" context="{'pricelist': self}" filter_domain="[]" groups="product.group_sale_pricelist"/> + <field name="pricelist_id" context="{'pricelist': self}" filter_domain="[]" groups="product.group_product_pricelist"/> <filter invisible="1" string="Late Activities" name="activities_overdue" domain="[('activity_ids.date_deadline', '<', context_today().strftime('%Y-%m-%d'))]" help="Show all records which has next action date is before today"/> diff --git a/addons/product/views/res_partner_views.xml b/addons/product/views/res_partner_views.xml index 692fe5025e0..98c37975d44 100644 --- a/addons/product/views/res_partner_views.xml +++ b/addons/product/views/res_partner_views.xml @@ -4,14 +4,14 @@ <field name="name">res.partner.product.property.form.inherit</field> <field name="model">res.partner</field> <field name="inherit_id" ref="base.view_partner_form"/> - <field name="groups_id" eval="[(4, ref('product.group_sale_pricelist'))]"/> - <field name="arch" type="xml"> + <field name="groups_id" eval="[(4, ref('product.group_product_pricelist'))]"/> + <field name="arch" type="xml"> <group name="sale"> - <field name="property_product_pricelist" groups="product.group_sale_pricelist" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}"/> - <div name="parent_pricelists" groups="product.group_sale_pricelist" colspan="2" attrs="{'invisible': ['|',('is_company','=',True),('parent_id','=',False)]}"> + <field name="property_product_pricelist" groups="product.group_product_pricelist" attrs="{'invisible': [('is_company','=',False),('parent_id','!=',False)]}"/> + <div name="parent_pricelists" groups="product.group_product_pricelist" colspan="2" attrs="{'invisible': ['|',('is_company','=',True),('parent_id','=',False)]}"> <p>Pricelists are managed on <button name="open_commercial_entity" type="object" string="the parent company" class="oe_link"/></p> </div> </group> </field> </record> -</odoo>
\ No newline at end of file +</odoo> diff --git a/addons/product/wizard/product_price_list_views.xml b/addons/product/wizard/product_price_list_views.xml index f0c8c7e36d6..37c59dac0f3 100644 --- a/addons/product/wizard/product_price_list_views.xml +++ b/addons/product/wizard/product_price_list_views.xml @@ -28,6 +28,6 @@ res_model="product.price_list" binding_model="product.product" binding_type="report" - groups="product.group_sale_pricelist" + groups="product.group_product_pricelist" view_mode="form" target="new" /> </odoo> diff --git a/addons/repair/views/repair_views.xml b/addons/repair/views/repair_views.xml index bfb7fd40941..0a146b340f8 100644 --- a/addons/repair/views/repair_views.xml +++ b/addons/repair/views/repair_views.xml @@ -79,7 +79,7 @@ <field name="guarantee_limit"/> <field name="invoice_method"/> <field name="partner_invoice_id" attrs="{'invisible':[('invoice_method','=', 'none')],'required':[('invoice_method','!=','none')]}" groups="sale.group_delivery_invoice_address"/> - <field name="pricelist_id" groups="product.group_sale_pricelist" context="{'product_id':product_id}" attrs="{'invisible':[('invoice_method','=', 'none')]}"/> + <field name="pricelist_id" groups="product.group_product_pricelist" context="{'product_id':product_id}" attrs="{'invisible':[('invoice_method','=', 'none')]}"/> <field name="tag_ids" widget="many2many_tags" options="{'color_field': 'color', 'no_create_edit': True}"/> </group> </group> diff --git a/addons/website_sale/views/sale_order_views.xml b/addons/website_sale/views/sale_order_views.xml index 5bd11dc61df..cbbe1dfd6c7 100644 --- a/addons/website_sale/views/sale_order_views.xml +++ b/addons/website_sale/views/sale_order_views.xml @@ -233,7 +233,7 @@ parent="menu_catalog" groups="product.group_product_variant" sequence="2"/> <menuitem id="menu_catalog_pricelists" name="Pricelists" action="product.product_pricelist_action2" - parent="menu_catalog" groups="product.group_sale_pricelist" sequence="4"/> + parent="menu_catalog" groups="product.group_product_pricelist" sequence="4"/> <!-- Reporting sub-menus --> <menuitem id="menu_report_sales" name="Online Sales" |
