From 872800c76db9409cc0d7ab83c4e06fbebcb6e6bc Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 6 Jun 2011 20:42:04 +0200 Subject: [PATCH] . Implemented the fiscal representative : for example, when you ship to the EU but invoice outside of the EU, your customer needs to have a fiscal representative inside the EU, which will be used for the DEB . depend on base_vat instead of account. --- intrastat_base/__terp__.py | 2 +- intrastat_base/intrastat_common.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/intrastat_base/__terp__.py b/intrastat_base/__terp__.py index 555287d6..089173ab 100644 --- a/intrastat_base/__terp__.py +++ b/intrastat_base/__terp__.py @@ -39,7 +39,7 @@ Please contact Alexis de Lattre from Akretion for """, 'author': 'Akretion', 'website': 'http://www.akretion.com', - 'depends': ['account'], + 'depends': ['base_vat'], 'init_xml': ['country_data.xml'], 'update_xml': [ 'security/ir.model.access.csv', diff --git a/intrastat_base/intrastat_common.py b/intrastat_base/intrastat_common.py index aef39306..a49da8ac 100644 --- a/intrastat_base/intrastat_common.py +++ b/intrastat_base/intrastat_common.py @@ -105,6 +105,7 @@ class report_intrastat_common(osv.osv_memory): def _open_attach_view(self, cr, uid, attach_id, title='XML file', context=None): '''Returns an action which opens the form view of the corresponding attachement''' + # Only works in v6 -> not used in v5 action = { 'name': title, 'view_type': 'form',