LaOcaCoop/laosa#313 Add module stock_inventory_cost_info_sum

This commit is contained in:
Luis 2022-07-11 17:52:20 +02:00
parent 79abf4b1db
commit 3ddb55fba8
6 changed files with 94 additions and 0 deletions

View file

@ -0,0 +1,14 @@
<odoo>
<!-- Add action entry in the Action Menu for calculate adjustment cost in Inventories -->
<record id="action_product_calculate_theoritical_price2" model="ir.actions.server">
<field name="name">Recalculate Adjustment Cost</field>
<field name="model_id" ref="stock.model_stock_inventory"/>
<field name="binding_model_id" ref="stock.model_stock_inventory"/>
<field name="state">code</field>
<field name="code">
records._compute_adjustment_cost_sum()
</field>
</record>
</odoo>