upgrade v16 addons valores por defecto según la categoría interna

This commit is contained in:
snt 2024-09-04 23:07:41 +02:00
parent 688782abd8
commit 412d897695
88 changed files with 4 additions and 4787 deletions

View file

@ -1,36 +0,0 @@
<?xml version="1.0" ?>
<!--
Copyright (C) 2020-Today: La Osa (<https://laosa.coop/>)
@author: Criptomart (https://criptomart.net)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
-->
<odoo>
<!-- Add action entry in the Action Menu for calculate sale price in Products -->
<record id="action_product_calculate_theoritical_price" model="ir.actions.server">
<field name="name">Update Sales Price</field>
<field name="model_id" ref="product.model_product_template" />
<field name="binding_model_id" ref="product.model_product_template" />
<field name="state">code</field>
<field name="code">
records.use_theoretical_price()
</field>
</record>
<!-- Open products window with filter
<record id="action_product_template_list_price_updated" model="ir.actions.act_window">
<field name="name">Productos con PVP actualizable</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.template</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="product.product_template_tree_view"/>
<field name="domain">[]</field>
<field name="context">{"search_default_products_updated_filter": 1}</field>
<field name="help" type="html">
<p class="oe_view_nocontent_create">
Todos los productos están actualizados.
</p>
</field>
</record>
-->
</odoo>

View file

@ -1,66 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<data>
<!-- list automatic price tick in product sheet -->
<record model="ir.ui.view" id="product_view_inherit_list_price_auto">
<field name="name">product.list.price.automatic.form</field>
<field name="model">product.template</field>
<field name="type">form</field>
<field name="inherit_id" ref="product.product_template_form_view" />
<field name="arch" type="xml">
<label for="list_price" position="before">
<field name="last_purchase_price_received" />
<!-- attrs="{'readonly': 1}"-->
<!-- />-->
<field name="last_purchase_price_received_compute_type" />
<field name="to_print_label" />
</label>
<field name="standard_price" position="replace">
<field
name="standard_price"
attrs="{'readonly': [('last_purchase_price_received_compute_type','!=', 'manual_update')]}"
/>
</field>
</field>
</record>
<record id="product_template_tree_view" model="ir.ui.view">
<field name="name">product.template.product.tree</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_tree_view" />
<field name="arch" type="xml">
<field name="standard_price" position="after">
<field name="last_purchase_price_received" />
<field name="margin_state" invisible="1" />
</field>
</field>
</record>
<!--Filter for products that should update its sales price -->
<record id="view_product_search_form_inherit_updated" model="ir.ui.view">
<field name="name">view.product.search.form.inherit.updated</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view" />
<field name="arch" type="xml">
<xpath expr="//filter[@name='services']" position="before">
<filter
string="To update sales price"
name="products_updated_filter"
domain="[
('last_purchase_price_received_compute_type', '!=', 'manual_update'),
('margin_state','in', ['too_cheap', 'too_expensive'])
]"
/>
<filter
string="To print"
name="products_ready_to_print_filter"
domain="[('to_print_label', '=', True)]"
/>
<separator />
</xpath>
</field>
</record>
</data>
</odoo>