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
This commit is contained in:
committed by
Alexis de Lattre
parent
155b5c205c
commit
6dab81a65b
@@ -7,5 +7,19 @@
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user