Add script to automate the update of standard_price for phantom BOM Add user_id on price.history
26 lines
864 B
XML
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>
|