Browse Source
[IMP] Contract: matching invoice view depending on contract type
[IMP] Contract: matching invoice view depending on contract type
[ADD] Contract: invoice partner13.0-mig-contract
Thomas Binsfeld
6 years ago
committed by
Administrator
4 changed files with 52 additions and 3 deletions
-
2contract/__manifest__.py
-
15contract/migrations/12.0.3.0.0/post-migration.py
-
36contract/models/contract.py
-
2contract/views/contract.xml
@ -0,0 +1,15 @@ |
|||
# Copyright 2019 ACSONE SA/NV |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
import logging |
|||
|
|||
from odoo import SUPERUSER_ID, api |
|||
|
|||
_logger = logging.getLogger(__name__) |
|||
|
|||
|
|||
def migrate(cr, version): |
|||
_logger.info("Populate invoicing partner field on contracts") |
|||
env = api.Environment(cr, SUPERUSER_ID, {}) |
|||
contracts = env["account.analytic.account"].search([]) |
|||
contracts._inverse_partner_id() |
Write
Preview
Loading…
Cancel
Save
Reference in new issue