Task 193992 The cron is used to post draft entries such as those created by the module account_asset Also add an inverse to account.move.amount Also add a reverse compute on amount, and adapt its value according to the currency
15 lines
718 B
XML
15 lines
718 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="ir_cron_auto_post_draft_entry" model="ir.cron">
|
|
<field name="name">Account; Post draft entries with auto_post set to True up to today</field>
|
|
<field name="interval_number">1</field>
|
|
<field name="interval_type">days</field>
|
|
<field name="numbercall">-1</field>
|
|
<field name="nextcall" eval="(DateTime.now().replace(hour=2, minute=0) + timedelta(days=1)).strftime('%Y-%m-%d %H:%M:%S')" />
|
|
<field name="doall" eval="False"/>
|
|
<field name="model_id" ref="model_account_move"/>
|
|
<field name="code">model._run_post_draft_to_post()</field>
|
|
<field name="state">code</field>
|
|
</record>
|
|
</odoo>
|