From c2686b76aae7da7184e45f3e888d1ef23d38acc8 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 4 Apr 2011 11:21:00 +0200 Subject: [PATCH] Converted some fields on report_intrastat_product/service to many2one (fields that are not in the official declaration or never subject to change) Add copy of department from warehouse to invoice. Import DEB don't have the partner_vat field Department can be 99 for Monaco. Copy tranport and department from report_intrastat_product in XML file First attempt at adapting the display of fields depending on the type of declaration. --- l10n_fr_intrastat_base/intrastat_type.py | 1 + 1 file changed, 1 insertion(+) diff --git a/l10n_fr_intrastat_base/intrastat_type.py b/l10n_fr_intrastat_base/intrastat_type.py index 1e3fdc39..4d00e9ac 100644 --- a/l10n_fr_intrastat_base/intrastat_type.py +++ b/l10n_fr_intrastat_base/intrastat_type.py @@ -25,6 +25,7 @@ from osv import osv, fields class report_intrastat_type(osv.osv): _name = "report.intrastat.type" _description = "Intrastat type" + _order = "type, intrastat_only" _columns = { 'name': fields.char('Name',size=64,help="Name which appear when you select the Intrastat type on the invoice."), 'active' : fields.boolean('Active', help="The active field allows you to hide the Intrastat type without deleting it."),