Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
18
account_asset_compute_batch/data/service_cron.xml
Executable file
18
account_asset_compute_batch/data/service_cron.xml
Executable file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<record id="ir_cron_auto_compute_draft_batch" model="ir.cron">
|
||||
<field
|
||||
name="name"
|
||||
>Asset Compute Batch; Post draft batches with auto_compute set to True up to today</field>
|
||||
<field name="interval_number">1</field>
|
||||
<field name="interval_type">days</field>
|
||||
<field
|
||||
name="nextcall"
|
||||
eval="(DateTime.now().replace(hour=2, minute=0) + timedelta(days=1)).strftime('%Y-%m-%d %H:%M:%S')"
|
||||
/>
|
||||
<field name="model_id" ref="model_account_asset_compute_batch" />
|
||||
<field name="code">model._autocompute_draft_batches()</field>
|
||||
<field name="state">code</field>
|
||||
<field name="user_id" ref="base.user_root" />
|
||||
</record>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user