From f7e4fb31924832b021c7e27379d5599bcf2fa51e Mon Sep 17 00:00:00 2001 From: "Kuldeep Joshi (OpenERP)" Date: Wed, 9 Feb 2011 16:45:37 +0530 Subject: [PATCH 01/55] [FIX] base_action_rule: Encoding trouble in mail_message parsing and base_action_rule processin lp bug: https://launchpad.net/bugs/921442 fixed bzr revid: kjo@tinyerp.com-20110209111537-xh7tcqqo50xfoty1 --- addons/base_action_rule/base_action_rule.py | 5 +++-- addons/crm/crm_action_rule.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/addons/base_action_rule/base_action_rule.py b/addons/base_action_rule/base_action_rule.py index 249fea89e0e..25885598f89 100644 --- a/addons/base_action_rule/base_action_rule.py +++ b/addons/base_action_rule/base_action_rule.py @@ -28,6 +28,7 @@ import pooler import re import time import tools +from openerp.loglevels import ustr def get_datetime(date_field): @@ -369,8 +370,8 @@ the rule to mark CC(mail to any other person defined in actions)."), reg_name = action.regex_name result_name = True if reg_name: - ptrn = re.compile(str(reg_name)) - _result = ptrn.search(str(obj.name)) + ptrn = re.compile(ustr(reg_name)) + _result = ptrn.search(ustr(obj.name)) if not _result: result_name = False regex_n = not reg_name or result_name diff --git a/addons/crm/crm_action_rule.py b/addons/crm/crm_action_rule.py index 3947eb58156..27ee6e49d6f 100644 --- a/addons/crm/crm_action_rule.py +++ b/addons/crm/crm_action_rule.py @@ -27,6 +27,7 @@ from osv import fields from osv import osv import crm +from openerp.loglevels import ustr class base_action_rule(osv.osv): """ Base Action Rule """ @@ -73,9 +74,9 @@ class base_action_rule(osv.osv): regex = action.regex_history if regex: res = False - ptrn = re.compile(str(regex)) + ptrn = re.compile(ustr(regex)) for history in obj.message_ids: - _result = ptrn.search(str(history.name)) + _result = ptrn.search(ustr(history.subject)) if _result: res = True break From d081af362cb00b376753121e24ae6d49944c0fa7 Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Tue, 21 Feb 2012 18:42:38 +0530 Subject: [PATCH 02/55] [FIX] mail: remove the unused charector from the message body using filter. bzr revid: nco@tinyerp.com-20120221131238-czel3dz0b51ac2dz --- addons/mail/mail_message.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mail/mail_message.py b/addons/mail/mail_message.py index 1693397f6fa..1d84468ca85 100644 --- a/addons/mail/mail_message.py +++ b/addons/mail/mail_message.py @@ -441,7 +441,8 @@ class mail_message(osv.osv): if part.get_content_subtype() == 'html': msg['body_html'] = content msg['subtype'] = 'html' # html version prevails - body = tools.ustr(tools.html2plaintext(content)) + #this filter will remove " " unused charector which generaed by space + body = filter(lambda c: c not in " ", tools.ustr(tools.html2plaintext(content))) elif part.get_content_subtype() == 'plain': body = content elif part.get_content_maintype() in ('application', 'image'): From 3df9fa50fb133cf4ec3539e7a1bc6dd53770a463 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Wed, 22 Feb 2012 11:26:39 +0100 Subject: [PATCH 03/55] [IMP] try to terminate all postgresql backends connected to a database before dropping it bzr revid: chs@openerp.com-20120222102639-q19kiykopb3b3qu0 --- openerp/service/web_services.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/openerp/service/web_services.py b/openerp/service/web_services.py index a7136e24269..8fed25cf226 100644 --- a/openerp/service/web_services.py +++ b/openerp/service/web_services.py @@ -173,6 +173,8 @@ class db(netsvc.ExportService): raise Exception, e def exp_drop(self, db_name): + if not self.exp_db_exist(db_name): + return False openerp.modules.registry.RegistryManager.delete(db_name) sql_db.close_db(db_name) @@ -180,6 +182,13 @@ class db(netsvc.ExportService): cr = db.cursor() cr.autocommit(True) # avoid transaction block try: + try: + cr.execute('SELECT DISTINCT procpid FROM pg_stat_activity WHERE datname=%s', (db_name,)) + for procpid, in cr.fetchall(): + cr.execute('SELECT pg_terminate_backend(%d)' % (procpid,)) + except Exception: + pass + try: cr.execute('DROP DATABASE "%s"' % db_name) except Exception, e: From 3490275dc06fd4cf902ca60035a7418e17fbb85d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9cile=20Tonglet?= Date: Wed, 22 Feb 2012 12:40:09 +0100 Subject: [PATCH 04/55] [REF] Clean up of tools.graph bzr revid: cto@openerp.com-20120222114009-nyalbc7uyelf54f0 --- openerp/tools/graph.py | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/openerp/tools/graph.py b/openerp/tools/graph.py index b54e101eec4..9ad1f34e91f 100755 --- a/openerp/tools/graph.py +++ b/openerp/tools/graph.py @@ -438,26 +438,19 @@ class graph(object): l.reverse() no = len(l) - if no%2==0: - first_half = l[no/2:] - factor = 1 - else: - first_half = l[no/2+1:] - factor = 0 - + rest = no%2 + first_half = l[no/2+rest:] last_half = l[:no/2] - i=1 - for child in first_half: - self.result[child]['y'] = mid_pos - (i - (factor * 0.5)) - i += 1 + for i, child in enumerate(first_half): + self.result[child]['y'] = mid_pos - (i+1 - (0 if rest else 0.5)) if self.transitions.get(child, False): if last: self.result[child]['y'] = last + len(self.transitions[child])/2 + 1 last = self.tree_order(child, last) - if no%2: + if rest: mid_node = l[no/2] self.result[mid_node]['y'] = mid_pos @@ -474,7 +467,7 @@ class graph(object): i=1 last_child = None for child in last_half: - self.result[child]['y'] = mid_pos + (i - (factor * 0.5)) + self.result[child]['y'] = mid_pos + (i - (0 if rest else 0.5)) last_child = child i += 1 if self.transitions.get(child, False): From 4a87cc055d365ec4d9063805ebcebf7050c0d5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9cile=20Tonglet?= Date: Wed, 22 Feb 2012 16:16:53 +0100 Subject: [PATCH 05/55] [FIX] infinte loops in tools.graph lp bug: https://launchpad.net/bugs/932830 fixed bzr revid: cto@openerp.com-20120222151653-ucftpis7zh9kman5 --- openerp/tools/graph.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/openerp/tools/graph.py b/openerp/tools/graph.py index 9ad1f34e91f..1b039ce97c6 100755 --- a/openerp/tools/graph.py +++ b/openerp/tools/graph.py @@ -313,7 +313,8 @@ class graph(object): self.order[level] = self.order[level]+1 for sec_end in self.transitions.get(node, []): - self.init_order(sec_end, self.result[sec_end]['x']) + if node!=sec_end: + self.init_order(sec_end, self.result[sec_end]['x']) def order_heuristic(self): @@ -457,7 +458,8 @@ class graph(object): if self.transitions.get((mid_node), False): if last: self.result[mid_node]['y'] = last + len(self.transitions[mid_node])/2 + 1 - last = self.tree_order(mid_node) + if node!=mid_node: + last = self.tree_order(mid_node) else: if last: self.result[mid_node]['y'] = last + 1 @@ -473,7 +475,8 @@ class graph(object): if self.transitions.get(child, False): if last: self.result[child]['y'] = last + len(self.transitions[child])/2 + 1 - last = self.tree_order(child, last) + if node!=child: + last = self.tree_order(child, last) if last_child: last = self.result[last_child]['y'] From e6131b194f8a51508b8044b772961593d72ed3bc Mon Sep 17 00:00:00 2001 From: "Nimesh (Open ERP)" Date: Thu, 23 Feb 2012 11:10:22 +0530 Subject: [PATCH 06/55] [FIX] mail: remove the unused charector generated by the html2plaintext function from the message. bzr revid: nco@tinyerp.com-20120223054022-9l9hxv3ssiajdf9p --- addons/mail/mail_message.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail/mail_message.py b/addons/mail/mail_message.py index 1d84468ca85..dc372aec84a 100644 --- a/addons/mail/mail_message.py +++ b/addons/mail/mail_message.py @@ -441,8 +441,8 @@ class mail_message(osv.osv): if part.get_content_subtype() == 'html': msg['body_html'] = content msg['subtype'] = 'html' # html version prevails - #this filter will remove " " unused charector which generaed by space - body = filter(lambda c: c not in " ", tools.ustr(tools.html2plaintext(content))) + body = tools.ustr(tools.html2plaintext(content)) + body = body.replace(' ', '') elif part.get_content_subtype() == 'plain': body = content elif part.get_content_maintype() in ('application', 'image'): From 53c78d1c0cf8e3dfcecc67b3a0bf9a6fbcb2c5c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20V=C3=A1squez?= Date: Wed, 29 Feb 2012 19:47:08 -0600 Subject: [PATCH 07/55] [FIX] module icon doesn't update lp bug: https://launchpad.net/bugs/927675 fixed bzr revid: carlos.vasquez@clearcorp.co.cr-20120301014708-qn0d7z47ycm9cdsg --- openerp/addons/base/module/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openerp/addons/base/module/module.py b/openerp/addons/base/module/module.py index beb35ee38b2..cb484520058 100644 --- a/openerp/addons/base/module/module.py +++ b/openerp/addons/base/module/module.py @@ -452,6 +452,7 @@ class module(osv.osv): 'sequence': terp.get('sequence', 100), 'application': terp.get('application', False), 'auto_install': terp.get('auto_install', False), + 'icon': terp.get('icon', False), } # update the list of available packages From b3b39b86994e06a1d93d03653cefafd862c96d41 Mon Sep 17 00:00:00 2001 From: ado Date: Fri, 2 Mar 2012 14:22:20 +0100 Subject: [PATCH 08/55] [FIX] account move entry should be created with 0.0 value when cost price is 0.0 bzr revid: xal@openerp.com-20120302132220-015g1apibi2x5bmc --- addons/stock/stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock.py b/addons/stock/stock.py index 885f7cd2077..d26ca8f0da3 100644 --- a/addons/stock/stock.py +++ b/addons/stock/stock.py @@ -2165,7 +2165,7 @@ class stock_move(osv.osv): context = {} currency_ctx = dict(context, currency_id = move.company_id.currency_id.id) amount_unit = move.product_id.price_get('standard_price', context=currency_ctx)[move.product_id.id] - reference_amount = amount_unit * qty or 1.0 + reference_amount = amount_unit * qty return reference_amount, reference_currency_id From f3979cefa6042e4717371d118adc40045aecfab9 Mon Sep 17 00:00:00 2001 From: eLBati Date: Mon, 5 Mar 2012 10:14:59 +0100 Subject: [PATCH 09/55] [IMP] l10n_it - using account types provided by account module This also fixes problems related to P&L and balance sheet reports bzr revid: lorenzo.battistini@agilebg.com-20120305091459-gi60io9cthqg75z8 --- addons/l10n_it/__openerp__.py | 3 +- .../l10n_it/data/account.account.template.csv | 468 +++++++++--------- addons/l10n_it/data/account.account.type.csv | 11 - 3 files changed, 235 insertions(+), 247 deletions(-) delete mode 100644 addons/l10n_it/data/account.account.type.csv diff --git a/addons/l10n_it/__openerp__.py b/addons/l10n_it/__openerp__.py index edc453f8ba0..96f3b3510ff 100644 --- a/addons/l10n_it/__openerp__.py +++ b/addons/l10n_it/__openerp__.py @@ -9,7 +9,7 @@ # Domsense srl # Albatos srl # -# Copyright (C) 2011 +# Copyright (C) 2011-2012 # Associazione OpenERP Italia () # # This program is free software: you can redistribute it and/or modify @@ -44,7 +44,6 @@ Italian accounting chart and localization. 'init_xml': [ ], 'update_xml': [ - 'data/account.account.type.csv', 'data/account.account.template.csv', 'data/account.tax.code.template.csv', 'account_chart.xml', diff --git a/addons/l10n_it/data/account.account.template.csv b/addons/l10n_it/data/account.account.template.csv index 47ae1388233..b06a3fe8574 100644 --- a/addons/l10n_it/data/account.account.template.csv +++ b/addons/l10n_it/data/account.account.template.csv @@ -1,235 +1,235 @@ id,code,name,parent_id:id,user_type:id,type,reconcile -0,0,Azienda,,account_type_view,view,FALSE -1,1,ATTIVO ,0,account_type_view,view,TRUE -11,11,IMMOBILIZZAZIONI IMMATERIALI ,1,account_type_view,view,TRUE -1101,1101,costi di impianto ,11,account_type_asset,other,TRUE -1106,1106,software ,11,account_type_asset,other,TRUE -1108,1108,avviamento ,11,account_type_asset,other,TRUE -1111,1111,fondo ammortamento costi di impianto ,11,account_type_asset,other,TRUE -1116,1116,fondo ammortamento software ,11,account_type_asset,other,TRUE -1118,1118,fondo ammortamento avviamento ,11,account_type_asset,other,TRUE -12,12,IMMOBILIZZAZIONI MATERIALI ,1,account_type_view,view,TRUE -1201,1201,fabbricati ,12,account_type_asset,other,TRUE -1202,1202,impianti e macchinari ,12,account_type_asset,other,TRUE -1204,1204,attrezzature commerciali ,12,account_type_asset,other,TRUE -1205,1205,macchine d'ufficio ,12,account_type_asset,other,TRUE -1206,1206,arredamento ,12,account_type_asset,other,TRUE -1207,1207,automezzi ,12,account_type_asset,other,TRUE -1208,1208,imballaggi durevoli ,12,account_type_asset,other,TRUE -1211,1211,fondo ammortamento fabbricati ,12,account_type_asset,other,TRUE -1212,1212,fondo ammortamento impianti e macchinari ,12,account_type_asset,other,TRUE -1214,1214,fondo ammortamento attrezzature commerciali ,12,account_type_asset,other,TRUE -1215,1215,fondo ammortamento macchine d'ufficio ,12,account_type_asset,other,TRUE -1216,1216,fondo ammortamento arredamento ,12,account_type_asset,other,TRUE -1217,1217,fondo ammortamento automezzi ,12,account_type_asset,other,TRUE -1218,1218,fondo ammortamento imballaggi durevoli ,12,account_type_asset,other,TRUE -1220,1220,fornitori immobilizzazioni c/acconti ,12,account_type_asset,other,TRUE -13,13,IMMOBILIZZAZIONI FINANZIARIE ,1,account_type_view,view,TRUE -1301,1301,mutui attivi ,13,account_type_asset,other,TRUE -14,14,RIMANENZE ,1,account_type_view,view,TRUE -1401,1401,materie di consumo ,14,account_type_asset,other,TRUE -1404,1404,merci ,14,account_type_asset,other,TRUE -1410,1410,fornitori c/acconti ,14,account_type_asset,other,TRUE -15,15,CREDITI COMMERCIALI ,1,account_type_view,view,TRUE -1501,1501,crediti v/clienti ,15,account_type_receivable,receivable,TRUE -1502,1502,crediti commerciali diversi ,15,account_type_receivable,other,TRUE -1503,1503,clienti c/spese anticipate ,15,account_type_receivable,receivable,TRUE -1505,1505,cambiali attive ,15,account_type_receivable,other,TRUE -1506,1506,cambiali allo sconto ,15,account_type_receivable,other,TRUE -1507,1507,cambiali all'incasso ,15,account_type_receivable,other,TRUE -1509,1509,fatture da emettere ,15,account_type_receivable,other,TRUE -1510,1510,crediti insoluti ,15,account_type_receivable,other,TRUE -1511,1511,cambiali insolute ,15,account_type_receivable,other,TRUE -1531,1531,crediti da liquidare ,15,account_type_receivable,other,TRUE -1540,1540,fondo svalutazione crediti ,15,account_type_receivable,other,TRUE -1541,1541,fondo rischi su crediti ,15,account_type_receivable,other,TRUE -16,16,CREDITI DIVERSI ,1,account_type_view,view,TRUE -1601,1601,IVA n/credito ,16,account_type_tax,other,TRUE -1602,1602,IVA c/acconto ,16,account_type_tax,other,TRUE -1605,1605,crediti per IVA ,16,account_type_tax,other,TRUE -1607,1607,imposte c/acconto ,16,account_type_tax,other,TRUE -1608,1608,crediti per imposte ,16,account_type_tax,other,TRUE -1609,1609,crediti per ritenute subite ,16,account_type_asset,other,TRUE -1610,1610,crediti per cauzioni ,16,account_type_asset,other,TRUE -1620,1620,personale c/acconti ,16,account_type_asset,other,TRUE -1630,1630,crediti v/istituti previdenziali ,16,account_type_asset,other,TRUE -1640,1640,debitori diversi ,16,account_type_receivable,receivable,TRUE -18,18,DISPONIBILITÀ LIQUIDE ,1,account_type_view,view,TRUE -1801,1801,banche c/c ,18,account_type_bank,liquidity,TRUE -1810,1810,c/c postali ,18,account_type_cash,liquidity,TRUE -1820,1820,denaro in cassa ,18,account_type_cash,liquidity,TRUE -1821,1821,assegni ,18,account_type_cash,liquidity,TRUE -1822,1822,valori bollati ,18,account_type_cash,liquidity,TRUE -19,19,RATEI E RISCONTI ATTIVI ,1,account_type_view,view,TRUE -1901,1901,ratei attivi ,19,account_type_asset,other,TRUE -1902,1902,risconti attivi ,19,account_type_asset,other,TRUE -2,2,PASSIVO ,0,account_type_view,view,TRUE -20,20,PATRIMONIO NETTO ,2,account_type_view,view,TRUE -2101,2101,patrimonio netto ,20,account_type_asset,other,TRUE -2102,2102,utile d'esercizio ,20,account_type_asset,other,TRUE -2103,2103,perdita d'esercizio ,20,account_type_asset,other,TRUE -2104,2104,prelevamenti extra gestione ,20,account_type_asset,other,TRUE -2105,2105,titolare c/ritenute subite ,20,account_type_asset,other,TRUE -22,22,FONDI PER RISCHI E ONERI ,2,account_type_view,view,TRUE -2201,2201,fondo per imposte ,22,account_type_asset,other,TRUE -2204,2204,fondo responsabilità civile ,22,account_type_asset,other,TRUE -2205,2205,fondo spese future ,22,account_type_asset,other,TRUE -2211,2211,fondo manutenzioni programmate ,22,account_type_asset,other,TRUE -23,23,TRATTAMENTO FINE RAPPORTO DI LAVORO ,2,account_type_view,view,TRUE -2301,2301,debiti per TFRL ,23,account_type_asset,other,TRUE -24,24,DEBITI FINANZIARI ,2,account_type_view,view,TRUE -2410,2410,mutui passivi ,24,account_type_asset,other,TRUE -2411,2411,banche c/sovvenzioni ,24,account_type_asset,other,TRUE -2420,2420,banche c/c passivi ,24,account_type_asset,other,TRUE -2421,2421,banche c/RIBA all'incasso ,24,account_type_asset,other,TRUE -2422,2422,banche c/cambiali all'incasso ,24,account_type_asset,other,TRUE -2423,2423,banche c/anticipi su fatture ,24,account_type_asset,other,TRUE -2440,2440,debiti v/altri finanziatori ,24,account_type_asset,other,TRUE -25,25,DEBITI COMMERCIALI ,2,account_type_view,view,TRUE -2501,2501,debiti v/fornitori ,25,account_type_payable,payable,TRUE -2503,2503,cambiali passive ,25,account_type_asset,other,TRUE -2520,2520,fatture da ricevere ,25,account_type_asset,other,TRUE -2521,2521,debiti da liquidare ,25,account_type_asset,other,TRUE -2530,2530,clienti c/acconti ,25,account_type_payable,payable,TRUE -26,26,DEBITI DIVERSI ,2,account_type_view,view,TRUE -2601,2601,IVA n/debito ,26,account_type_tax,other,TRUE -2602,2602,debiti per ritenute da versare ,26,account_type_payable,payable,TRUE -2605,2605,erario c/IVA ,26,account_type_payable,payable,TRUE -2606,2606,debiti per imposte ,26,account_type_tax,other,TRUE -2619,2619,debiti per cauzioni ,26,account_type_asset,other,TRUE -2620,2620,personale c/retribuzioni ,26,account_type_asset,other,TRUE -2621,2621,personale c/liquidazioni ,26,account_type_asset,other,TRUE -2622,2622,clienti c/cessione ,26,account_type_asset,other,TRUE -2630,2630,debiti v/istituti previdenziali ,26,account_type_asset,other,TRUE -2640,2640,creditori diversi ,26,account_type_payable,payable,TRUE -27,27,RATEI E RISCONTI PASSIVI ,2,account_type_view,view,TRUE -2701,2701,ratei passivi ,27,account_type_asset,other,TRUE -2702,2702,risconti passivi ,27,account_type_asset,other,TRUE -28,28,CONTI TRANSITORI E DIVERSI ,2,account_type_view,view,TRUE -2801,2801,bilancio di apertura ,28,account_type_asset,other,TRUE -2802,2802,bilancio di chiusura ,28,account_type_asset,other,TRUE -2810,2810,IVA c/liquidazioni ,28,account_type_asset,other,TRUE -2811,2811,istituti previdenziali ,28,account_type_asset,other,TRUE -2820,2820,banca ... c/c ,28,account_type_asset,other,TRUE -2821,2821,banca ... c/c ,28,account_type_asset,other,TRUE -2822,2822,banca ... c/c ,28,account_type_asset,other,TRUE -29,29,CONTI DEI SISTEMI SUPPLEMENTARI ,2,account_type_view,view,TRUE -2901,2901,beni di terzi ,29,account_type_asset,other,TRUE -2902,2902,depositanti beni ,29,account_type_asset,other,TRUE -2911,2911,merci da ricevere ,29,account_type_asset,other,TRUE -2912,2912,fornitori c/impegni ,29,account_type_asset,other,TRUE -2913,2913,impegni per beni in leasing ,29,account_type_asset,other,TRUE -2914,2914,creditori c/leasing ,29,account_type_asset,other,TRUE -2916,2916,clienti c/impegni ,29,account_type_asset,other,TRUE -2917,2917,merci da consegnare ,29,account_type_asset,other,TRUE -2921,2921,rischi per effetti scontati ,29,account_type_asset,other,TRUE -2922,2922,banche c/effetti scontati ,29,account_type_asset,other,TRUE -2926,2926,rischi per fideiussioni ,29,account_type_asset,other,TRUE -2927,2927,creditori per fideiussioni ,29,account_type_asset,other,TRUE -2931,2931,rischi per avalli ,29,account_type_asset,other,TRUE -2932,2932,creditori per avalli ,29,account_type_asset,other,TRUE -3,3,VALORE DELLA PRODUZIONE ,0,account_type_view,view,TRUE -31,31,VENDITE E PRESTAZIONI ,3,account_type_view,view,TRUE -3101,3101,merci c/vendite ,31,account_type_income,other,TRUE -3103,3103,rimborsi spese di vendita ,31,account_type_income,other,TRUE -3110,3110,resi su vendite ,31,account_type_income,other,TRUE -3111,3111,ribassi e abbuoni passivi ,31,account_type_income,other,TRUE -3112,3112,premi su vendite ,31,account_type_income,other,TRUE -32,32,RICAVI E PROVENTI DIVERSI ,3,account_type_view,view,TRUE -3201,3201,fitti attivi ,32,account_type_income,other,TRUE -3202,3202,proventi vari ,32,account_type_income,other,TRUE -3210,3210,arrotondamenti attivi ,32,account_type_income,other,TRUE -3220,3220,plusvalenze ordinarie diverse ,32,account_type_income,other,TRUE -3230,3230,sopravvenienze attive ordinarie diverse ,32,account_type_income,other,TRUE -3240,3240,insussistenze attive ordinarie diverse ,32,account_type_income,other,TRUE -4,4,COSTI DELLA PRODUZIONE ,0,account_type_view,view,TRUE -41,41,COSTO DEL VENDUTO ,4,account_type_view,view,TRUE -4101,4101,merci c/acquisti ,41,account_type_expense,other,TRUE -4102,4102,materie di consumo c/acquisti ,41,account_type_expense,other,TRUE -4105,4105,merci c/apporti ,41,account_type_expense,other,TRUE -4110,4110,resi su acquisti ,41,account_type_expense,other,TRUE -4111,4111,ribassi e abbuoni attivi ,41,account_type_expense,other,TRUE -4112,4112,premi su acquisti ,41,account_type_expense,other,TRUE -4121,4121,merci c/esistenze iniziali ,41,account_type_expense,other,TRUE -4122,4122,materie di consumo c/esistenze iniziali ,41,account_type_expense,other,TRUE -4131,4131,merci c/rimanenze finali ,41,account_type_expense,other,TRUE -4132,4132,materie di consumo c/rimanenze finali ,41,account_type_expense,other,TRUE -42,42,COSTI PER SERVIZI ,4,account_type_view,view,TRUE -4201,4201,costi di trasporto ,42,account_type_expense,other,TRUE -4202,4202,costi per energia ,42,account_type_expense,other,TRUE -4203,4203,costi di pubblicità ,42,account_type_expense,other,TRUE -4204,4204,costi di consulenze ,42,account_type_expense,other,TRUE -4205,4205,costi postali ,42,account_type_expense,other,TRUE -4206,4206,costi telefonici ,42,account_type_expense,other,TRUE -4207,4207,costi di assicurazione ,42,account_type_expense,other,TRUE -4208,4208,costi di vigilanza ,42,account_type_expense,other,TRUE -4209,4209,costi per i locali ,42,account_type_expense,other,TRUE -4210,4210,costi di esercizio automezzi ,42,account_type_expense,other,TRUE -4211,4211,costi di manutenzione e riparazione ,42,account_type_expense,other,TRUE -4212,4212,provvigioni passive ,42,account_type_expense,other,TRUE -4213,4213,spese di incasso ,42,account_type_expense,other,TRUE -43,43,COSTI PER GODIMENTO BENI DI TERZI ,4,account_type_view,view,TRUE -4301,4301,fitti passivi ,43,account_type_expense,other,TRUE -4302,4302,canoni di leasing ,43,account_type_expense,other,TRUE -44,44,COSTI PER IL PERSONALE ,4,account_type_view,view,TRUE -4401,4401,salari e stipendi ,44,account_type_expense,other,TRUE -4402,4402,oneri sociali ,44,account_type_expense,other,TRUE -4403,4403,TFRL ,44,account_type_expense,other,TRUE -4404,4404,altri costi per il personale ,44,account_type_expense,other,TRUE -45,45,AMMORTAMENTI IMMOBILIZZAZIONI IMMATERIALI ,4,account_type_view,view,TRUE -4501,4501,ammortamento costi di impianto ,45,account_type_p_l,other,TRUE -4506,4506,ammortamento software ,45,account_type_p_l,other,TRUE -4508,4508,ammortamento avviamento ,45,account_type_p_l,other,TRUE -46,46,AMMORTAMENTI IMMOBILIZZAZIONI MATERIALI ,4,account_type_view,view,TRUE -4601,4601,ammortamento fabbricati ,46,account_type_p_l,other,TRUE -4602,4602,ammortamento impianti e macchinari ,46,account_type_p_l,other,TRUE -4604,4604,ammortamento attrezzature commerciali ,46,account_type_p_l,other,TRUE -4605,4605,ammortamento macchine d'ufficio ,46,account_type_p_l,other,TRUE -4606,4606,ammortamento arredamento ,46,account_type_p_l,other,TRUE -4607,4607,ammortamento automezzi ,46,account_type_p_l,other,TRUE -4608,4608,ammortamento imballaggi durevoli ,46,account_type_p_l,other,TRUE -47,47,SVALUTAZIONI ,4,account_type_view,view,TRUE -4701,4701,svalutazioni immobilizzazioni immateriali ,47,account_type_p_l,other,TRUE -4702,4702,svalutazioni immobilizzazioni materiali ,47,account_type_p_l,other,TRUE -4706,4706,svalutazione crediti ,47,account_type_p_l,other,TRUE -48,48,ACCANTONAMENTI ,4,account_type_view,view,TRUE -481,481,ACCANTONAMENTI PER RISCHI ,48,account_type_view,view,TRUE -4814,4814,accantonamento per responsabilità civile ,481,account_type_p_l,other,TRUE -482,482,ALTRI ACCANTONAMENTI ,48,account_type_view,view,TRUE -4821,4821,accantonamento per spese future ,482,account_type_p_l,other,TRUE -4823,4823,accantonamento per manutenzioni programmate ,482,account_type_p_l,other,TRUE -49,49,ONERI DIVERSI ,4,account_type_view,view,TRUE -4901,4901,oneri fiscali diversi ,49,account_type_p_l,other,TRUE -4903,4903,oneri vari ,49,account_type_p_l,other,TRUE -4905,4905,perdite su crediti ,49,account_type_p_l,other,TRUE -4910,4910,arrotondamenti passivi ,49,account_type_p_l,other,TRUE -4920,4920,minusvalenze ordinarie diverse ,49,account_type_p_l,other,TRUE -4930,4930,sopravvenienze passive ordinarie diverse ,49,account_type_p_l,other,TRUE -4940,4940,insussistenze passive ordinarie diverse ,49,account_type_p_l,other,TRUE -5,5,PROVENTI E ONERI FINANZIARI ,0,account_type_view,view,TRUE -51,51,PROVENTI FINANZIARI ,5,account_type_view,view,TRUE -5110,5110,interessi attivi v/clienti ,51,account_type_p_l,other,TRUE -5115,5115,interessi attivi bancari ,51,account_type_p_l,other,TRUE -5116,5116,interessi attivi postali ,51,account_type_p_l,other,TRUE -5140,5140,proventi finanziari diversi ,51,account_type_p_l,other,TRUE -52,52,ONERI FINANZIARI ,5,account_type_view,view,TRUE -5201,5201,interessi passivi v/fornitori ,52,account_type_p_l,other,TRUE -5202,5202,interessi passivi bancari ,52,account_type_p_l,other,TRUE -5203,5203,sconti passivi bancari ,52,account_type_p_l,other,TRUE -5210,5210,interessi passivi su mutui ,52,account_type_p_l,other,TRUE -5240,5240,oneri finanziari diversi ,52,account_type_p_l,other,TRUE -7,7,PROVENTI E ONERI STRAORDINARI ,0,account_type_view,view,TRUE -71,71,PROVENTI STRAORDINARI ,7,account_type_view,view,TRUE -7101,7101,plusvalenze straordinarie ,71,account_type_p_l,other,TRUE -7102,7102,sopravvenienze attive straordinarie ,71,account_type_p_l,other,TRUE -7103,7103,insussistenze attive straordinarie ,71,account_type_p_l,other,TRUE -72,72,ONERI STRAORDINARI ,7,account_type_view,view,TRUE -7201,7201,minusvalenze straordinarie ,72,account_type_p_l,other,TRUE -7202,7202,sopravvenienze passive straordinarie ,72,account_type_p_l,other,TRUE -7203,7203,insussistenze passive straordinarie ,72,account_type_p_l,other,TRUE -7204,7204,imposte esercizi precedenti ,72,account_type_p_l,other,TRUE -8,8,IMPOSTE DELL'ESERCIZIO ,0,account_type_view,view,TRUE -8101,8101,imposte dell'esercizio ,8,account_type_p_l,other,TRUE -9,9,CONTI DI RISULTATO ,0,account_type_view,view,TRUE -9101,9101,conto di risultato economico ,9,account_type_p_l,other,TRUE -9102,9102,stato patrimoniale,9,account_type_p_l,other,TRUE +0,0,Azienda,,account.data_account_type_view,view,FALSE +1,1,ATTIVO ,0,account.data_account_type_view,view,TRUE +11,11,IMMOBILIZZAZIONI IMMATERIALI ,1,account.data_account_type_view,view,TRUE +1101,1101,costi di impianto ,11,account.data_account_type_asset,other,TRUE +1106,1106,software ,11,account.data_account_type_asset,other,TRUE +1108,1108,avviamento ,11,account.data_account_type_asset,other,TRUE +1111,1111,fondo ammortamento costi di impianto ,11,account.data_account_type_asset,other,TRUE +1116,1116,fondo ammortamento software ,11,account.data_account_type_asset,other,TRUE +1118,1118,fondo ammortamento avviamento ,11,account.data_account_type_asset,other,TRUE +12,12,IMMOBILIZZAZIONI MATERIALI ,1,account.data_account_type_view,view,TRUE +1201,1201,fabbricati ,12,account.data_account_type_asset,other,TRUE +1202,1202,impianti e macchinari ,12,account.data_account_type_asset,other,TRUE +1204,1204,attrezzature commerciali ,12,account.data_account_type_asset,other,TRUE +1205,1205,macchine d'ufficio ,12,account.data_account_type_asset,other,TRUE +1206,1206,arredamento ,12,account.data_account_type_asset,other,TRUE +1207,1207,automezzi ,12,account.data_account_type_asset,other,TRUE +1208,1208,imballaggi durevoli ,12,account.data_account_type_asset,other,TRUE +1211,1211,fondo ammortamento fabbricati ,12,account.data_account_type_asset,other,TRUE +1212,1212,fondo ammortamento impianti e macchinari ,12,account.data_account_type_asset,other,TRUE +1214,1214,fondo ammortamento attrezzature commerciali ,12,account.data_account_type_asset,other,TRUE +1215,1215,fondo ammortamento macchine d'ufficio ,12,account.data_account_type_asset,other,TRUE +1216,1216,fondo ammortamento arredamento ,12,account.data_account_type_asset,other,TRUE +1217,1217,fondo ammortamento automezzi ,12,account.data_account_type_asset,other,TRUE +1218,1218,fondo ammortamento imballaggi durevoli ,12,account.data_account_type_asset,other,TRUE +1220,1220,fornitori immobilizzazioni c/acconti ,12,account.data_account_type_asset,other,TRUE +13,13,IMMOBILIZZAZIONI FINANZIARIE ,1,account.data_account_type_view,view,TRUE +1301,1301,mutui attivi ,13,account.data_account_type_asset,other,TRUE +14,14,RIMANENZE ,1,account.data_account_type_view,view,TRUE +1401,1401,materie di consumo ,14,account.data_account_type_asset,other,TRUE +1404,1404,merci ,14,account.data_account_type_asset,other,TRUE +1410,1410,fornitori c/acconti ,14,account.data_account_type_asset,other,TRUE +15,15,CREDITI COMMERCIALI ,1,account.data_account_type_view,view,TRUE +1501,1501,crediti v/clienti ,15,account.data_account_type_receivable,receivable,TRUE +1502,1502,crediti commerciali diversi ,15,account.data_account_type_asset,other,TRUE +1503,1503,clienti c/spese anticipate ,15,account.data_account_type_receivable,receivable,TRUE +1505,1505,cambiali attive ,15,account.data_account_type_asset,other,TRUE +1506,1506,cambiali allo sconto ,15,account.data_account_type_asset,other,TRUE +1507,1507,cambiali all'incasso ,15,account.data_account_type_asset,other,TRUE +1509,1509,fatture da emettere ,15,account.data_account_type_asset,other,TRUE +1510,1510,crediti insoluti ,15,account.data_account_type_asset,other,TRUE +1511,1511,cambiali insolute ,15,account.data_account_type_asset,other,TRUE +1531,1531,crediti da liquidare ,15,account.data_account_type_asset,other,TRUE +1540,1540,fondo svalutazione crediti ,15,account.data_account_type_asset,other,TRUE +1541,1541,fondo rischi su crediti ,15,account.data_account_type_asset,other,TRUE +16,16,CREDITI DIVERSI ,1,account.data_account_type_view,view,TRUE +1601,1601,IVA n/credito ,16,account.data_account_type_asset,other,TRUE +1602,1602,IVA c/acconto ,16,account.data_account_type_asset,other,TRUE +1605,1605,crediti per IVA ,16,account.data_account_type_asset,other,TRUE +1607,1607,imposte c/acconto ,16,account.data_account_type_asset,other,TRUE +1608,1608,crediti per imposte ,16,account.data_account_type_asset,other,TRUE +1609,1609,crediti per ritenute subite ,16,account.data_account_type_asset,other,TRUE +1610,1610,crediti per cauzioni ,16,account.data_account_type_asset,other,TRUE +1620,1620,personale c/acconti ,16,account.data_account_type_asset,other,TRUE +1630,1630,crediti v/istituti previdenziali ,16,account.data_account_type_asset,other,TRUE +1640,1640,debitori diversi ,16,account.data_account_type_receivable,receivable,TRUE +18,18,DISPONIBILITÀ LIQUIDE ,1,account.data_account_type_view,view,TRUE +1801,1801,banche c/c ,18,account.data_account_type_bank,liquidity,TRUE +1810,1810,c/c postali ,18,account.data_account_type_bank,liquidity,TRUE +1820,1820,denaro in cassa ,18,account.data_account_type_cash,liquidity,TRUE +1821,1821,assegni ,18,account.data_account_type_cash,liquidity,TRUE +1822,1822,valori bollati ,18,account.data_account_type_cash,liquidity,TRUE +19,19,RATEI E RISCONTI ATTIVI ,1,account.data_account_type_view,view,TRUE +1901,1901,ratei attivi ,19,account.data_account_type_asset,other,TRUE +1902,1902,risconti attivi ,19,account.data_account_type_asset,other,TRUE +2,2,PASSIVO ,0,account.data_account_type_view,view,TRUE +20,20,PATRIMONIO NETTO ,2,account.data_account_type_view,view,TRUE +2101,2101,patrimonio netto ,20,account.data_account_type_liability,other,TRUE +2102,2102,utile d'esercizio ,20,account.data_account_type_liability,other,TRUE +2103,2103,perdita d'esercizio ,20,account.data_account_type_liability,other,TRUE +2104,2104,prelevamenti extra gestione ,20,account.data_account_type_liability,other,TRUE +2105,2105,titolare c/ritenute subite ,20,account.data_account_type_liability,other,TRUE +22,22,FONDI PER RISCHI E ONERI ,2,account.data_account_type_view,view,TRUE +2201,2201,fondo per imposte ,22,account.data_account_type_liability,other,TRUE +2204,2204,fondo responsabilità civile ,22,account.data_account_type_liability,other,TRUE +2205,2205,fondo spese future ,22,account.data_account_type_liability,other,TRUE +2211,2211,fondo manutenzioni programmate ,22,account.data_account_type_liability,other,TRUE +23,23,TRATTAMENTO FINE RAPPORTO DI LAVORO ,2,account.data_account_type_view,view,TRUE +2301,2301,debiti per TFRL ,23,account.data_account_type_liability,other,TRUE +24,24,DEBITI FINANZIARI ,2,account.data_account_type_view,view,TRUE +2410,2410,mutui passivi ,24,account.data_account_type_liability,other,TRUE +2411,2411,banche c/sovvenzioni ,24,account.data_account_type_liability,other,TRUE +2420,2420,banche c/c passivi ,24,account.data_account_type_liability,other,TRUE +2421,2421,banche c/RIBA all'incasso ,24,account.data_account_type_liability,other,TRUE +2422,2422,banche c/cambiali all'incasso ,24,account.data_account_type_liability,other,TRUE +2423,2423,banche c/anticipi su fatture ,24,account.data_account_type_liability,other,TRUE +2440,2440,debiti v/altri finanziatori ,24,account.data_account_type_liability,other,TRUE +25,25,DEBITI COMMERCIALI ,2,account.data_account_type_view,view,TRUE +2501,2501,debiti v/fornitori ,25,account.data_account_type_payable,payable,TRUE +2503,2503,cambiali passive ,25,account.data_account_type_liability,other,TRUE +2520,2520,fatture da ricevere ,25,account.data_account_type_liability,other,TRUE +2521,2521,debiti da liquidare ,25,account.data_account_type_liability,other,TRUE +2530,2530,clienti c/acconti ,25,account.data_account_type_payable,payable,TRUE +26,26,DEBITI DIVERSI ,2,account.data_account_type_view,view,TRUE +2601,2601,IVA n/debito ,26,account.data_account_type_liability,other,TRUE +2602,2602,debiti per ritenute da versare ,26,account.data_account_type_payable,payable,TRUE +2605,2605,erario c/IVA ,26,account.data_account_type_payable,payable,TRUE +2606,2606,debiti per imposte ,26,account.data_account_type_liability,other,TRUE +2619,2619,debiti per cauzioni ,26,account.data_account_type_liability,other,TRUE +2620,2620,personale c/retribuzioni ,26,account.data_account_type_liability,other,TRUE +2621,2621,personale c/liquidazioni ,26,account.data_account_type_liability,other,TRUE +2622,2622,clienti c/cessione ,26,account.data_account_type_liability,other,TRUE +2630,2630,debiti v/istituti previdenziali ,26,account.data_account_type_liability,other,TRUE +2640,2640,creditori diversi ,26,account.data_account_type_payable,payable,TRUE +27,27,RATEI E RISCONTI PASSIVI ,2,account.data_account_type_view,view,TRUE +2701,2701,ratei passivi ,27,account.data_account_type_liability,other,TRUE +2702,2702,risconti passivi ,27,account.data_account_type_liability,other,TRUE +28,28,CONTI TRANSITORI E DIVERSI ,2,account.data_account_type_view,view,TRUE +2801,2801,bilancio di apertura ,28,account.data_account_type_liability,other,TRUE +2802,2802,bilancio di chiusura ,28,account.data_account_type_liability,other,TRUE +2810,2810,IVA c/liquidazioni ,28,account.data_account_type_liability,other,TRUE +2811,2811,istituti previdenziali ,28,account.data_account_type_liability,other,TRUE +2820,2820,banca ... c/c ,28,account.data_account_type_liability,other,TRUE +2821,2821,banca ... c/c ,28,account.data_account_type_liability,other,TRUE +2822,2822,banca ... c/c ,28,account.data_account_type_liability,other,TRUE +29,29,CONTI DEI SISTEMI SUPPLEMENTARI ,2,account.data_account_type_view,view,TRUE +2901,2901,beni di terzi ,29,account.data_account_type_liability,other,TRUE +2902,2902,depositanti beni ,29,account.data_account_type_liability,other,TRUE +2911,2911,merci da ricevere ,29,account.data_account_type_liability,other,TRUE +2912,2912,fornitori c/impegni ,29,account.data_account_type_liability,other,TRUE +2913,2913,impegni per beni in leasing ,29,account.data_account_type_liability,other,TRUE +2914,2914,creditori c/leasing ,29,account.data_account_type_liability,other,TRUE +2916,2916,clienti c/impegni ,29,account.data_account_type_liability,other,TRUE +2917,2917,merci da consegnare ,29,account.data_account_type_liability,other,TRUE +2921,2921,rischi per effetti scontati ,29,account.data_account_type_liability,other,TRUE +2922,2922,banche c/effetti scontati ,29,account.data_account_type_liability,other,TRUE +2926,2926,rischi per fideiussioni ,29,account.data_account_type_liability,other,TRUE +2927,2927,creditori per fideiussioni ,29,account.data_account_type_liability,other,TRUE +2931,2931,rischi per avalli ,29,account.data_account_type_liability,other,TRUE +2932,2932,creditori per avalli ,29,account.data_account_type_liability,other,TRUE +3,3,VALORE DELLA PRODUZIONE ,0,account.data_account_type_view,view,TRUE +31,31,VENDITE E PRESTAZIONI ,3,account.data_account_type_view,view,TRUE +3101,3101,merci c/vendite ,31,account.data_account_type_income,other,TRUE +3103,3103,rimborsi spese di vendita ,31,account.data_account_type_income,other,TRUE +3110,3110,resi su vendite ,31,account.data_account_type_income,other,TRUE +3111,3111,ribassi e abbuoni passivi ,31,account.data_account_type_income,other,TRUE +3112,3112,premi su vendite ,31,account.data_account_type_income,other,TRUE +32,32,RICAVI E PROVENTI DIVERSI ,3,account.data_account_type_view,view,TRUE +3201,3201,fitti attivi ,32,account.data_account_type_income,other,TRUE +3202,3202,proventi vari ,32,account.data_account_type_income,other,TRUE +3210,3210,arrotondamenti attivi ,32,account.data_account_type_income,other,TRUE +3220,3220,plusvalenze ordinarie diverse ,32,account.data_account_type_income,other,TRUE +3230,3230,sopravvenienze attive ordinarie diverse ,32,account.data_account_type_income,other,TRUE +3240,3240,insussistenze attive ordinarie diverse ,32,account.data_account_type_income,other,TRUE +4,4,COSTI DELLA PRODUZIONE ,0,account.data_account_type_view,view,TRUE +41,41,COSTO DEL VENDUTO ,4,account.data_account_type_view,view,TRUE +4101,4101,merci c/acquisti ,41,account.data_account_type_expense,other,TRUE +4102,4102,materie di consumo c/acquisti ,41,account.data_account_type_expense,other,TRUE +4105,4105,merci c/apporti ,41,account.data_account_type_expense,other,TRUE +4110,4110,resi su acquisti ,41,account.data_account_type_expense,other,TRUE +4111,4111,ribassi e abbuoni attivi ,41,account.data_account_type_expense,other,TRUE +4112,4112,premi su acquisti ,41,account.data_account_type_expense,other,TRUE +4121,4121,merci c/esistenze iniziali ,41,account.data_account_type_expense,other,TRUE +4122,4122,materie di consumo c/esistenze iniziali ,41,account.data_account_type_expense,other,TRUE +4131,4131,merci c/rimanenze finali ,41,account.data_account_type_expense,other,TRUE +4132,4132,materie di consumo c/rimanenze finali ,41,account.data_account_type_expense,other,TRUE +42,42,COSTI PER SERVIZI ,4,account.data_account_type_view,view,TRUE +4201,4201,costi di trasporto ,42,account.data_account_type_expense,other,TRUE +4202,4202,costi per energia ,42,account.data_account_type_expense,other,TRUE +4203,4203,costi di pubblicità ,42,account.data_account_type_expense,other,TRUE +4204,4204,costi di consulenze ,42,account.data_account_type_expense,other,TRUE +4205,4205,costi postali ,42,account.data_account_type_expense,other,TRUE +4206,4206,costi telefonici ,42,account.data_account_type_expense,other,TRUE +4207,4207,costi di assicurazione ,42,account.data_account_type_expense,other,TRUE +4208,4208,costi di vigilanza ,42,account.data_account_type_expense,other,TRUE +4209,4209,costi per i locali ,42,account.data_account_type_expense,other,TRUE +4210,4210,costi di esercizio automezzi ,42,account.data_account_type_expense,other,TRUE +4211,4211,costi di manutenzione e riparazione ,42,account.data_account_type_expense,other,TRUE +4212,4212,provvigioni passive ,42,account.data_account_type_expense,other,TRUE +4213,4213,spese di incasso ,42,account.data_account_type_expense,other,TRUE +43,43,COSTI PER GODIMENTO BENI DI TERZI ,4,account.data_account_type_view,view,TRUE +4301,4301,fitti passivi ,43,account.data_account_type_expense,other,TRUE +4302,4302,canoni di leasing ,43,account.data_account_type_expense,other,TRUE +44,44,COSTI PER IL PERSONALE ,4,account.data_account_type_view,view,TRUE +4401,4401,salari e stipendi ,44,account.data_account_type_expense,other,TRUE +4402,4402,oneri sociali ,44,account.data_account_type_expense,other,TRUE +4403,4403,TFRL ,44,account.data_account_type_expense,other,TRUE +4404,4404,altri costi per il personale ,44,account.data_account_type_expense,other,TRUE +45,45,AMMORTAMENTI IMMOBILIZZAZIONI IMMATERIALI ,4,account.data_account_type_view,view,TRUE +4501,4501,ammortamento costi di impianto ,45,account.data_account_type_expense,other,TRUE +4506,4506,ammortamento software ,45,account.data_account_type_expense,other,TRUE +4508,4508,ammortamento avviamento ,45,account.data_account_type_expense,other,TRUE +46,46,AMMORTAMENTI IMMOBILIZZAZIONI MATERIALI ,4,account.data_account_type_view,view,TRUE +4601,4601,ammortamento fabbricati ,46,account.data_account_type_expense,other,TRUE +4602,4602,ammortamento impianti e macchinari ,46,account.data_account_type_expense,other,TRUE +4604,4604,ammortamento attrezzature commerciali ,46,account.data_account_type_expense,other,TRUE +4605,4605,ammortamento macchine d'ufficio ,46,account.data_account_type_expense,other,TRUE +4606,4606,ammortamento arredamento ,46,account.data_account_type_expense,other,TRUE +4607,4607,ammortamento automezzi ,46,account.data_account_type_expense,other,TRUE +4608,4608,ammortamento imballaggi durevoli ,46,account.data_account_type_expense,other,TRUE +47,47,SVALUTAZIONI ,4,account.data_account_type_view,view,TRUE +4701,4701,svalutazioni immobilizzazioni immateriali ,47,account.data_account_type_expense,other,TRUE +4702,4702,svalutazioni immobilizzazioni materiali ,47,account.data_account_type_expense,other,TRUE +4706,4706,svalutazione crediti ,47,account.data_account_type_expense,other,TRUE +48,48,ACCANTONAMENTI ,4,account.data_account_type_view,view,TRUE +481,481,ACCANTONAMENTI PER RISCHI ,48,account.data_account_type_view,view,TRUE +4814,4814,accantonamento per responsabilità civile ,481,account.data_account_type_expense,other,TRUE +482,482,ALTRI ACCANTONAMENTI ,48,account.data_account_type_view,view,TRUE +4821,4821,accantonamento per spese future ,482,account.data_account_type_expense,other,TRUE +4823,4823,accantonamento per manutenzioni programmate ,482,account.data_account_type_expense,other,TRUE +49,49,ONERI DIVERSI ,4,account.data_account_type_view,view,TRUE +4901,4901,oneri fiscali diversi ,49,account.data_account_type_expense,other,TRUE +4903,4903,oneri vari ,49,account.data_account_type_expense,other,TRUE +4905,4905,perdite su crediti ,49,account.data_account_type_expense,other,TRUE +4910,4910,arrotondamenti passivi ,49,account.data_account_type_expense,other,TRUE +4920,4920,minusvalenze ordinarie diverse ,49,account.data_account_type_expense,other,TRUE +4930,4930,sopravvenienze passive ordinarie diverse ,49,account.data_account_type_expense,other,TRUE +4940,4940,insussistenze passive ordinarie diverse ,49,account.data_account_type_expense,other,TRUE +5,5,PROVENTI E ONERI FINANZIARI ,0,account.data_account_type_view,view,TRUE +51,51,PROVENTI FINANZIARI ,5,account.data_account_type_view,view,TRUE +5110,5110,interessi attivi v/clienti ,51,account.data_account_type_income,other,TRUE +5115,5115,interessi attivi bancari ,51,account.data_account_type_income,other,TRUE +5116,5116,interessi attivi postali ,51,account.data_account_type_income,other,TRUE +5140,5140,proventi finanziari diversi ,51,account.data_account_type_income,other,TRUE +52,52,ONERI FINANZIARI ,5,account.data_account_type_view,view,TRUE +5201,5201,interessi passivi v/fornitori ,52,account.data_account_type_expense,other,TRUE +5202,5202,interessi passivi bancari ,52,account.data_account_type_expense,other,TRUE +5203,5203,sconti passivi bancari ,52,account.data_account_type_expense,other,TRUE +5210,5210,interessi passivi su mutui ,52,account.data_account_type_expense,other,TRUE +5240,5240,oneri finanziari diversi ,52,account.data_account_type_expense,other,TRUE +7,7,PROVENTI E ONERI STRAORDINARI ,0,account.data_account_type_view,view,TRUE +71,71,PROVENTI STRAORDINARI ,7,account.data_account_type_view,view,TRUE +7101,7101,plusvalenze straordinarie ,71,account.data_account_type_income,other,TRUE +7102,7102,sopravvenienze attive straordinarie ,71,account.data_account_type_income,other,TRUE +7103,7103,insussistenze attive straordinarie ,71,account.data_account_type_income,other,TRUE +72,72,ONERI STRAORDINARI ,7,account.data_account_type_view,view,TRUE +7201,7201,minusvalenze straordinarie ,72,account.data_account_type_expense,other,TRUE +7202,7202,sopravvenienze passive straordinarie ,72,account.data_account_type_expense,other,TRUE +7203,7203,insussistenze passive straordinarie ,72,account.data_account_type_expense,other,TRUE +7204,7204,imposte esercizi precedenti ,72,account.data_account_type_expense,other,TRUE +8,8,IMPOSTE DELL'ESERCIZIO ,0,account.data_account_type_view,view,TRUE +8101,8101,imposte dell'esercizio ,8,account.data_account_type_expense,other,TRUE +9,9,CONTI DI RISULTATO ,0,account.data_account_type_view,view,TRUE +9101,9101,conto di risultato economico ,9,account.data_account_type_expense,other,TRUE +9102,9102,stato patrimoniale,9,account.data_account_type_expense,other,TRUE diff --git a/addons/l10n_it/data/account.account.type.csv b/addons/l10n_it/data/account.account.type.csv deleted file mode 100644 index 36eeebbbe89..00000000000 --- a/addons/l10n_it/data/account.account.type.csv +++ /dev/null @@ -1,11 +0,0 @@ -"id","code","name","close_method","report_type" -"account_type_receivable","receivable","Crediti","unreconciled","asset" -"account_type_payable","payable","Debiti","unreconciled","liability" -"account_type_view","view","Gerarchia","none", -"account_type_income","income","Entrate","none","income" -"account_type_expense","expense","Uscite","none","expense" -"account_type_tax","tax","Tasse","balance", -"account_type_cash","cash","Liquidità","balance","asset" -"account_type_asset","asset","Beni","balance","asset" -"account_type_bank","bank","Banca","balance","asset" -"account_type_p_l","p_l","Conto Economico","none", From e6b91f0a69600bcf5d8ad12be999a9d83a72eb55 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 8 Mar 2012 18:43:04 +0100 Subject: [PATCH 10/55] [FIX] correct XML generation to avoid bad surprise (as ampersand in application name) to break the code. bzr revid: valentin.lab@kalysto.org-20120308174304-3oqewchzlxw0fdre --- openerp/addons/base/res/res_users.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/openerp/addons/base/res/res_users.py b/openerp/addons/base/res/res_users.py index f148813ae05..2617efeb4a2 100644 --- a/openerp/addons/base/res/res_users.py +++ b/openerp/addons/base/res/res_users.py @@ -34,6 +34,9 @@ from service import security from tools.translate import _ import openerp import openerp.exceptions +from lxml import etree +from lxml.builder import E + _logger = logging.getLogger(__name__) @@ -743,29 +746,27 @@ class groups_view(osv.osv): # and introduces the reified group fields view = self.get_user_groups_view(cr, uid, context) if view: - xml = u""" - - -%s -%s - -""" + xml1, xml2 = [], [] - xml1.append('' % _('Applications')) + xml1.append(E.separator(string=_('Application'), colspan="4")) for app, kind, gs in self.get_groups_by_application(cr, uid, context): if kind == 'selection': # application name with a selection field field_name = name_selection_groups(map(int, gs)) - xml1.append('' % field_name) - xml1.append('') + xml1.append(E.field(name=field_name)) + xml1.append(E.newline()) else: # application separator with boolean fields app_name = app and app.name or _('Other') - xml2.append('' % app_name) + xml2.append(E.separator(string=app_name, colspan="4")) for g in gs: field_name = name_boolean_group(g.id) - xml2.append('' % field_name) - view.write({'arch': xml % ('\n'.join(xml1), '\n'.join(xml2))}) + xml2.append(E.field(name=field_name)) + + xml = E.field(*(xml1 + xml2), name="groups_id", position="replace") + xml.addprevious(etree.Comment("GENERATED AUTOMATICALLY BY GROUPS")) + xml_content = etree.tostring(xml, pretty_print=True, xml_declaration=True, encoding="utf-8") + view.write({'arch': xml_content}) return True def get_user_groups_view(self, cr, uid, context=None): From 289e318773e72c6916005ba027fcd6676c3352fd Mon Sep 17 00:00:00 2001 From: "Anup (SerpentCS)" Date: Tue, 13 Mar 2012 11:24:24 +0530 Subject: [PATCH 11/55] [IMP] base : Added Symbol of INR bzr revid: anup.chavda@serpentcs.com-20120313055424-jss671oiu8eeosra --- openerp/addons/base/base_data.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/addons/base/base_data.xml b/openerp/addons/base/base_data.xml index 2503adc5525..a0e66de8dba 100644 --- a/openerp/addons/base/base_data.xml +++ b/openerp/addons/base/base_data.xml @@ -1373,7 +1373,7 @@ INR - Rs + ₹ 0.01 4 From 7f4a195cb66bb50a8f3e374ed19499d481b75aca Mon Sep 17 00:00:00 2001 From: "Jagdish Panchal (Open ERP)" Date: Tue, 13 Mar 2012 18:44:43 +0530 Subject: [PATCH 12/55] [IMP] crm,sale,sale_order_dates: add group_no_one on field(create_date,write_date etc..) bzr revid: jap@tinyerp.com-20120313131443-05imo5hx69b6cjqp --- addons/crm/crm_lead_view.xml | 12 ++++++------ addons/sale/sale_view.xml | 4 ++-- addons/sale_order_dates/sale_order_dates_view.xml | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 44d83f47634..8204fb76fbf 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -178,10 +178,10 @@ - - - - + + + + @@ -190,8 +190,8 @@ - - + + diff --git a/addons/sale/sale_view.xml b/addons/sale/sale_view.xml index 90d3838f5a0..7a47f82d1cf 100644 --- a/addons/sale/sale_view.xml +++ b/addons/sale/sale_view.xml @@ -237,8 +237,8 @@ - - + + diff --git a/addons/sale_order_dates/sale_order_dates_view.xml b/addons/sale_order_dates/sale_order_dates_view.xml index c6544d5238f..9ccd935cae7 100644 --- a/addons/sale_order_dates/sale_order_dates_view.xml +++ b/addons/sale_order_dates/sale_order_dates_view.xml @@ -9,11 +9,11 @@ - + - - + + From d226aef16737a68d4e6d5f96e29df7a9602efec2 Mon Sep 17 00:00:00 2001 From: "Jagdish Panchal (Open ERP)" Date: Tue, 13 Mar 2012 18:55:48 +0530 Subject: [PATCH 13/55] [IMP] crm_claim,crm_helpdesk: add group_no_one on field create_date, date_closed and write_date in crm_claim_view.xml, crm_helpdesk_view.xml bzr revid: jap@tinyerp.com-20120313132548-pgdf15gnm35id4xw --- addons/crm_claim/crm_claim_view.xml | 6 +++--- addons/crm_helpdesk/crm_helpdesk_view.xml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml index 6bb7e089baa..ba5c91421ac 100644 --- a/addons/crm_claim/crm_claim_view.xml +++ b/addons/crm_claim/crm_claim_view.xml @@ -132,9 +132,9 @@ - - - + + + diff --git a/addons/crm_helpdesk/crm_helpdesk_view.xml b/addons/crm_helpdesk/crm_helpdesk_view.xml index 3d48a3b88ac..68328c6f319 100644 --- a/addons/crm_helpdesk/crm_helpdesk_view.xml +++ b/addons/crm_helpdesk/crm_helpdesk_view.xml @@ -118,9 +118,9 @@ - - - + + + From 3683fcafcadbda2b7434db27fab5e7852588128c Mon Sep 17 00:00:00 2001 From: "Jagdish Panchal (Open ERP)" Date: Tue, 13 Mar 2012 19:00:37 +0530 Subject: [PATCH 14/55] [IMP] crm_fundraising: add group_no_one on field create_date date_closed duration in crm_fundraising_view.xml bzr revid: jap@tinyerp.com-20120313133037-0q8qcbrvoj2hd0fn --- addons/crm_fundraising/crm_fundraising_view.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/crm_fundraising/crm_fundraising_view.xml b/addons/crm_fundraising/crm_fundraising_view.xml index cc58b793c17..79620bb7da4 100644 --- a/addons/crm_fundraising/crm_fundraising_view.xml +++ b/addons/crm_fundraising/crm_fundraising_view.xml @@ -164,9 +164,9 @@ - - - + + + From fad2b78740431ac2bcaf22556917afb755b04e62 Mon Sep 17 00:00:00 2001 From: "Jagdish Panchal (Open ERP)" Date: Wed, 14 Mar 2012 10:41:15 +0530 Subject: [PATCH 15/55] [IMP] wiki,document,crm_claim: apply group_no_one on field (create_date,write_date ...) bzr revid: jap@tinyerp.com-20120314051115-jlnpdup6fh9wymnf --- addons/crm_claim/crm_claim_view.xml | 4 ++-- addons/document/document_view.xml | 12 ++++++------ addons/wiki/wiki_view.xml | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/addons/crm_claim/crm_claim_view.xml b/addons/crm_claim/crm_claim_view.xml index ba5c91421ac..befca3fe3ab 100644 --- a/addons/crm_claim/crm_claim_view.xml +++ b/addons/crm_claim/crm_claim_view.xml @@ -49,7 +49,7 @@ - +