Files
odoo-usability/mrp_average_cost/mrp_data.xml
Alexis de Lattre 81d97b2981 Add possibility to make a manual update of standard_price from BOM
Add script to automate the update of standard_price for phantom BOM
Add user_id on price.history
2016-04-13 22:41:08 +02:00

26 lines
864 B
XML

<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record forcecreate="True" id="labour_hours" model="decimal.precision">
<field name="name">Labour Hours</field>
<field name="digits">3</field>
</record>
<record id="phantom_update_product_standard_price" model="ir.cron">
<field name="name">Update Cost Price of products with Phantom BOM</field>
<field name="active" eval="False"/>
<field name="user_id" ref="base.user_root"/>
<field name="interval_number">1</field>
<field name="interval_type">days</field>
<field name="numbercall">-1</field> <!-- don't limit the number of calls -->
<field name="doall" eval="False"/>
<field name="model" eval="'mrp.bom'"/>
<field name="function" eval="'_phantom_update_product_standard_price'"/>
<field name="args" eval="'()'"/>
</record>
</data>
</openerp>