Browse Source
[FIX] contract_sale_generation: Isolate sale generation (#118)
[FIX] contract_sale_generation: Isolate sale generation (#118)
Closes #117pull/329/head
Angel Moya - PESOL
7 years ago
committed by
Sylvain Van Hoof
4 changed files with 72 additions and 6 deletions
-
3contract_sale_generation/__manifest__.py
-
14contract_sale_generation/data/contract_cron.xml
-
53contract_sale_generation/models/account_analytic_account.py
-
8contract_sale_generation/tests/test_contract_sale.py
@ -0,0 +1,14 @@ |
|||
<?xml version="1.0" encoding='UTF-8'?> |
|||
<odoo> |
|||
|
|||
<record model="ir.cron" id="account_analytic_cron_for_sale"> |
|||
<field name="name">Generate Recurring sales from Contracts</field> |
|||
<field name="interval_number">1</field> |
|||
<field name="interval_type">days</field> |
|||
<field name="numbercall">-1</field> |
|||
<field name="model" eval="'account.analytic.account'"/> |
|||
<field name="function" eval="'cron_recurring_create_sale'"/> |
|||
<field name="args" eval="'()'"/> |
|||
</record> |
|||
|
|||
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue