diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-13 11:26:47 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-07-13 11:26:47 +0700 |
| commit | 5aa6e8f5ed1bd628a5f4559a3f752b6e83ee2c49 (patch) | |
| tree | b1fc439658912bab3beb82392eecbad932e39d6f /indoteknik_custom | |
| parent | 32bf7b115ec71e72d9cde58bfa3c0304c4b1ffcb (diff) | |
Add product sla cron xml and fix product sla api
Diffstat (limited to 'indoteknik_custom')
| -rw-r--r-- | indoteknik_custom/views/product_sla.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indoteknik_custom/views/product_sla.xml b/indoteknik_custom/views/product_sla.xml index f91cf97c..59d58568 100644 --- a/indoteknik_custom/views/product_sla.xml +++ b/indoteknik_custom/views/product_sla.xml @@ -38,6 +38,19 @@ <field name="view_mode">tree,form</field> </record> + <record id="product_sla_generate_cron" model="ir.cron"> + <field name="name">Product SLA: Generate</field> + <field name="interval_number">8</field> + <field name="interval_type">minutes</field> + <field name="numbercall">-1</field> + <field name="doall" eval="False"/> + <field name="model_id" ref="model_product_sla"/> + <field name="code">model.generate_product_variant_id_sla(limit=150)</field> + <field name="state">code</field> + <field name="priority">100</field> + <field name="active">True</field> + </record> + <menuitem id="menu_product_sla" name="Product Sla" action="product_sla_action" |
