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',