From 4ac2f0ad4b48f1fbbc23746d36448406ff051fed Mon Sep 17 00:00:00 2001 From: Andreas Osim Date: Thu, 12 Jul 2018 15:29:49 +0200 Subject: [PATCH 01/23] IC-Invoicing (Odoo-2-PG) --- .../dp_custom/views/res_partner_views.xml | 1 + .../dp_intercompany_invoicing/__init__.py | 1 + .../dp_intercompany_invoicing/__manifest__.py | 1 + .../models/account.py | 3 ++ .../views/account_views.xml | 35 +++++++++++++++- .../wizards/__init__.py | 1 + .../wizards/wizard_tz_ic.py | 42 +++++++++++++++++++ .../wizards/wizard_tz_ic.xml | 40 ++++++++++++++++++ 8 files changed, 122 insertions(+), 2 deletions(-) create mode 100644 ext/custom-addons/dp_intercompany_invoicing/wizards/__init__.py create mode 100644 ext/custom-addons/dp_intercompany_invoicing/wizards/wizard_tz_ic.py create mode 100644 ext/custom-addons/dp_intercompany_invoicing/wizards/wizard_tz_ic.xml diff --git a/ext/custom-addons/dp_custom/views/res_partner_views.xml b/ext/custom-addons/dp_custom/views/res_partner_views.xml index da040b72..0282dc15 100644 --- a/ext/custom-addons/dp_custom/views/res_partner_views.xml +++ b/ext/custom-addons/dp_custom/views/res_partner_views.xml @@ -73,6 +73,7 @@ + diff --git a/ext/custom-addons/dp_intercompany_invoicing/__init__.py b/ext/custom-addons/dp_intercompany_invoicing/__init__.py index 15bca215..a4a92031 100644 --- a/ext/custom-addons/dp_intercompany_invoicing/__init__.py +++ b/ext/custom-addons/dp_intercompany_invoicing/__init__.py @@ -20,3 +20,4 @@ ############################################################################## from . import models +from . import wizards diff --git a/ext/custom-addons/dp_intercompany_invoicing/__manifest__.py b/ext/custom-addons/dp_intercompany_invoicing/__manifest__.py index d333a251..952bf8ea 100644 --- a/ext/custom-addons/dp_intercompany_invoicing/__manifest__.py +++ b/ext/custom-addons/dp_intercompany_invoicing/__manifest__.py @@ -35,6 +35,7 @@ 'data': [ 'views/account_views.xml', 'views/res_company_views.xml', + 'wizards/wizard_tz_ic.xml', 'security/ir.model.access.csv', ], 'installable': True, diff --git a/ext/custom-addons/dp_intercompany_invoicing/models/account.py b/ext/custom-addons/dp_intercompany_invoicing/models/account.py index 3a475b9e..bee85fbc 100644 --- a/ext/custom-addons/dp_intercompany_invoicing/models/account.py +++ b/ext/custom-addons/dp_intercompany_invoicing/models/account.py @@ -36,6 +36,9 @@ class AccountInvoice(models.Model): charge_further = fields.Boolean(string='Weiterverrechnen', compute='_compute_charge_further', store=True, help='Ist gesetzt, wenn das WV-Flag von mindestens einer Zeile gesetzt ist') + pg_ic_num = fields.Char('PG_IC_Nummer') + pg_ic_flag = fields.Boolean(string='IC', help='Rechnung nach PG exportiert') + @api.multi def _compute_inter_company_supplier_isset(self): for record in self: diff --git a/ext/custom-addons/dp_intercompany_invoicing/views/account_views.xml b/ext/custom-addons/dp_intercompany_invoicing/views/account_views.xml index 873e9fee..39e98c9f 100644 --- a/ext/custom-addons/dp_intercompany_invoicing/views/account_views.xml +++ b/ext/custom-addons/dp_intercompany_invoicing/views/account_views.xml @@ -6,11 +6,12 @@ account.invoice - +