addons-cm/stock_inventory_cost_info_sum/views/actions.xml

14 lines
No EOL
554 B
XML

<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>