mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[MIG] contract: Migration to version 11.0
This commit is contained in:
committed by
Pedro M. Baeza
parent
2bb7d9d73d
commit
a74abc55b6
@@ -1,2 +1 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
from . import models
|
from . import models
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright 2004-2010 OpenERP SA
|
# Copyright 2004-2010 OpenERP SA
|
||||||
# Copyright 2014-2017 Tecnativa - Pedro M. Baeza
|
# Copyright 2014-2017 Tecnativa - Pedro M. Baeza
|
||||||
# Copyright 2015 Domatix
|
# Copyright 2015 Domatix
|
||||||
@@ -9,7 +8,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Contracts Management - Recurring',
|
'name': 'Contracts Management - Recurring',
|
||||||
'version': '10.0.3.1.0',
|
'version': '11.0.1.0.0',
|
||||||
'category': 'Contract Management',
|
'category': 'Contract Management',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
'author': "OpenERP SA, "
|
'author': "OpenERP SA, "
|
||||||
|
|||||||
@@ -3,12 +3,14 @@
|
|||||||
|
|
||||||
<record model="ir.cron" id="account_analytic_cron_for_invoice">
|
<record model="ir.cron" id="account_analytic_cron_for_invoice">
|
||||||
<field name="name">Generate Recurring Invoices from Contracts</field>
|
<field name="name">Generate Recurring Invoices from Contracts</field>
|
||||||
|
<field name="model_id" ref="analytic.model_account_analytic_account"/>
|
||||||
|
<field name="state">code</field>
|
||||||
|
<field name="code">model.cron_recurring_create_invoice()</field>
|
||||||
|
<field name="user_id" ref="base.user_root" />
|
||||||
<field name="interval_number">1</field>
|
<field name="interval_number">1</field>
|
||||||
<field name="interval_type">days</field>
|
<field name="interval_type">days</field>
|
||||||
<field name="numbercall">-1</field>
|
<field name="numbercall">-1</field>
|
||||||
<field name="model" eval="'account.analytic.account'"/>
|
<field eval="False" name="doall" />
|
||||||
<field name="function" eval="'cron_recurring_create_invoice'"/>
|
|
||||||
<field name="args" eval="'()'"/>
|
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
from . import account_analytic_contract
|
from . import account_analytic_contract
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright 2004-2010 OpenERP SA
|
# Copyright 2004-2010 OpenERP SA
|
||||||
# Copyright 2014 Angel Moya <angel.moya@domatix.com>
|
# Copyright 2014 Angel Moya <angel.moya@domatix.com>
|
||||||
# Copyright 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
# Copyright 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
||||||
@@ -64,7 +63,7 @@ class AccountAnalyticAccount(models.Model):
|
|||||||
|
|
||||||
contract = self.contract_template_id
|
contract = self.contract_template_id
|
||||||
|
|
||||||
for field_name, field in contract._fields.iteritems():
|
for field_name, field in contract._fields.items():
|
||||||
|
|
||||||
if field.name == 'recurring_invoice_line_ids':
|
if field.name == 'recurring_invoice_line_ids':
|
||||||
lines = self._convert_contract_lines(contract)
|
lines = self._convert_contract_lines(contract)
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# © 2004-2010 OpenERP SA
|
# © 2004-2010 OpenERP SA
|
||||||
# © 2014 Angel Moya <angel.moya@domatix.com>
|
# © 2014 Angel Moya <angel.moya@domatix.com>
|
||||||
# © 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
# © 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright 2017 LasLabs Inc.
|
# Copyright 2017 LasLabs Inc.
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
@@ -6,7 +5,6 @@ from odoo import fields, models
|
|||||||
|
|
||||||
|
|
||||||
class AccountAnalyticContractLine(models.Model):
|
class AccountAnalyticContractLine(models.Model):
|
||||||
|
|
||||||
_name = 'account.analytic.contract.line'
|
_name = 'account.analytic.contract.line'
|
||||||
_description = 'Contract Lines'
|
_description = 'Contract Lines'
|
||||||
_inherit = 'account.analytic.invoice.line'
|
_inherit = 'account.analytic.invoice.line'
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# © 2004-2010 OpenERP SA
|
# © 2004-2010 OpenERP SA
|
||||||
# © 2014 Angel Moya <angel.moya@domatix.com>
|
# © 2014 Angel Moya <angel.moya@domatix.com>
|
||||||
# © 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
# © 2015 Pedro M. Baeza <pedro.baeza@tecnativa.com>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# © 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
|
# © 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright 2017 Carlos Dauden <carlos.dauden@tecnativa.com>
|
# Copyright 2017 Carlos Dauden <carlos.dauden@tecnativa.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# © 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
|
# © 2016 Carlos Dauden <carlos.dauden@tecnativa.com>
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
# Copyright 2016 Tecnativa - Carlos Dauden
|
# Copyright 2016 Tecnativa - Carlos Dauden
|
||||||
# Copyright 2017 Tecnativa - Pedro M. Baeza
|
# Copyright 2017 Tecnativa - Pedro M. Baeza
|
||||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||||
|
|||||||
Reference in New Issue
Block a user