Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
22
pricelist_cache/views/product_pricelist.xml
Executable file
22
pricelist_cache/views/product_pricelist.xml
Executable file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2021 Camptocamp SA
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="product_pricelist_view" model="ir.ui.view">
|
||||
<field name="name">product.pricelist.form.inherit</field>
|
||||
<field name="model">product.pricelist</field>
|
||||
<field name="inherit_id" ref="product.product_pricelist_view" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//sheet" position="before">
|
||||
<header>
|
||||
<button
|
||||
name="button_open_pricelist_cache_tree"
|
||||
string="Display Pricelist Prices"
|
||||
class="btn-primary"
|
||||
type="object"
|
||||
/>
|
||||
</header>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
23
pricelist_cache/views/product_pricelist_cache.xml
Executable file
23
pricelist_cache/views/product_pricelist_cache.xml
Executable file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2021 Camptocamp SA
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="product_pricelist_cache_view_tree" model="ir.ui.view">
|
||||
<field name="name">product.pricelist.cache.tree</field>
|
||||
<field name="model">product.pricelist.cache</field>
|
||||
<field name="arch" type="xml">
|
||||
<list create="false" edit="false">
|
||||
<field name="product_id" />
|
||||
<field name="price" />
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="product_pricelist_cache_action" model="ir.actions.act_window">
|
||||
<field name="name">Pricelist Cache</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">product.pricelist.cache</field>
|
||||
<field name="view_mode">list</field>
|
||||
<field name="view_id" ref="product_pricelist_cache_view_tree" />
|
||||
</record>
|
||||
</odoo>
|
||||
24
pricelist_cache/views/res_partner.xml
Executable file
24
pricelist_cache/views/res_partner.xml
Executable file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<!-- Copyright 2021 Camptocamp SA
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
|
||||
<odoo>
|
||||
<record id="view_partner_property_form" model="ir.ui.view">
|
||||
<field name="name">res.partner.form.inherit</field>
|
||||
<field name="model">res.partner</field>
|
||||
<field name="inherit_id" ref="product.view_partner_property_form" />
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group[@name='sale']" position="inside">
|
||||
<field name="pricelist_cache_product_filter_id" />
|
||||
</xpath>
|
||||
<xpath expr="//div[@name='button_box']" postion="inside">
|
||||
<button
|
||||
name="button_open_pricelist_cache_tree"
|
||||
string="Display Customer Prices"
|
||||
type="object"
|
||||
class="oe_stat_button"
|
||||
icon="fa-dollar"
|
||||
/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user