diff --git a/addons/l10n_fr/__openerp__.py b/addons/l10n_fr/__openerp__.py index faaa963d4f1..95e35794516 100644 --- a/addons/l10n_fr/__openerp__.py +++ b/addons/l10n_fr/__openerp__.py @@ -36,8 +36,7 @@ Credits: Sistheo Zeekom CrysaLEAD """, "depends" : ['base', 'account', 'account_chart', 'account_report', 'base_vat'], - "init_xml" : [ - ], + "init_xml" : [], "update_xml" : [ "report.xml", "pcg.xml", diff --git a/addons/l10n_fr/l10n_fr.py b/addons/l10n_fr/l10n_fr.py index 3b514ba416d..e34b66a9162 100644 --- a/addons/l10n_fr/l10n_fr.py +++ b/addons/l10n_fr/l10n_fr.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (). # @@ -15,7 +15,7 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## @@ -35,8 +35,8 @@ class l10n_fr_report(osv.osv): 'line_ids': fields.one2many('l10n.fr.line', 'report_id', 'Lines'), } _sql_constraints = [ - ('code_uniq', 'unique (code)','The code report must be unique !') - ] + ('code_uniq', 'unique (code)','The code report must be unique !') + ] l10n_fr_report() class l10n_fr_line(osv.osv): @@ -49,7 +49,7 @@ class l10n_fr_line(osv.osv): 'report_id': fields.many2one('l10n.fr.report', 'Report'), } _sql_constraints = [ - ('code_uniq', 'unique (code)', 'The variable name must be unique !') + ('code_uniq', 'unique (code)', 'The variable name must be unique !') ] l10n_fr_line() diff --git a/addons/l10n_fr/l10n_fr_pcg_view.xml b/addons/l10n_fr/l10n_fr_pcg_view.xml index ae8c823c474..b89596e6dc8 100644 --- a/addons/l10n_fr/l10n_fr_pcg_view.xml +++ b/addons/l10n_fr/l10n_fr_pcg_view.xml @@ -1,8 +1,5 @@  - - - diff --git a/addons/l10n_fr/pcg.xml b/addons/l10n_fr/pcg.xml index 77fae821f3c..dc17a39abd8 100644 --- a/addons/l10n_fr/pcg.xml +++ b/addons/l10n_fr/pcg.xml @@ -14,7 +14,6 @@ Dettes long terme dettes - balance @@ -35,7 +34,6 @@ Cloture cloture - balance @@ -76,7 +74,6 @@ Tax tax - unreconciled @@ -104,14 +101,12 @@ Provisions provision - balance Engagements commitment - balance @@ -125,7 +120,6 @@ Comptes spéciaux special - none @@ -9255,49 +9249,5 @@ - - diff --git a/addons/l10n_fr/report.xml b/addons/l10n_fr/report.xml index ba91389ea1b..eb7792a542f 100644 --- a/addons/l10n_fr/report.xml +++ b/addons/l10n_fr/report.xml @@ -504,9 +504,6 @@ Capitaux propres : Résultat de l'exercice - {'load':['-:7:S','-:6:S'], 'except':[]} bpvar10 diff --git a/addons/l10n_fr/report/base_report.py b/addons/l10n_fr/report/base_report.py index 03ebce690fd..e1c8eb943e5 100644 --- a/addons/l10n_fr/report/base_report.py +++ b/addons/l10n_fr/report/base_report.py @@ -32,7 +32,7 @@ from report import report_sxw class base_report(report_sxw.rml_parse): def __init__(self, cr, uid, name, context): super(base_report, self).__init__(cr, uid, name, context=context) - self.localcontext.update( { + self.localcontext.update({ 'time': time, '_load': self._load, '_get_variable': self._get_variable, @@ -62,7 +62,6 @@ class base_report(report_sxw.rml_parse): return self.localcontext[variable] def _load_accounts(self,form,code,definition,fiscalyear,period_query_cond): - #self.context.copy() accounts={} for x in definition['load']: p=x.split(":") diff --git a/addons/l10n_in/account_chart.xml b/addons/l10n_in/account_chart.xml index 5bdc5df3c50..66b5454c73a 100644 --- a/addons/l10n_in/account_chart.xml +++ b/addons/l10n_in/account_chart.xml @@ -1,7 +1,7 @@ - - + Indian Chart of Account 0 view - + - + @@ -76,131 +76,119 @@ IA_AC0 view - + - + - + Assets IA_AC01 view - + - + - + Current Assets IA_AC011 view - + - + - + Bank Account IA_AC0111 receivable - + - + - + Cash In Hand Account IA_AC0112 view - + - + - + Cash Account IA_AC01121 receivable - + - + - + Deposit Account IA_AC0113 receivable - + - + - + Loan & Advance(Assets) Account IA_AC0114 receivable - + - + - - - - - - - - - - Total Sundry Debtors Account IA_AC0116 view - + - + - Sundry Debtors Account IA_AC01161 receivable - + - + - + Fixed Assets IA_AC012 receivable - + - + @@ -209,9 +197,9 @@ IA_AC013 receivable - + - + @@ -220,54 +208,54 @@ IA_AC014 receivable - + - + - - + + Liabilities IA_AC02 view - + - + - + Current Liabilities IA_AC021 view - + - + - + Duties & Taxes IA_AC0211 payable - + - + - + Provision IA_AC0212 payable - + - + @@ -276,20 +264,20 @@ IA_AC0213 view - + - + - + Sundry Creditors IA_AC02131 payable - + - + @@ -298,154 +286,154 @@ IA_AC022 payable - + - + - + Share Holder/Owner Fund IA_AC023 view - + - + - - + + Capital Account IA_AC0231 payable - + - + - + Reserve and Surplus Account IA_AC0232 payable - + - + - + Loan(Liability) Account IA_AC024 view - + - + - + Bank OD Account IA_AC0241 payable - + - + - + Secured Loan Account IA_AC0242 payable - + - + - + Unsecured Loan Account IA_AC0243 payable - + - + - + Suspense Account IA_AC025 payable - + - + - + Profit And Loss Account IA_AC1 view - + - + - + Expense IA_AC11 view - + - + - + Direct Expenses IA_AC111 other - + - + - + Indirect Expenses IA_AC112 other - + - + - + Purchase IA_AC113 other - + - + @@ -453,54 +441,54 @@ IA_AC114 other - + - + - + Income IA_AC12 view - + - + - + Direct Incomes IA_AC121 other - + - + - + Indirect Incomes IA_AC122 other - + - + - + Sales Account IA_AC123 other - + - + @@ -508,52 +496,52 @@ IA_AC124 other - + - + - - + + Tax - + Tax Balance to Pay - + Tax Due (Tax to pay) - + Tax Payable - + Tax Bases - - + + Base of Taxed Sales - - + + Base of Taxed Purchases - - - + + + Opening Journal OPJ @@ -562,14 +550,14 @@ - + OPJ Opening Journal situation - - + + India - Chart of Accounts @@ -581,7 +569,7 @@ - + diff --git a/addons/l10n_lu/l10n_lu_data.xml b/addons/l10n_lu/l10n_lu_data.xml index 3f65923d3e6..fa7433d1397 100644 --- a/addons/l10n_lu/l10n_lu_data.xml +++ b/addons/l10n_lu/l10n_lu_data.xml @@ -24,7 +24,6 @@ Créances creances - balance @@ -57,7 +56,7 @@ 0 Plan KLUWER - view + view @@ -65,7 +64,7 @@ 1 Fonds propres, prov. & dettes + d'1an - + view @@ -73,7 +72,7 @@ 2 Immobilis., dettes & créances à + d'1 an - + view @@ -81,7 +80,7 @@ 3 Stocks et commandes en cours d'exécution - + view @@ -89,7 +88,7 @@ 4 Créances et dettes à un an au plus - + view @@ -97,7 +96,7 @@ 5 Placements de trésorerie et disponible - + view @@ -105,7 +104,7 @@ 6 Charges - + view @@ -113,7 +112,7 @@ 7 Produits - + view @@ -121,7 +120,7 @@ 10 Capital - + view @@ -129,7 +128,7 @@ 12 Plus-values de réévaluation - + view @@ -137,7 +136,7 @@ 13 Réserves - + view @@ -145,7 +144,7 @@ 14 Résultat reporté - + view @@ -153,7 +152,7 @@ 15 Subsides en capital - + view @@ -161,7 +160,7 @@ 16 Provisions et impôts différés - + view @@ -169,7 +168,7 @@ 17 Dettes à plus d'un an - + view @@ -177,7 +176,7 @@ 20 Frais d'établissement - + view @@ -185,7 +184,7 @@ 21 Immobilisations incorporelles - + view @@ -193,7 +192,7 @@ 22 Terrains et constructions - + view @@ -201,7 +200,7 @@ 23 Installations, machines et outillages - + view @@ -209,7 +208,7 @@ 24 Mobilier et matériel roulant - + view @@ -217,7 +216,7 @@ 25 Immobilisation détenues en loc.-fin. - + view @@ -225,7 +224,7 @@ 27 Immobilis. corp. en cours & acptes versé - + view @@ -233,7 +232,7 @@ 28 Immobilisations financières - + view @@ -241,7 +240,7 @@ 30 Approvisionnements - matières premières - + view @@ -249,7 +248,7 @@ 31 Approvisionnements et fournitures - + view @@ -257,7 +256,7 @@ 32 En cours de fabrication - + view @@ -265,7 +264,7 @@ 33 Produits finis - + view @@ -273,7 +272,7 @@ 34 Marchandises - + view @@ -281,7 +280,7 @@ 36 Acomptes versés sur achats pour stocks - + view @@ -289,7 +288,7 @@ 40 Créances commerciales - + view @@ -297,7 +296,7 @@ 41 Autres créances à - d'un an - + view @@ -305,7 +304,7 @@ 42 Dettes à + d'1 an échéant dans l'année - + view @@ -313,7 +312,7 @@ 43 Dettes financières - + view @@ -321,7 +320,7 @@ 44 Dettes commerciales - + view @@ -329,7 +328,7 @@ 45 Dettes fiscales, salariales et sociales - + view @@ -337,7 +336,7 @@ 47 Dettes suite à l'affect. des résultats - + view @@ -345,7 +344,7 @@ 48 Dettes diverses - + view @@ -353,7 +352,7 @@ 49 Comptes de régularisation et cptes d'att - + view @@ -361,7 +360,7 @@ 51 Actions et parts - + view @@ -369,7 +368,7 @@ 52 Titres à revenu fixe - + view @@ -377,7 +376,7 @@ 53 Dépôts à terme - + view @@ -385,7 +384,7 @@ 55 Etablissements de crédit - + view @@ -393,7 +392,7 @@ 56 Ccp - + view @@ -401,7 +400,7 @@ 57 Caisses - + view @@ -409,7 +408,7 @@ 60 Approvisionnements et marchandises - + view @@ -417,7 +416,7 @@ 61 Services et biens divers - + view @@ -425,7 +424,7 @@ 62 Rémunérations, charges soc. et pensions - + view @@ -433,7 +432,7 @@ 64 Autres charges d'exploitation - + view @@ -441,7 +440,7 @@ 65 Charges financières - + view @@ -449,7 +448,7 @@ 66 Charges exceptionnelles - + view @@ -457,7 +456,7 @@ 67 Impôts sur le résultat - + view @@ -465,7 +464,7 @@ 70 Chiffre d'affaires - + view @@ -473,7 +472,7 @@ 71 Variation des stocks & comm. en cours - + view @@ -481,7 +480,7 @@ 74 Autres produits d'exploitation - + view @@ -489,7 +488,7 @@ 75 Produits financiers - + view @@ -497,7 +496,7 @@ 77 Régul. d'impôts & reprises prov. fisc. - + view @@ -505,7 +504,7 @@ 140 Bénéfice reporté - + view @@ -513,7 +512,7 @@ 175 Dettes commerciales - + view @@ -521,7 +520,7 @@ 200 Frais de constitution et d'augm. capital - + view @@ -529,7 +528,7 @@ 201 Frais d'augmentation de capital - + view @@ -537,7 +536,7 @@ 202 Fr.d'emission d'empr,prime remboursement - + view @@ -545,7 +544,7 @@ 203 Autres frais d'établissement - + view @@ -553,7 +552,7 @@ 204 Frais de restructuration - + view @@ -561,7 +560,7 @@ 210 Frais de recherche et de développement - + view @@ -569,7 +568,7 @@ 211 Concessions, brevets et licences - + view @@ -577,7 +576,7 @@ 212 Fonds de commerce - + view @@ -585,7 +584,7 @@ 220 Terrains - + view @@ -593,7 +592,7 @@ 221 Constructions - + view @@ -601,7 +600,7 @@ 222 Terrains bâtis - + view @@ -609,7 +608,7 @@ 223 Autres droits réels sur des immeubles - + view @@ -617,7 +616,7 @@ 230 Installations - + view @@ -625,7 +624,7 @@ 231 Machines - + view @@ -633,7 +632,7 @@ 240 Installation gen, agencements,.. - + view @@ -641,7 +640,7 @@ 241 Mobilier - + view @@ -649,7 +648,7 @@ 242 Matériel roulant - + view @@ -657,7 +656,7 @@ 280 Participation dans des entreprises liées - + view @@ -665,7 +664,7 @@ 281 Créances sur des entreprises liées - + view @@ -673,7 +672,7 @@ 282 Participations entr. avec lien particip. - + view @@ -681,7 +680,7 @@ 283 Créances / entrepr. avec lien particip. - + view @@ -689,7 +688,7 @@ 290 Créances commerciales - + view @@ -697,7 +696,7 @@ 291 Autres créances - + view @@ -705,7 +704,7 @@ 411 T.v.a en amont - + view @@ -713,7 +712,7 @@ 425 Dettes commerciales échéant ds l'année - + view @@ -721,7 +720,7 @@ 451 T.v.a. en aval - + view @@ -729,7 +728,7 @@ 452 Impôts et taxes à payer - + view @@ -737,7 +736,7 @@ 512 Actions & parts - options acquises - + view @@ -745,7 +744,7 @@ 550 Comptes courants bancaires - + view @@ -753,7 +752,7 @@ 609 Variation des stocks - + view @@ -761,7 +760,7 @@ 610 Loyers et charges locatives - + view @@ -769,7 +768,7 @@ 612 Fournitures faites à l'entreprise - + view @@ -777,7 +776,7 @@ 613 Rétributions de tiers - + view @@ -785,7 +784,7 @@ 615 publicités - + view @@ -793,7 +792,7 @@ 620 Rémunérations et avantages soc. directs - + view @@ -801,7 +800,7 @@ 621 Charges sociales - + view @@ -809,14 +808,14 @@ 624 Pensions - + 630 Dotations aux corrections de val./immob. - + view @@ -824,7 +823,7 @@ 631 Dotations aux correct. de val./stocks - + view @@ -832,7 +831,7 @@ 632 Dot. cor. val s/en-cours,pr fini - + view @@ -840,7 +839,7 @@ 633 Dotations correct. val./cr. comm. +1an - + view @@ -848,7 +847,7 @@ 634 Dotations correct. val./cr. comm. -1an - + view @@ -856,7 +855,7 @@ 635 Provisions pour pensions et oblig. sim. - + view @@ -864,7 +863,7 @@ 636 Provisions pour grosses réparations - + view @@ -872,7 +871,7 @@ 637 Provisions pour autres risques & charges - + view @@ -880,7 +879,7 @@ 640 Taxes et impôts directs - + view @@ -888,7 +887,7 @@ 651 Réductions de valeur / actifs circulants - + view @@ -896,7 +895,7 @@ 660 Dotations aux corrections de val. except - + view @@ -904,7 +903,7 @@ 661 Dotations aux corrections de val./financ - + view @@ -912,7 +911,7 @@ 662 Provisions pour risques & charges except - + view @@ -920,7 +919,7 @@ 750 Produits des immob. financières - + view @@ -928,7 +927,7 @@ 751 Produits des actifs circulants - + view @@ -936,7 +935,7 @@ 1750 Fournisseurs - dettes en compte - + view @@ -944,7 +943,7 @@ 1751 Effets à payer - + view @@ -952,7 +951,7 @@ 6120 Eau, gaz, électricité, carburants - + view @@ -960,7 +959,7 @@ 6123 Téléphone, télégrammes, frais post. - + view @@ -968,7 +967,7 @@ 100000 Capital souscrit - + other @@ -976,7 +975,7 @@ 101000 Capital non appelé (-) - + other @@ -984,7 +983,7 @@ 109000 Compte de l'exploitant - + other @@ -992,7 +991,7 @@ 110000 Primes d'émission - + other @@ -1000,7 +999,7 @@ 120000 Plus-values de rééval. sur immob. incorp - + other @@ -1008,7 +1007,7 @@ 121000 Plus-values de rééval. sur immob. corp. - + other @@ -1016,7 +1015,7 @@ 122000 Plus-values de rééval. sur immob. fin. - + other @@ -1024,7 +1023,7 @@ 123000 Plus-values de réévaluation sur stocks - + other @@ -1032,7 +1031,7 @@ 124000 Reprises de réd. de val./plac. de très. - + other @@ -1040,7 +1039,7 @@ 130000 Réserve légale - + other @@ -1048,7 +1047,7 @@ 131000 Réserves indisponibles - + other @@ -1056,7 +1055,7 @@ 132000 Réserves immunisées - + other @@ -1064,7 +1063,7 @@ 133000 Réserves disponibles - + other @@ -1072,7 +1071,7 @@ 134000 Autres reserves - + other @@ -1080,7 +1079,7 @@ 140000 Résultats reportés - + other @@ -1088,7 +1087,7 @@ 140100 Bénéfice de l'exercice - + other @@ -1096,7 +1095,7 @@ 140200 Perte de l'exercice - + other @@ -1104,7 +1103,7 @@ 141000 Perte reportée - + other @@ -1112,7 +1111,7 @@ 150000 Subsides en cap. - montants obtenus - + other @@ -1120,7 +1119,7 @@ 151000 Subsides-montants transf. aux résultats - + other @@ -1128,7 +1127,7 @@ 160000 Provisions pour pensions - + other @@ -1136,7 +1135,7 @@ 161000 Provisions pour charges fiscales - + other @@ -1144,7 +1143,7 @@ 162000 Provisions pr grosses rép. & gros entr. - + other @@ -1152,7 +1151,7 @@ 163000 Provisions pour rente viagère - + other @@ -1160,7 +1159,7 @@ 164000 Provisions pr sûretés pers. et réelles - + other @@ -1168,7 +1167,7 @@ 165000 Provisions diverses - + other @@ -1176,7 +1175,7 @@ 165400 Provisions pour autres risques & charges - + other @@ -1184,7 +1183,7 @@ 166000 Provisions pour charges de commandes - + other @@ -1192,7 +1191,7 @@ 168000 Impôts différés - + other @@ -1200,7 +1199,7 @@ 169000 Autres provisions - + other @@ -1208,7 +1207,7 @@ 170000 Emprunts convertibles - + other @@ -1216,7 +1215,7 @@ 171000 Emprunts obligataires non convertibles - + other @@ -1224,7 +1223,7 @@ 172000 Dettes de loc. - financ. et assimilées - + other @@ -1232,7 +1231,7 @@ 173000 Etablissements de crédit - + other @@ -1240,7 +1239,7 @@ 174000 Autres emprunts - + other @@ -1248,7 +1247,7 @@ 175000 Fournisseurs - entreprises apparentées - + other @@ -1256,7 +1255,7 @@ 175010 Dettes en cpte - fourniss. ordinaires - + other @@ -1264,7 +1263,7 @@ 175100 Effets à payer - entreprises apparentées - + other @@ -1272,7 +1271,7 @@ 175110 Effets à payer - fournisseurs ordinaires - + other @@ -1280,7 +1279,7 @@ 176000 Acomptes reçus sur commandes - + other @@ -1288,7 +1287,7 @@ 177100 Entreprises liées - + other @@ -1296,7 +1295,7 @@ 177200 Lien de participation - + other @@ -1304,7 +1303,7 @@ 178000 Cautionnements reçus en numéraire - + other @@ -1312,7 +1311,7 @@ 179000 Dettes diverses - + other @@ -1320,7 +1319,7 @@ 180000 Comptes de liaison établiss. & succurs. - + other @@ -1328,7 +1327,7 @@ 200000 Frais de constitution - + other @@ -1336,7 +1335,7 @@ 200900 Amort s/fr de constitution - + other @@ -1344,7 +1343,7 @@ 201000 Frais d'augmentation de capital - + other @@ -1352,7 +1351,7 @@ 201900 Amort s/fr d'augmentation du capital - + other @@ -1360,7 +1359,7 @@ 202000 Fr.d'emission d'empr,prime remboursement - + other @@ -1368,7 +1367,7 @@ 202900 Amort s/fr d'émission d'emprunts - + other @@ -1376,7 +1375,7 @@ 203000 Autres frais d'établissement - + other @@ -1384,7 +1383,7 @@ 203900 Amort s/autres fr d'établissement - + other @@ -1392,7 +1391,7 @@ 204000 Frais de restructuration - + other @@ -1400,7 +1399,7 @@ 204900 Amort s/fr de restructuration - + other @@ -1408,7 +1407,7 @@ 210000 Frais de recherche et développement - + other @@ -1416,7 +1415,7 @@ 210900 Amort. s/fr de recherche et développemen - + other @@ -1424,7 +1423,7 @@ 211100 Concessions, brevet à titre onéreux - + other @@ -1432,7 +1431,7 @@ 211190 Amort. s/concession, brevet acquis - + other @@ -1440,7 +1439,7 @@ 211200 Conc., brevets créés par l'entr. même - + other @@ -1448,7 +1447,7 @@ 211290 Amort. s/concession, brevets créés - + other @@ -1456,7 +1455,7 @@ 212000 Fonds de commerce - + other @@ -1464,7 +1463,7 @@ 212900 Amort s/fonds de commerce - + other @@ -1472,7 +1471,7 @@ 213000 Acomptes versés s/immob. incorp - + other @@ -1480,7 +1479,7 @@ 214000 Surprix afférent à l'acquisit. d'1 part. - + other @@ -1488,7 +1487,7 @@ 220000 Terrains - + other @@ -1496,7 +1495,7 @@ 220800 Plus-values actées sur terrains - + other @@ -1504,7 +1503,7 @@ 220900 Réduction de valeur sur terrains - + other @@ -1512,7 +1511,7 @@ 221800 Plus-values actées sur constructions - + other @@ -1520,7 +1519,7 @@ 221900 Amort. sur constructions - + other @@ -1528,7 +1527,7 @@ 222800 Plus-values actées s/terrains bâtis - + other @@ -1536,7 +1535,7 @@ 222900 Amort. sur terrains bâtis - + other @@ -1544,7 +1543,7 @@ 223800 +values actées s/autres droits - + other @@ -1552,7 +1551,7 @@ 223900 Amort s/autres droits réels - + other @@ -1560,7 +1559,7 @@ 230000 Installations techniques - + other @@ -1568,7 +1567,7 @@ 230900 Amort s/installations techniques - + other @@ -1576,7 +1575,7 @@ 231000 Machines - + other @@ -1584,7 +1583,7 @@ 231900 Amortissement s/machines - + other @@ -1592,7 +1591,7 @@ 232000 Outillage - + other @@ -1600,7 +1599,7 @@ 233000 Pièces de rechange - + other @@ -1608,7 +1607,7 @@ 238000 Plus-values actées sur i./m./o. - + other @@ -1616,7 +1615,7 @@ 239000 Amortissements sur i./m./o. - + other @@ -1624,7 +1623,7 @@ 240000 Installation gen, agencements,.. - + other @@ -1632,7 +1631,7 @@ 240900 Amort s/autres installations,outillage - + other @@ -1640,7 +1639,7 @@ 241000 Mobilier - + other @@ -1648,7 +1647,7 @@ 241900 Amort. sur mobilier - + other @@ -1656,7 +1655,7 @@ 242000 Matériel roulant - + other @@ -1664,7 +1663,7 @@ 242900 Amort. s/matériel roulant - + other @@ -1672,7 +1671,7 @@ 243000 Matériel de bureau - + other @@ -1680,7 +1679,7 @@ 243900 Amort. s/matériel de bureau - + other @@ -1688,7 +1687,7 @@ 250000 Terrains et constructions en loc.-fin. - + other @@ -1696,7 +1695,7 @@ 251000 Install., machines & out. en loc.-fin. - + other @@ -1704,7 +1703,7 @@ 252000 Mobilier et mat. roulant en loc.-fin. - + other @@ -1712,7 +1711,7 @@ 260000 Autres immobilisations corporelles - + other @@ -1720,7 +1719,7 @@ 270000 Immobilisations en cours - + other @@ -1728,7 +1727,7 @@ 271000 Avances & acptes versés / immob.en cours - + other @@ -1736,7 +1735,7 @@ 280000 Parts dans des entreprises liées - + other @@ -1744,7 +1743,7 @@ 280100 Montants non appelés - + other @@ -1752,7 +1751,7 @@ 280800 +values actées s/parts entreprises liées - + other @@ -1760,7 +1759,7 @@ 280900 Réduction de valeur s/parts - + other @@ -1768,7 +1767,7 @@ 281000 Créances s/des entreprises liées - + other @@ -1776,7 +1775,7 @@ 281100 Effets à recevoir - + other @@ -1784,7 +1783,7 @@ 281700 Créances douteuses (entreprises liées) - + other @@ -1792,7 +1791,7 @@ 281900 Réduction de valeur s/cré. entre. liées - + other @@ -1800,7 +1799,7 @@ 282000 Participations - + other @@ -1808,7 +1807,7 @@ 282100 Montants non appelés - + other @@ -1816,7 +1815,7 @@ 282800 +values actées s/participations - + other @@ -1824,7 +1823,7 @@ 282900 Réduction de valeur s/participations - + other @@ -1832,7 +1831,7 @@ 283000 Créances s/entrepr. lien de particip. - + other @@ -1840,7 +1839,7 @@ 283100 Effets à recevoir - + other @@ -1848,7 +1847,7 @@ 283200 Titres à revenu fixe - + other @@ -1856,7 +1855,7 @@ 283700 Créances douteuses (s/participations) - + other @@ -1864,7 +1863,7 @@ 283900 Réductions de valeur s/cr particip. - + other @@ -1872,7 +1871,7 @@ 284000 Titres à caractère d'immobilisation - + other @@ -1880,7 +1879,7 @@ 285000 Autres prêts - + other @@ -1888,7 +1887,7 @@ 286000 Actions ou parts propres - + other @@ -1896,7 +1895,7 @@ 288000 Cautionnements versés en numéraire - + other @@ -1904,7 +1903,7 @@ 290000 Créances commerciales - + other @@ -1912,7 +1911,7 @@ 290100 Effets à recevoir - + other @@ -1920,7 +1919,7 @@ 290600 Acomptes versés - + other @@ -1928,7 +1927,7 @@ 290700 Créances douteuses s/cr commerciales - + other @@ -1936,7 +1935,7 @@ 290900 Réduction de valeur s/cr commerciales - + other @@ -1944,7 +1943,7 @@ 291000 Autres créances - + other @@ -1952,7 +1951,7 @@ 291100 Effets à recevoir - + other @@ -1960,7 +1959,7 @@ 291700 Créances douteuses s/autres créances - + other @@ -1968,7 +1967,7 @@ 291900 Réduction de valeur s/autres créances - + other @@ -1976,7 +1975,7 @@ 300000 Stocks matières premières val. d'acquis. - + other @@ -1984,7 +1983,7 @@ 309000 Réduction de valeur s/mat. premières - + other @@ -1992,7 +1991,7 @@ 310000 Matières consommables - + other @@ -2000,7 +1999,7 @@ 310600 Emballages commerciaux - + other @@ -2008,7 +2007,7 @@ 319000 Réd. de val. - stocks fournitures (-) - + other @@ -2016,7 +2015,7 @@ 320000 En cours de fabrication - val. d'acquis. - + other @@ -2024,7 +2023,7 @@ 329000 Réductions de valeur / en cours (-) - + other @@ -2032,7 +2031,7 @@ 330000 Valeur d'acquisition des produits finis - + other @@ -2040,7 +2039,7 @@ 339000 Réduction de val. / produits finis (-) - + other @@ -2048,7 +2047,7 @@ 340000 Stocks marchandises - valeur d'acquis. - + other @@ -2056,7 +2055,7 @@ 349000 Réd. de val. / stocks marchandises (-) - + other @@ -2064,7 +2063,7 @@ 360000 Acomptes versés / achats pour stocks - + other @@ -2072,7 +2071,7 @@ 369000 Réd. de val. / acptes versés stocks (-) - + other @@ -2080,7 +2079,7 @@ 400000 Clients - + other @@ -2092,13 +2091,13 @@ receivable - + 403000 Créances s/entreprises apparentées - + receivable @@ -2106,7 +2105,7 @@ 404000 Produits à recevoir (factures à établir) - + other @@ -2114,7 +2113,7 @@ 406000 Acomptes versés aux fournisseurs - + payable @@ -2122,7 +2121,7 @@ 407000 Créances commerciales douteuses - + other @@ -2130,7 +2129,7 @@ 408000 Ecarts de conversion de devises/créances - + other @@ -2138,7 +2137,7 @@ 409000 Réductions de valeur / créances comm. - + other @@ -2146,7 +2145,7 @@ 410000 Capital appelé, non versé - + other @@ -2162,7 +2161,7 @@ 411100 T.v.a soumise à l'origine amont - + other @@ -2170,7 +2169,7 @@ 411500 Compte courant tva - + other @@ -2178,7 +2177,7 @@ 412000 Impots et vers. fiscaux à récupérer - + other @@ -2186,7 +2185,7 @@ 413100 Autres créances sur entrepr. liées - + other @@ -2194,7 +2193,7 @@ 413200 Autres créances / entrepr. apparentées - + other @@ -2202,7 +2201,7 @@ 414000 Produits à recevoir (non commerciaux) - + other @@ -2210,7 +2209,7 @@ 416000 Créances diverses - + other @@ -2218,7 +2217,7 @@ 417000 Créances douteuses - + other @@ -2226,7 +2225,7 @@ 418000 Cautionnements versés en numéraire - + other @@ -2234,7 +2233,7 @@ 419000 Réductions de val. / autres créances (-) - + other @@ -2242,7 +2241,7 @@ 420000 Emprunts obligataires convert. - + other @@ -2250,7 +2249,7 @@ 421000 Emprunts oblig. non convertibles - + other @@ -2258,7 +2257,7 @@ 422000 Dettes de location-financ. et assimilées - + other @@ -2266,7 +2265,7 @@ 423000 Etablissements de crédit - + other @@ -2274,7 +2273,7 @@ 424000 Autres emprunts - + other @@ -2282,7 +2281,7 @@ 425000 Fournisseurs - + other @@ -2290,7 +2289,7 @@ 425100 Effets à payer - + other @@ -2298,7 +2297,7 @@ 426000 Acomptes reçus / commandes éch. ds l'an - + other @@ -2306,7 +2305,7 @@ 427100 Entreprises liées - + other @@ -2314,7 +2313,7 @@ 427200 Lien de participation - + other @@ -2322,7 +2321,7 @@ 428000 Cautionnements reçus en numéraire - + other @@ -2330,7 +2329,7 @@ 429000 Dettes diverses échéant dans l'année - + other @@ -2338,7 +2337,7 @@ 430000 Banques-emprunts en compte à terme fixe - + other @@ -2346,7 +2345,7 @@ 431000 Banques-promesses - + other @@ -2354,7 +2353,7 @@ 432000 Banques-crédit d'acceptation - + other @@ -2362,7 +2361,7 @@ 433000 Banques-dettes en compte courant - + other @@ -2370,7 +2369,7 @@ 438000 Autres emprunts - + other @@ -2378,7 +2377,7 @@ 440000 Fournisseurs - + other @@ -2404,7 +2403,7 @@ 443100 Entreprises liées - + other @@ -2412,7 +2411,7 @@ 443200 Lien de participation - + other @@ -2420,7 +2419,7 @@ 450000 Dettes fiscales estimées - + other @@ -2455,7 +2454,7 @@ 451500 Compte courant tva - + other @@ -2463,7 +2462,7 @@ 452000 Impôts et taxes à payer à l'état - + other @@ -2471,7 +2470,7 @@ 452100 Impôts et taxes à payer aux adm commun - + other @@ -2479,7 +2478,7 @@ 453000 Retenues s/salaires - + other @@ -2487,7 +2486,7 @@ 454000 Cass (centre..de sécurite soc) - + other @@ -2495,7 +2494,7 @@ 455000 Personnel-rémuneration à payer - + other @@ -2503,7 +2502,7 @@ 456000 Personnel-avances et acomptes - + other @@ -2511,7 +2510,7 @@ 458000 Autres dettes sociales - + other @@ -2519,7 +2518,7 @@ 460000 Acomptes reçus sur commandes - + other @@ -2527,7 +2526,7 @@ 470000 Dividendes-tantièmes d'ex. ant. à payer - + other @@ -2535,7 +2534,7 @@ 471000 Dividendes de l'exercice à payer - + other @@ -2543,7 +2542,7 @@ 472000 Tantièmes de l'exercice à payer - + other @@ -2551,7 +2550,7 @@ 473000 Autres allocataires à payer - + other @@ -2559,7 +2558,7 @@ 480000 Obligations et coupons échus (dettes) - + other @@ -2567,7 +2566,7 @@ 487000 Cautionnements reçus en numeraire - + other @@ -2575,7 +2574,7 @@ 488000 Autres dettes diverses - + other @@ -2583,7 +2582,7 @@ 490000 Charges à reporter (payées d'avance) - + other @@ -2591,7 +2590,7 @@ 491000 Produits acquis - + other @@ -2599,7 +2598,7 @@ 492000 Charges à imputer - + other @@ -2607,7 +2606,7 @@ 493000 Produits à reporter - + other @@ -2615,7 +2614,7 @@ 499000 Comptes d'attente - + other @@ -2623,7 +2622,7 @@ 499800 Solde équilibre en devises (hors pc) - + other @@ -2631,7 +2630,7 @@ 500000 Actions propres - + other @@ -2639,7 +2638,7 @@ 510000 Actions et parts - + other @@ -2647,7 +2646,7 @@ 510100 Montant non appelé s/action.part - + other @@ -2655,7 +2654,7 @@ 510900 Réduction valeur s/action et parts - + other @@ -2663,7 +2662,7 @@ 512000 Parts dans entreprises liées - + other @@ -2671,7 +2670,7 @@ 512100 Montant non appelé s/parts - + other @@ -2679,7 +2678,7 @@ 512900 Réduction valeur s/part ent. liées - + other @@ -2687,7 +2686,7 @@ 520000 Titres à rev. fixes - valeur d'acquis. - + other @@ -2695,7 +2694,7 @@ 529000 Titres à rev. fixes - réd. de val. - + other @@ -2703,7 +2702,7 @@ 530000 Dépôts à terme - + other @@ -2711,7 +2710,7 @@ 539000 Réductions de valeur / dépôts à terme - + other @@ -2719,7 +2718,7 @@ 540000 Valeurs échues à l'encaissement - + other @@ -2727,7 +2726,7 @@ 541000 Coupons à encaisser - + other @@ -2735,7 +2734,7 @@ 550000 Ets de crédit-compte à vue - + other @@ -2743,7 +2742,7 @@ 550100 Chèques et virements émis - + other @@ -2751,7 +2750,7 @@ 550900 Réduction valeur s/cpte a vue - + other @@ -2759,7 +2758,7 @@ 560000 Ccp - compte courant - + other @@ -2767,7 +2766,7 @@ 561000 Ccp - chèques émis - + other @@ -2775,7 +2774,7 @@ 570000 Caisses - + other @@ -2783,7 +2782,7 @@ 570900 Réduction valeur s/caisse - + other @@ -2800,7 +2799,7 @@ 600000 Achats de matières premières - + other @@ -2808,7 +2807,7 @@ 601000 Achats de fournitures - + other @@ -2816,7 +2815,7 @@ 602000 Achats de services, travaux et études - + other @@ -2824,7 +2823,7 @@ 603000 Achats de sous-traitances générales - + other @@ -2832,7 +2831,7 @@ 604000 Achats de marchandises - + other @@ -2840,7 +2839,7 @@ 607000 Achats produits et demi-produits - + other @@ -2848,7 +2847,7 @@ 608000 Remises, ristournes et rabais sur achats - + other @@ -2856,7 +2855,7 @@ 609000 Variation de stock mat. premières - + other @@ -2864,7 +2863,7 @@ 609100 Variation stock mat. consommables - + other @@ -2872,7 +2871,7 @@ 609400 Variation stock marchandises - + other @@ -2880,7 +2879,7 @@ 610000 Loyers et charges locatives - + other @@ -2888,7 +2887,7 @@ 610100 Redevances de crédit bail - + other @@ -2896,7 +2895,7 @@ 611000 Entretiens et réparations des locaux - + other @@ -2904,7 +2903,7 @@ 612000 Consommation - eau - + other @@ -2912,7 +2911,7 @@ 612010 Consommation - gaz - + other @@ -2920,7 +2919,7 @@ 612020 Consommation - électricité - + other @@ -2928,7 +2927,7 @@ 612030 Consommation - carburants - + other @@ -2936,7 +2935,7 @@ 612040 Consommation - mazout - + other @@ -2944,7 +2943,7 @@ 612100 Documentation - + other @@ -2952,7 +2951,7 @@ 612200 Imprimés et fournitures de bureau - + other @@ -2960,7 +2959,7 @@ 612300 Téléphone - + other @@ -2968,7 +2967,7 @@ 612310 Frais postaux - + other @@ -2976,7 +2975,7 @@ 612320 Fax - + other @@ -2984,7 +2983,7 @@ 613000 Redevances et royalties - + other @@ -2992,7 +2991,7 @@ 613100 Honoraires - + other @@ -3000,7 +2999,7 @@ 613200 Organismes de services - + other @@ -3008,7 +3007,7 @@ 613300 Commissions - + other @@ -3016,7 +3015,7 @@ 614000 Assurance incendie - + other @@ -3024,7 +3023,7 @@ 615000 Annonces, publicité - + other @@ -3032,7 +3031,7 @@ 615100 Cotisations et abonnements - + other @@ -3040,7 +3039,7 @@ 615200 Dons et libéralités - + other @@ -3048,7 +3047,7 @@ 615300 Publications légales - + other @@ -3056,7 +3055,7 @@ 616000 Sous-traitants - + other @@ -3064,7 +3063,7 @@ 616100 Transports par tiers - + other @@ -3072,7 +3071,7 @@ 620000 Rémunératons administrat. ou gérants - + other @@ -3080,7 +3079,7 @@ 620100 Rémunérations personnel de direction - + other @@ -3088,7 +3087,7 @@ 620200 Rémunérations employés - + other @@ -3096,7 +3095,7 @@ 620300 Rémunérations ouvriers - + other @@ -3104,7 +3103,7 @@ 621000 Chg.soc.lég.administ.et gérant - + other @@ -3112,7 +3111,7 @@ 621100 Chg.soc.lég. personnel de direction - + other @@ -3120,7 +3119,7 @@ 621200 Chg.soc.lég. employés - + other @@ -3128,7 +3127,7 @@ 621300 Chg.soc.lég. ouvriers - + other @@ -3136,7 +3135,7 @@ 621400 Assurance accidents - + other @@ -3144,7 +3143,7 @@ 622000 Primes patr. pour ass. extra - légales - + other @@ -3152,7 +3151,7 @@ 623000 Autres frais de personnel - + other @@ -3160,7 +3159,7 @@ 624000 Pension administrat. ou gérant - + other @@ -3168,7 +3167,7 @@ 624100 Pension personnel - + other @@ -3176,7 +3175,7 @@ 630000 Dot. cor. val s/frais d'établissement - + other @@ -3184,7 +3183,7 @@ 630100 Dot. cor. val s/immob. incorporels - + other @@ -3192,7 +3191,7 @@ 630200 Dot. cor. val s/immob. corporels - + other @@ -3200,7 +3199,7 @@ 631000 Dot. cor. val s/stock mat.fourni - + other @@ -3208,7 +3207,7 @@ 631100 Reprises cor. val. s/stock mat. fourni - + other @@ -3216,7 +3215,7 @@ 632000 Dot. cor. val s/en-cours,pr fini - + other @@ -3224,7 +3223,7 @@ 632100 Reprises cor. val s/en-cours,pf - + other @@ -3232,7 +3231,7 @@ 633000 Dot. cor. val s/cr comm +1an - + other @@ -3240,7 +3239,7 @@ 633100 Reprises cor. val s/cr com +1an - + other @@ -3248,7 +3247,7 @@ 634000 Dot. cor. val. s/cr comm -1an - + other @@ -3256,7 +3255,7 @@ 634100 Reprises cor. val.s/cr com -1an - + other @@ -3264,7 +3263,7 @@ 635000 Dot. prov. pension et oblig. sim. - + other @@ -3272,7 +3271,7 @@ 635100 Reprises prov. s/pens.obli. sim. - + other @@ -3280,7 +3279,7 @@ 636000 Dot. prov-grosses réparation - + other @@ -3288,7 +3287,7 @@ 636100 Reprises prov. grosses réparation - + other @@ -3296,7 +3295,7 @@ 637000 Dot. prov-autres risques et chg - + other @@ -3304,7 +3303,7 @@ 637100 Reprises prov autres risq,chg - + other @@ -3312,7 +3311,7 @@ 640000 Taxe d'abonnement - + other @@ -3320,7 +3319,7 @@ 640100 Impôt foncier - + other @@ -3328,7 +3327,7 @@ 640200 Impôt commercial s/le capital - + other @@ -3336,7 +3335,7 @@ 640300 Impôt s/la fortune - + other @@ -3344,7 +3343,7 @@ 641000 Moins-val. sur réalis. d'immob. corp. - + other @@ -3352,7 +3351,7 @@ 642000 Moins-val. / réalis. de créances comm. - + other @@ -3360,7 +3359,7 @@ 643000 Charges d'exploitation diverses - + other @@ -3368,7 +3367,7 @@ 650000 Intérêts, commissions et frais / dettes - + other @@ -3376,7 +3375,7 @@ 651000 Dot. cor. val s/actif circ - + other @@ -3384,7 +3383,7 @@ 651100 Reprises cor. val s/actif circulants - + other @@ -3392,7 +3391,7 @@ 652000 Moins-values sur réalis. d'actifs circ. - + other @@ -3400,7 +3399,7 @@ 653000 Charges d'escompte de créances - + other @@ -3408,7 +3407,7 @@ 654000 Différences de change - + other @@ -3416,7 +3415,7 @@ 655000 Ecarts de conversion des devises - + other @@ -3424,7 +3423,7 @@ 656000 Frais de banque - + other @@ -3432,7 +3431,7 @@ 660000 Dot. cor. val exceptionnelles - + other @@ -3440,7 +3439,7 @@ 660100 Reprises cor. val. excep - + other @@ -3448,7 +3447,7 @@ 661000 Dot. cor. val s/immob. financières - + other @@ -3456,7 +3455,7 @@ 661100 Reprises cor val s/immob. fin. - + other @@ -3464,7 +3463,7 @@ 662000 Dot. prov-risques et chg except. - + other @@ -3472,7 +3471,7 @@ 662100 Reprises prov risq,chg except. - + other @@ -3480,7 +3479,7 @@ 663000 Moins-values sur réalis. d'actifs immob. - + other @@ -3488,7 +3487,7 @@ 665000 Différences de change exceptionnelles - + other @@ -3496,7 +3495,7 @@ 668000 Autres charges exceptionnelles - + other @@ -3504,7 +3503,7 @@ 670000 Impôts luxemb sur le résultat de l'ex. - + other @@ -3512,7 +3511,7 @@ 671000 Impôts luxemb /résultat d'ex. antérieurs - + other @@ -3520,7 +3519,7 @@ 672000 Impôts étrangers sur le résultat de l'ex - + other @@ -3528,7 +3527,7 @@ 673000 Impôts étrgs/résultat d'ex. antérieurs - + other @@ -3536,7 +3535,7 @@ 674000 Impôts sur résultats exceptionnels - + other @@ -3544,7 +3543,7 @@ 680000 Transfert aux réserves immunisées - + other @@ -3552,7 +3551,7 @@ 700000 Ventes et prestations de services - + payable @@ -3560,7 +3559,7 @@ 708000 R.r.r accordés sur ventes - + payable @@ -3568,7 +3567,7 @@ 712000 Variation de stocks des encours de fabr. - + payable @@ -3576,7 +3575,7 @@ 713000 Variation de stocks des produits finis - + payable @@ -3584,7 +3583,7 @@ 720000 Travaux effect. par entreprise elle-même - + payable @@ -3592,7 +3591,7 @@ 740000 Subsides d'exploitation - + payable @@ -3600,7 +3599,7 @@ 741000 Plus-values sur réal. d'immob. corp. - + payable @@ -3608,7 +3607,7 @@ 742000 Plus-values sur réalis. créances comm. - + payable @@ -3616,7 +3615,7 @@ 743000 Récupération de frais de personnel - + payable @@ -3624,7 +3623,7 @@ 744000 Commissions et courtages - + payable @@ -3632,7 +3631,7 @@ 745000 Redevances pour brevets et licences - + payable @@ -3640,7 +3639,7 @@ 746000 Loyers perçus - + payable @@ -3648,7 +3647,7 @@ 748000 Produits d'exploitation divers. - + payable @@ -3656,7 +3655,7 @@ 750000 Produits des participations - + payable @@ -3664,7 +3663,7 @@ 750100 Autres produits des immob. financières - + payable @@ -3672,7 +3671,7 @@ 751000 Produits des valeurs mobilières - + payable @@ -3680,7 +3679,7 @@ 751100 Autres produits des actifs circulants - + payable @@ -3688,7 +3687,7 @@ 752000 Plus-values sur réalis. d'actifs circula - + payable @@ -3696,7 +3695,7 @@ 753000 Subsides en capital et en intérêts - + payable @@ -3704,7 +3703,7 @@ 754000 Différences de change - + payable @@ -3712,7 +3711,7 @@ 754100 Amendes pour retards de paiement - + payable @@ -3720,7 +3719,7 @@ 754200 Intérêts retards de paiement - + payable @@ -3728,7 +3727,7 @@ 755000 Ecarts de conversion de devises - + payable @@ -3736,7 +3735,7 @@ 756000 Autres produits financiers - + payable @@ -3744,7 +3743,7 @@ 757000 Escomptes obtenus - + payable @@ -3752,7 +3751,7 @@ 763000 Plus-values sur réalis. d'actifs immob. - + payable @@ -3760,7 +3759,7 @@ 771000 Régularis. d'impôts luxemb sur résultat - + payable @@ -3768,7 +3767,7 @@ 773000 Régularis. d'impôts étrangers / résultat - + payable diff --git a/addons/l10n_lu/wizard/pdf_ext.py b/addons/l10n_lu/wizard/pdf_ext.py index 26ff61e209c..3b58fab5b68 100644 --- a/addons/l10n_lu/wizard/pdf_ext.py +++ b/addons/l10n_lu/wizard/pdf_ext.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (). # @@ -15,7 +15,7 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## @@ -64,7 +64,7 @@ def extract_keys(lines): keys = [] for line in lines: if line.startswith('/V'): - pass #print 'value',line + pass elif line.startswith('/T'): key = line[7:-2] key = ''.join(key.split('\x00')) @@ -85,7 +85,6 @@ def write_fields(out, fields): for key in fields: value = fields[key] write_field(out, key, value) -# write_field(out, key+"a", value) # pour copie-carbone sur autres pages out.write(TAIL) def extract_keys_from_pdf(filename): diff --git a/addons/lunch/__openerp__.py b/addons/lunch/__openerp__.py index 04be5fba2d0..ab540ad10d3 100644 --- a/addons/lunch/__openerp__.py +++ b/addons/lunch/__openerp__.py @@ -47,12 +47,9 @@ 'lunch_view.xml', 'lunch_report.xml', 'report/report_lunch_order_view.xml', - #'process/lunch_process.xml' ], - "demo_xml": ['lunch_demo.xml', - ], - "test": ['test/test_lunch.yml' - ], + "demo_xml": ['lunch_demo.xml'], + "test": ['test/test_lunch.yml'], "installable": True, } diff --git a/addons/lunch/lunch.py b/addons/lunch/lunch.py index 8dfce4acaff..f8ecc3241cb 100644 --- a/addons/lunch/lunch.py +++ b/addons/lunch/lunch.py @@ -52,7 +52,7 @@ class lunch_product(osv.osv): _defaults = { 'active': lambda *a : True, - } + } lunch_product() @@ -82,7 +82,7 @@ class lunch_cashbox(osv.osv): 'manager': fields.many2one('res.users', 'Manager'), 'name': fields.char('Name', size=30, required=True, unique = True), 'sum_remain': fields.function(amount_available, method=True, string='Remained Total'), - } + } lunch_cashbox() @@ -100,10 +100,10 @@ class lunch_cashmove(osv.osv): 'box': fields.many2one('lunch.cashbox', 'Box Name', size=30, required=True), 'active': fields.boolean('Active'), 'create_date': fields.datetime('Created date', readonly=True), - } + } _defaults = { - 'active': lambda *a: True, + 'active': lambda *a: True, } lunch_cashmove() @@ -215,7 +215,7 @@ class report_lunch_amount(osv.osv): 'user_id': fields.many2one('res.users', 'User Name', readonly=True), 'amount': fields.float('Amount', readonly=True, digits=(16, 2)), 'box': fields.many2one('lunch.cashbox', 'Box Name', size=30, readonly=True), - } + } def init(self, cr): diff --git a/addons/lunch/report/order.py b/addons/lunch/report/order.py index abb99ceb380..ff77e7fe6b8 100644 --- a/addons/lunch/report/order.py +++ b/addons/lunch/report/order.py @@ -1,6 +1,6 @@ # -*- encoding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (). # @@ -15,7 +15,7 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## @@ -36,8 +36,8 @@ class order(report_sxw.rml_parse): super(order, self).__init__(cr, uid, name, context) self.localcontext.update({ - 'time': time, - 'sum_price': self.sum_price, + 'time': time, + 'sum_price': self.sum_price, }) report_sxw.report_sxw('report.lunch.order', 'lunch.order', diff --git a/addons/lunch/report/report_lunch_order.py b/addons/lunch/report/report_lunch_order.py index 51fa3bf841b..1de0d10cec7 100644 --- a/addons/lunch/report/report_lunch_order.py +++ b/addons/lunch/report/report_lunch_order.py @@ -37,7 +37,7 @@ class report_lunch_order(osv.osv): 'user_id': fields.many2one('res.users', 'User Name'), 'box_name': fields.char('Name', size=30), 'price_total':fields.float('Total Price', readonly=True), - } + } _order = 'date desc' def init(self, cr): tools.drop_view_if_exists(cr, 'report_lunch_order') diff --git a/addons/lunch/wizard/lunch_cashbox_clean.py b/addons/lunch/wizard/lunch_cashbox_clean.py index 923629502ab..54ecaf24b6f 100644 --- a/addons/lunch/wizard/lunch_cashbox_clean.py +++ b/addons/lunch/wizard/lunch_cashbox_clean.py @@ -48,12 +48,13 @@ class lunch_cashbox_clean(osv.osv_memory): and box IN %s" , (tuple(data),)) for (user_id, box_id, amount) in res: - cashmove_ref.create(cr, uid, {'name': 'Summary for user' + str(user_id), - 'amount': amount, - 'user_cashmove': user_id, - 'box': box_id, - 'active': True, - }) + cashmove_ref.create(cr, uid, { + 'name': 'Summary for user' + str(user_id), + 'amount': amount, + 'user_cashmove': user_id, + 'box': box_id, + 'active': True, + }) return {} lunch_cashbox_clean() diff --git a/addons/lunch/wizard/lunch_order_confirm.py b/addons/lunch/wizard/lunch_order_confirm.py index 1a84e25febb..1827e7f5c91 100644 --- a/addons/lunch/wizard/lunch_order_confirm.py +++ b/addons/lunch/wizard/lunch_order_confirm.py @@ -29,8 +29,8 @@ class lunch_order_confirm(osv.osv_memory): _description = "confirm Order" _columns = { - 'confirm_cashbox':fields.many2one('lunch.cashbox', 'Name of box', required=True), - } + 'confirm_cashbox':fields.many2one('lunch.cashbox', 'Name of box', required=True), + } def confirm(self, cr, uid, ids, context): """ diff --git a/addons/mail_gateway/mail_gateway.py b/addons/mail_gateway/mail_gateway.py index 6bae5c3e64d..07a462d9d95 100644 --- a/addons/mail_gateway/mail_gateway.py +++ b/addons/mail_gateway/mail_gateway.py @@ -60,10 +60,10 @@ class mailgate_thread(osv.osv): default = {} default.update({ - 'message_ids': [], - 'date_closed': False, - 'date_open': False - }) + 'message_ids': [], + 'date_closed': False, + 'date_open': False + }) return super(mailgate_thread, self).copy(cr, uid, id, default, context=context) def message_new(self, cr, uid, msg, context): @@ -134,7 +134,7 @@ class mailgate_thread(osv.osv): if history: for att in attach: attachments.append(att_obj.create(cr, uid, {'name': att[0], 'datas': base64.encodestring(att[1])})) - + for param in (email, email_cc, email_bcc): if isinstance(param, list): param = ", ".join(param) @@ -163,7 +163,7 @@ class mailgate_thread(osv.osv): mailgate_thread() def format_date_tz(date, tz=None): - if not date: + if not date: return 'n/a' format = tools.DEFAULT_SERVER_DATETIME_FORMAT return tools.server_to_local_timestamp(date, format, format, tz) @@ -213,7 +213,7 @@ class mailgate_message(osv.osv): 'description': fields.text('Description', readonly=True), 'partner_id': fields.many2one('res.partner', 'Partner', required=False), 'attachment_ids': fields.many2many('ir.attachment', 'message_attachment_rel', 'message_id', 'attachment_id', 'Attachments', readonly=True), - 'display_text': fields.function(_get_display_text, method=True, type='text', size="512", string='Display Text'), + 'display_text': fields.function(_get_display_text, method=True, type='text', size="512", string='Display Text'), } def init(self, cr): @@ -246,7 +246,7 @@ class mailgate_tool(osv.osv_memory): @param cr: the current row, from the database cursor, @param uid: the current user’s ID for security checks, @param model: OpenObject Model - @param res_ids: Ids of the record of OpenObject model created + @param res_ids: Ids of the record of OpenObject model created @param msg: Email details @param attach: Email attachments """ @@ -256,19 +256,19 @@ class mailgate_tool(osv.osv_memory): msg_pool = self.pool.get('mailgate.message') for res_id in res_ids: msg_data = { - 'name': msg.get('subject', 'No subject'), - 'date': msg.get('date'), - 'description': msg.get('body', msg.get('from')), - 'history': True, - 'res_model': model, - 'email_cc': msg.get('cc'), - 'email_from': msg.get('from'), - 'email_to': msg.get('to'), - 'message_id': msg.get('message-id'), - 'references': msg.get('references') or msg.get('in-reply-to'), - 'res_id': res_id, - 'user_id': uid, - 'attachment_ids': [(6, 0, attach)] + 'name': msg.get('subject', 'No subject'), + 'date': msg.get('date'), + 'description': msg.get('body', msg.get('from')), + 'history': True, + 'res_model': model, + 'email_cc': msg.get('cc'), + 'email_from': msg.get('from'), + 'email_to': msg.get('to'), + 'message_id': msg.get('message-id'), + 'references': msg.get('references') or msg.get('in-reply-to'), + 'res_id': res_id, + 'user_id': uid, + 'attachment_ids': [(6, 0, attach)] } msg_pool.create(cr, uid, msg_data, context=context) return True diff --git a/addons/marketing/security/marketing_security.xml b/addons/marketing/security/marketing_security.xml index 834c763b8d0..2eda88c4481 100644 --- a/addons/marketing/security/marketing_security.xml +++ b/addons/marketing/security/marketing_security.xml @@ -6,4 +6,3 @@ - diff --git a/addons/marketing_campaign/marketing_campaign.py b/addons/marketing_campaign/marketing_campaign.py index 6e1ae749272..215c6970405 100644 --- a/addons/marketing_campaign/marketing_campaign.py +++ b/addons/marketing_campaign/marketing_campaign.py @@ -109,7 +109,7 @@ Normal - the campaign runs normally and automatically sends all emails and repor 'campaign_id', 'Activities'), 'fixed_cost': fields.float('Fixed Cost', help="Fixed cost for the campaign (used for campaign analysis), see also variable cost on activities"), } - + _defaults = { 'state': lambda *a: 'draft', 'mode': lambda *a: 'test', @@ -349,8 +349,6 @@ class marketing_campaign_activity(osv.osv): 'from_ids': fields.one2many('marketing.campaign.transition', 'activity_to_id', 'Previous Activities'), - #'subcampaign_id': fields.many2one('marketing.campaign', 'Sub-Campaign', - # domain="[('object_id', '=', object_id)]"), 'variable_cost': fields.float('Variable Cost'), 'revenue': fields.float('Revenue'), 'signal': fields.char('Signal', size=128, @@ -382,14 +380,14 @@ class marketing_campaign_activity(osv.osv): service = netsvc.LocalService('report.%s'%activity.report_id.report_name) (report_data, format) = service.create(cr, uid, [], {}, {}) attach_vals = { - 'name': '%s_%s_%s'%(activity.report_id.report_name, - activity.name,workitem.partner_id.name), - 'datas_fname': '%s.%s'%(activity.report_id.report_name, - activity.report_id.report_type), - 'parent_id': activity.report_directory_id.id, - 'datas': base64.encodestring(report_data), - 'file_type': format - } + 'name': '%s_%s_%s'%(activity.report_id.report_name, + activity.name,workitem.partner_id.name), + 'datas_fname': '%s.%s'%(activity.report_id.report_name, + activity.report_id.report_type), + 'parent_id': activity.report_directory_id.id, + 'datas': base64.encodestring(report_data), + 'file_type': format + } self.pool.get('ir.attachment').create(cr, uid, attach_vals) return True @@ -430,9 +428,10 @@ class marketing_campaign_transition(osv.osv): _name = "marketing.campaign.transition" _description = "Campaign Transition" - _interval_units = [('hours', 'Hour(s)'), ('days', 'Day(s)'), - ('months', 'Month(s)'), ('years','Year(s)')] - + _interval_units = [ + ('hours', 'Hour(s)'), ('days', 'Day(s)'), + ('months', 'Month(s)'), ('years','Year(s)') + ] def _get_name(self, cr, uid, ids, fn, args, context=None): result = dict.fromkeys(ids, False) @@ -597,7 +596,7 @@ class marketing_campaign_workitem(osv.osv): } wi_id = self.create(cr, uid, values, context=context) - # Now, depending of the trigger and the campaign mode + # Now, depending of the trigger and the campaign mode # we know if must run the newly created workitem. # # rows = transition trigger \ colums = campaign mode @@ -606,7 +605,7 @@ class marketing_campaign_workitem(osv.osv): # time Y N N N # cosmetic N N N N # auto Y Y Y Y - # + # run = transition.trigger == 'auto' \ or (transition.trigger == 'time' \ @@ -671,8 +670,10 @@ class marketing_campaign_workitem(osv.osv): } elif wi_obj.activity_id.type == 'paper': - datas = {'ids': [wi_obj.res_id], - 'model': wi_obj.object_id.model} + datas = { + 'ids': [wi_obj.res_id], + 'model': wi_obj.object_id.model + } res = { 'type' : 'ir.actions.report.xml', 'report_name': wi_obj.activity_id.report_id.report_name, @@ -689,9 +690,9 @@ class email_template(osv.osv): _defaults = { 'object_name': lambda obj, cr, uid, context: context.get('object_id',False), } - + # TODO: add constraint to prevent disabling / disapproving an email account used in a running campaign - + email_template() class report_xml(osv.osv): diff --git a/addons/marketing_campaign/marketing_campaign_view.xml b/addons/marketing_campaign/marketing_campaign_view.xml index a81b15f0e8c..235d3ba34ce 100644 --- a/addons/marketing_campaign/marketing_campaign_view.xml +++ b/addons/marketing_campaign/marketing_campaign_view.xml @@ -249,9 +249,6 @@ - diff --git a/addons/marketing_campaign/report/campaign_analysis.py b/addons/marketing_campaign/report/campaign_analysis.py index 4853cb65e2c..f4a902f97cc 100644 --- a/addons/marketing_campaign/report/campaign_analysis.py +++ b/addons/marketing_campaign/report/campaign_analysis.py @@ -21,7 +21,7 @@ import tools from osv import fields, osv -class campaign_analysis(osv.osv): #{{{ +class campaign_analysis(osv.osv): _name = "campaign.analysis" _description = "Campaign Analysis" _auto = False @@ -43,22 +43,22 @@ class campaign_analysis(osv.osv): #{{{ return result _columns = { 'year': fields.char('Year', size=4, readonly=True), - 'month':fields.selection([('01','January'), ('02','February'), - ('03','March'), ('04','April'),('05','May'), ('06','June'), + 'month':fields.selection([('01','January'), ('02','February'), + ('03','March'), ('04','April'),('05','May'), ('06','June'), ('07','July'), ('08','August'), ('09','September'), - ('10','October'), ('11','November'), ('12','December')], + ('10','October'), ('11','November'), ('12','December')], 'Month', readonly=True), 'date': fields.date('Date', readonly=True), - 'campaign_id': fields.many2one('marketing.campaign', 'Campaign', + 'campaign_id': fields.many2one('marketing.campaign', 'Campaign', readonly=True), 'activity_id': fields.many2one('marketing.campaign.activity', 'Activity', readonly=True), - 'segment_id': fields.many2one('marketing.campaign.segment', 'Segment', + 'segment_id': fields.many2one('marketing.campaign.segment', 'Segment', readonly=True), 'partner_id': fields.many2one('res.partner', 'Partner', readonly=True), 'country_id': fields.related('partner_id','address', 'country_id', type='many2one', relation='res.country',string='Country'), - 'total_cost' : fields.function(_total_cost, string='Cost', method=True, + 'total_cost' : fields.function(_total_cost, string='Cost', method=True, type="float" ), 'revenue': fields.float('Revenue',digits=(16,2),readonly=True), 'count' : fields.integer('# of Actions', readonly=True), @@ -89,4 +89,4 @@ class campaign_analysis(osv.osv): #{{{ wi.date::date ) """) -campaign_analysis() #}}} +campaign_analysis() diff --git a/addons/marketing_campaign/security/marketing_campaign_security.xml b/addons/marketing_campaign/security/marketing_campaign_security.xml index b9267694818..bb933fdcdc3 100644 --- a/addons/marketing_campaign/security/marketing_campaign_security.xml +++ b/addons/marketing_campaign/security/marketing_campaign_security.xml @@ -5,9 +5,6 @@ Marketing / User - diff --git a/addons/marketing_campaign_mailchimp/marketing_campaign_mailchimp.py b/addons/marketing_campaign_mailchimp/marketing_campaign_mailchimp.py index 566bf497fd7..2b482867694 100644 --- a/addons/marketing_campaign_mailchimp/marketing_campaign_mailchimp.py +++ b/addons/marketing_campaign_mailchimp/marketing_campaign_mailchimp.py @@ -29,22 +29,22 @@ mailchimp_url = 'http://%s.api.mailchimp.com/1.2' class mailchimp_account(osv.osv): _name = "mailchimp.account" - + _columns = { - 'name': fields.char('Account Name', size=64), - 'username': fields.char('Username', size=64, required=True), - 'password': fields.char('Password', size=64, required=True), - 'apikey': fields.char('API Key', size=128), - 'data_center': fields.selection([('us1', 'US1'), ('us2', 'US2'), - ('uk1', 'UK1')], 'Data Center'), - 'state': fields.selection([('draft', 'Draft'), ('approved', 'Approved'), - ('cancelled', 'Cancelled')], 'State', readonly=True) - } - + 'name': fields.char('Account Name', size=64), + 'username': fields.char('Username', size=64, required=True), + 'password': fields.char('Password', size=64, required=True), + 'apikey': fields.char('API Key', size=128), + 'data_center': fields.selection([('us1', 'US1'), ('us2', 'US2'), + ('uk1', 'UK1')], 'Data Center'), + 'state': fields.selection([('draft', 'Draft'), ('approved', 'Approved'), + ('cancelled', 'Cancelled')], 'State', readonly=True) + } + _defaults = { - 'state': lambda *a: 'draft' - } - + 'state': lambda *a: 'draft' + } + def get_response(self, cr, uid, mailchimp_id, method, params={}): mailchimp_account = self.browse(cr, uid, mailchimp_id) params['output'] = 'json' @@ -57,7 +57,7 @@ class mailchimp_account(osv.osv): params = urllib.urlencode(params, doseq=True) response = urllib2.urlopen(url, params) return json.loads(response.read()) - + def button_approve(self, cr, uid, ids, context): acc_obj = self.browse(cr, uid, ids)[0] vals = {} @@ -71,32 +71,34 @@ class mailchimp_account(osv.osv): vals['apikey'] = response vals['state'] = 'approved' self.write(cr, uid, ids, vals) - else : + else : raise osv.except_osv('Error!!!', "Can't approved accoutnt : %s"%response['error']) return True - + def button_cancel(self, cr, uid, ids, context): self.write(cr, uid, ids, {'state': 'cancelled'}) return True - + def add_partner_list(self, cr, uid, account_id, list_id, partner_ids): vals = {} # just dictionary with partner_id and updated in list or not for partner in self.pool.get('res.partner').browse(cr, uid, partner_ids): - params = {'id' : list_id, + params = { + 'id' : list_id, 'email_address' : partner.email, 'email_type':'text', - 'merge_vars[FNAME]':partner.name , + 'merge_vars[FNAME]':partner.name , 'merge_vars[date]' : time.strftime('%Y-%m-%d'), 'merge_vars[phone]' : partner.phone, 'merge_vars[website]' : partner.website, 'merge_vars[address][country]' : partner.country.code, 'merge_vars[address][city]' : partner.city, - 'double_optin':False} + 'double_optin':False + } vals[partner.id] = self.get_response(cr, uid, account_id, 'listSubscribe', params) return vals - + mailchimp_account() class mailchimp_list(osv.osv_memory): @@ -115,28 +117,28 @@ class marketing_campaign(osv.osv): _inherit = "marketing.campaign" _columns = { - 'mailchimp_account_id': fields.many2one( - 'mailchimp.account', 'Account'), - 'mailchimp_campaign': fields.char('campaign', size=64), + 'mailchimp_account_id': fields.many2one( + 'mailchimp.account', 'Account'), + 'mailchimp_campaign': fields.char('campaign', size=64), } marketing_campaign() - -class marketing_campaign_activity(osv.osv): + +class marketing_campaign_activity(osv.osv): _inherit = "marketing.campaign.activity" _columns = { - 'mailchimp_account_id': fields.many2one( - 'mailchimp.account', 'Account'), - 'mailchimp_list': fields.char('List', size=64), + 'mailchimp_account_id': fields.many2one( + 'mailchimp.account', 'Account'), + 'mailchimp_list': fields.char('List', size=64), } - + def onchange_mailchimp(self, cr, uid, ids, mailchimp_account_id): if mailchimp_account_id: return {'value':{'mailchimp_list':''}} return {'value':{}} - - def onchange_mailchimp_list(self, cr, uid, ids, mailchimp_account_id, + + def onchange_mailchimp_list(self, cr, uid, ids, mailchimp_account_id, mailchimp_list): if mailchimp_account_id and mailchimp_list: lists = self.pool.get('mailchimp.account').get_response(cr, @@ -154,7 +156,7 @@ class marketing_campaign_activity(osv.osv): mc_acc_obj = self.pool.get('mailchimp.account') lists = mc_acc_obj.get_response(cr, uid, mailchimp_account_id, 'lists') list_id = '' - for l in lists : + for l in lists : if l['name'] == list_name: list_id = l['id'] break; @@ -163,34 +165,38 @@ class marketing_campaign_activity(osv.osv): model_obj = self.pool.get(res_model).browse(cr, uid, res_id) params ={} if res_model == 'res.partner' : - params.update({'email_address' : model_obj.email, - 'merge_vars[FNAME]':model_obj.name and model_obj.name or '', - 'merge_vars[website]' : model_obj.website, - 'merge_vars[address][country]' : model_obj.country.code, - }) + params.update({ + 'email_address' : model_obj.email, + 'merge_vars[FNAME]':model_obj.name and model_obj.name or '', + 'merge_vars[website]' : model_obj.website, + 'merge_vars[address][country]' : model_obj.country.code, + }) elif res_model == 'crm.lead' : - params.update({'email_address' : model_obj.email_from, - 'merge_vars[FNAME]':model_obj.partner_name and \ - model_obj.partner_name or '', - 'merge_vars[address][country]' : model_obj.country_id and \ - model_obj.country_id.code or '' - }) + params.update({ + 'email_address' : model_obj.email_from, + 'merge_vars[FNAME]':model_obj.partner_name and \ + model_obj.partner_name or '', + 'merge_vars[address][country]' : model_obj.country_id and \ + model_obj.country_id.code or '' + }) if params['email_address'] : user = mc_acc_obj.get_response(cr, uid, mailchimp_account_id, - 'listMemberInfo', - {'id' : list_id, - 'email_address': params['email_address']}) - # if there s no user with the specify email it will return error code + 'listMemberInfo', { + 'id' : list_id, + 'email_address': params['email_address'] + }) + # if there s no user with the specify email it will return error code # and thus we add that user otherwise user is alredy subscribe and there # is no need to subscribe user again if 'error' in user: - params.update({'id' : list_id, + params.update({ + 'id' : list_id, 'email_type':'text', 'double_optin':False, 'merge_vars[date]' : time.strftime('%Y-%m-%d'), 'merge_vars[address][city]' : model_obj.city and model_obj.city or '', 'merge_vars[phone]' : model_obj.phone and model_obj.phone or '', - }) + }) mc_acc_obj.get_response(cr, uid, mailchimp_account_id, 'listSubscribe', params) # TODO handle mailchimp error return True diff --git a/addons/marketing_campaign_mailchimp/security/marketing_security.xml b/addons/marketing_campaign_mailchimp/security/marketing_security.xml index 0a6393a367a..59cbf65a63d 100644 --- a/addons/marketing_campaign_mailchimp/security/marketing_security.xml +++ b/addons/marketing_campaign_mailchimp/security/marketing_security.xml @@ -8,4 +8,3 @@ - diff --git a/addons/marketing_campaign_mailchimp/wizard/create_list.py b/addons/marketing_campaign_mailchimp/wizard/create_list.py index 0a490787de5..03a69a8ac89 100755 --- a/addons/marketing_campaign_mailchimp/wizard/create_list.py +++ b/addons/marketing_campaign_mailchimp/wizard/create_list.py @@ -38,20 +38,17 @@ class create_list(osv.osv_memory): 'Partner'), } - + def onchange_mailchimp_account_id(self, cr, uid, ids, mailchimp_account_id, action): - print mailchimp_account_id,action, - return {'value':{}} - + return {'value':{}} + def create_list(self, cr, uid, ids, context=None): create_list_obj = self.browse(cr, uid, ids[0]) - print create_list_obj.id mailchimp_account_obj = self.pool.get('mailchimp.account') account_id = create_list_obj.mailchimp_account_id lists = mailchimp_account_obj.get_response(cr, uid, account_id.id, 'lists') lists = dict([(l['name'],l['id']) for l in lists]) - print lists if create_list_obj.list_name not in lists.keys(): raise osv.except_osv(_('UserError'), _('There is no list define in account %s') % (account_id.name)) diff --git a/addons/marketing_campaign_mailchimp/wizard/create_list_view.xml b/addons/marketing_campaign_mailchimp/wizard/create_list_view.xml index f15826aeaea..d978527f3e3 100755 --- a/addons/marketing_campaign_mailchimp/wizard/create_list_view.xml +++ b/addons/marketing_campaign_mailchimp/wizard/create_list_view.xml @@ -11,9 +11,6 @@ -