#15 new module product_update_price_last_purchase based on product_margin_classification to update sell prices on products when purchase price changes.

This commit is contained in:
Luis 2024-01-15 20:25:34 +01:00
parent f9d660c245
commit 1bd3fab4dc
18 changed files with 279 additions and 536 deletions

View file

@ -1,24 +1,23 @@
<?xml version="1.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="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._compute_theoritical_price()
records.use_theoretical_price()
</field>
</record>
<!-- Open products window with filter
<!-- 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>
@ -35,4 +34,3 @@
</record>
-->
</odoo>