From 3fdc3b4256d0e9e2a4ce24400d5722b5ae4091d9 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Sun, 15 Apr 2018 00:45:03 +0200 Subject: [PATCH] Add glue module account_invoice_transmit_method_street3 with auto_install=True --- .../__init__.py | 1 + .../__manifest__.py | 26 +++++++++++++++++++ .../partner_view.xml | 23 ++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 account_invoice_transmit_method_street3/__init__.py create mode 100644 account_invoice_transmit_method_street3/__manifest__.py create mode 100644 account_invoice_transmit_method_street3/partner_view.xml diff --git a/account_invoice_transmit_method_street3/__init__.py b/account_invoice_transmit_method_street3/__init__.py new file mode 100644 index 0000000..40a96af --- /dev/null +++ b/account_invoice_transmit_method_street3/__init__.py @@ -0,0 +1 @@ +# -*- coding: utf-8 -*- diff --git a/account_invoice_transmit_method_street3/__manifest__.py b/account_invoice_transmit_method_street3/__manifest__.py new file mode 100644 index 0000000..790684f --- /dev/null +++ b/account_invoice_transmit_method_street3/__manifest__.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- +# Copyright 2018 Akretion (http://www.akretion.com) +# @author Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + 'name': 'partner_address_street3 / account_invoice_transmit_method compat.', + 'version': '10.0.0.1.0', + 'category': 'Partner', + 'license': 'AGPL-3', + 'summary': 'Compatibility between partner_address_street3 and account_invoice_transmit_method', + 'description': """ +Glue module between partner_address_street3 and account_invoice_transmit_method +=============================================================================== + +Stupid technical module to workaround an Odoo framework limitation about the inherit of the context attribute in a view. + """, + 'author': 'Akretion', + 'website': 'http://www.akretion.com', + 'depends': ['partner_address_street3', 'account_invoice_transmit_method'], + 'data': [ + 'partner_view.xml', + ], + 'installable': True, + 'auto_install': True, +} diff --git a/account_invoice_transmit_method_street3/partner_view.xml b/account_invoice_transmit_method_street3/partner_view.xml new file mode 100644 index 0000000..06efd8d --- /dev/null +++ b/account_invoice_transmit_method_street3/partner_view.xml @@ -0,0 +1,23 @@ + + + + + + + + Compatibility partner_address_street3 / account_invoice_transmit_method + res.partner + + 1000 + + + {'default_parent_id': active_id, 'default_street': street, 'default_street2': street2, 'default_city': city, 'default_state_id': state_id, 'default_zip': zip, 'default_country_id': country_id, 'default_supplier': supplier, 'default_customer': customer, 'default_lang': lang, 'default_customer_invoice_transmit_method_code': customer_invoice_transmit_method_code, 'default_supplier_invoice_transmit_method_code': supplier_invoice_transmit_method_code, 'default_street3': street3} + + + + + +