From 18b8ed7835aafdb9d49ea5785766a4bc6c984ef0 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Wed, 18 Aug 2010 10:23:14 +0530 Subject: [PATCH 01/23] [IMP] l10n_fr: Code improved bzr revid: mra@mra-laptop-20100818045314-kg11zkfizxlnn1bs --- addons/l10n_fr/l10n_fr.py | 5 +- addons/l10n_fr/report/base_report.py | 57 +++++++++---------- addons/l10n_fr/report/bilan_report.rml | 2 +- .../report/compute_resultant_report.rml | 2 +- addons/l10n_fr/wizard/fr_report_bilan.py | 11 ++-- .../l10n_fr/wizard/fr_report_bilan_view.xml | 7 ++- .../wizard/fr_report_compute_resultant.py | 21 ++++--- .../fr_report_compute_resultant_view.xml | 6 +- 8 files changed, 59 insertions(+), 52 deletions(-) diff --git a/addons/l10n_fr/l10n_fr.py b/addons/l10n_fr/l10n_fr.py index 08e8c9ed3e5..573f4f7519e 100644 --- a/addons/l10n_fr/l10n_fr.py +++ b/addons/l10n_fr/l10n_fr.py @@ -29,9 +29,11 @@ class l10n_fr_report(osv.osv): 'name': fields.char('Name', size=128), 'line_ids': fields.one2many('l10n.fr.line', 'report_id', 'Lines'), } + _sql_constraints = [ ('code_uniq', 'unique (code)','The code report must be unique !') ] + l10n_fr_report() class l10n_fr_line(osv.osv): @@ -46,6 +48,7 @@ class l10n_fr_line(osv.osv): _sql_constraints = [ ('code_uniq', 'unique (code)', 'The variable name must be unique !') ] + l10n_fr_line() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/l10n_fr/report/base_report.py b/addons/l10n_fr/report/base_report.py index e1c8eb943e5..f1b00896159 100644 --- a/addons/l10n_fr/report/base_report.py +++ b/addons/l10n_fr/report/base_report.py @@ -27,10 +27,11 @@ ############################################################################## import time + from report import report_sxw class base_report(report_sxw.rml_parse): - def __init__(self, cr, uid, name, context): + def __init__(self, cr, uid, name, context=None): super(base_report, self).__init__(cr, uid, name, context=context) self.localcontext.update({ 'time': time, @@ -40,48 +41,46 @@ class base_report(report_sxw.rml_parse): }) self.context = context - def _load(self,name,form): - fiscalyear=self.pool.get('account.fiscalyear').browse(self.cr, self.uid, form['fiscalyear']) + def _load(self, name, form): + fiscalyear = self.pool.get('account.fiscalyear').browse(self.cr, self.uid, form['fiscalyear']) + period_query_cond=self.pool.get('account.period').search(self.cr, self.uid, [('fiscalyear_id', '=', form['fiscalyear'])]) - period_query_cond=self.pool.get('account.period').search(self.cr, self.uid,[('fiscalyear_id','=',form['fiscalyear'])]) - - self.cr.execute("SELECT MIN(date_start) AS date_start, MAX(date_stop) AS date_stop FROM account_period WHERE id IN %s",(tuple(period_query_cond),)) - dates =self.cr.dictfetchall() + self.cr.execute("SELECT MIN(date_start) AS date_start, MAX(date_stop) AS date_stop FROM account_period WHERE id IN %s", (tuple(period_query_cond),)) + dates = self.cr.dictfetchall() self._set_variable('date_start', dates[0]['date_start']) self._set_variable('date_stop', dates[0]['date_stop']) self.cr.execute("SELECT l10n_fr_line.code,definition FROM l10n_fr_line LEFT JOIN l10n_fr_report ON l10n_fr_report.id=report_id WHERE l10n_fr_report.code=%s",(name,)) - datas =self.cr.dictfetchall() + datas = self.cr.dictfetchall() for line in datas: self._load_accounts(form,line['code'],eval(line['definition']),fiscalyear,period_query_cond) - def _set_variable(self,variable,valeur): - self.localcontext.update({variable:valeur}) + def _set_variable(self, variable, valeur): + self.localcontext.update({variable: valeur}) - def _get_variable(self,variable): + def _get_variable(self, variable): return self.localcontext[variable] def _load_accounts(self,form,code,definition,fiscalyear,period_query_cond): - accounts={} + accounts = {} for x in definition['load']: - p=x.split(":") - accounts[p[1]]=[p[0],p[2]] - sum=0.0 - - if fiscalyear.state!='done' or not code.startswith('bpcheck'): - query_cond="(" + p = x.split(":") + accounts[p[1]] = [p[0],p[2]] + sum = 0.0 + if fiscalyear.state != 'done' or not code.startswith('bpcheck'): + query_cond = "(" for account in accounts: - query_cond += "aa.code LIKE '"+account+"%' OR " + query_cond += "aa.code LIKE '" + account + "%' OR " query_cond = query_cond[:-4]+")" - if len(definition['except'])>0: + if len(definition['except']) > 0: query_cond = query_cond+" and (" for account in definition['except']: query_cond += "aa.code NOT LIKE '"+account+"%' AND " query_cond = query_cond[:-5]+")" - closed_cond="" - if fiscalyear.state=='done': + closed_cond = "" + if fiscalyear.state == 'done': closed_cond=" AND (aml.move_id NOT IN (SELECT account_move.id as move_id FROM account_move WHERE period_id IN "+str(tuple(period_query_cond))+" AND journal_id=(SELECT res_id FROM ir_model_data WHERE name='closing_journal' AND module='l10n_fr')) OR (aa.type != 'income' AND aa.type !='expense'))" query = "SELECT aa.code AS code, SUM(debit) as debit, SUM(credit) as credit FROM account_move_line aml LEFT JOIN account_account aa ON aa.id=aml.account_id WHERE "+query_cond+closed_cond+" AND aml.state='valid' AND aml.period_id IN "+str(tuple(period_query_cond))+" GROUP BY code" @@ -94,19 +93,19 @@ class base_report(report_sxw.rml_parse): operator=accounts[account][0] type=accounts[account][1] value=0.0 - if(type=="S"): + if(type == "S"): value=line["debit"]-line["credit"] - elif(type=="D"): + elif(type == "D"): value=line["debit"]-line["credit"] if(value<0.001): value=0.0 - elif(type=="C"): + elif(type == "C"): value=line["credit"]-line["debit"] if(value<0.001): value=0.0 - if(operator=='+'): - sum+=value + if(operator == '+'): + sum += value else: - sum-=value + sum -= value break self._set_variable(code, sum) -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/l10n_fr/report/bilan_report.rml b/addons/l10n_fr/report/bilan_report.rml index a462f61404e..e93a63aec86 100644 --- a/addons/l10n_fr/report/bilan_report.rml +++ b/addons/l10n_fr/report/bilan_report.rml @@ -1,3 +1,3 @@ -[[ _load('bilan',data['form'])]][[ _set_variable('at1a',bavar1+bavar2+bavar3+bavar4+bavar5+bavar6+bavar7+bavar8+bavar9+bavar10+bavar11+bavar12+bavar13+bavar14+bavar15+bavar16+bavar17+bavar18+bavar19+bavar20)]][[ _set_variable('at1b', bavar2b+bavar3b+bavar4b+bavar5b+bavar6b+bavar7b+bavar9b+bavar10b+bavar11b+bavar12b+bavar13b+bavar15b+ bavar16b+bavar17b+bavar18b+bavar19b+bavar20b)]][[ _set_variable('at1', at1a+at1b)]][[ _set_variable('at2a', bavar21+bavar22+bavar23+bavar24+bavar25+bavar26+bavar27+bavar28+bavar29+bavar30+bavar31+bavar32+bavar33)]][[ _set_variable('at2b', bavar21b+bavar22b+bavar23b+bavar24b+bavar26b+bavar27b+bavar29b+bavar30b)]][[ _set_variable('at2', at2a+at2b)]][[ _set_variable('actif', at1+at2+bavar34+bavar35+bavar36)]][[ _set_variable('pt1', bpvar1+bpvar2+bpvar3+bpvar4+bpvar5+bpvar6+bpvar7+bpvar8+bpvar9+bpvar10+bpvar11+bpvar12)]][[ _set_variable('pt2', bpvar13+bpvar14)]][[ _set_variable('pt3', bpvar15+bpvar16+bpvar17+bpvar18+bpvar19+bpvar20+bpvar21+bpvar22+bpvar23+bpvar24+bpvar25)]][[ _set_variable('passif', pt1+pt2+pt3+bpvar26)]][[ company.name ]]au [[ time.strftime('%d-%m-%Y',time.strptime(date_stop,'%Y-%m-%d'))]]BilanImprimé le : [[ time.strftime('%d-%m-%Y') ]] Tenue de Compte : [[ company.currency_id.name ]]ACTIF BrutAmortissements et dépréciationsNetCapital souscrit - non appelé[[bavar1]] [[bavar1]]ACTIF IMMOBILISÉ IMMOBILISATIONS INCORPORELLES Frais d'établissement[[bavar2]][[-bavar2b]][[bavar2+bavar2b]]Frais de recherche et de développement[[bavar3]][[-bavar3b]][[bavar3+bavar3b]]Concessions, brevets, licences,..., droits et valeurs similaires[[bavar4]][[-bavar4b]][[bavar4+bavar4b]]Fonds commercial[[bavar5]][[-bavar5b]][[bavar5+bavar5b]]Autres[[bavar6]][[-bavar6b]][[bavar6+bavar6b]]Immobilisations incorporelles en cours[[bavar7]][[-bavar7b]][[bavar7+bavar7b]]Avances et acomptes[[bavar8]] [[bavar8]]IMMOBILISATIONS CORPORELLES Terrains[[bavar9]][[-bavar9b]][[bavar9+bavar9b]]Constructions[[bavar10]][[-bavar10b]][[bavar10+bavar10b]]Installations techniques,matériel et outillage[[bavar11]][[-bavar11b]][[bavar11+bavar11b]]Autres [[bavar12]][[-bavar12b]][[bavar12+bavar12b]]Immobilisations corporelles en cours[[bavar13]][[-bavar13b]][[bavar13+bavar13b]]Avances et acomptes[[bavar14]] [[bavar14]]IMMOBILISATIONS FINANCIÉRES Participations[[bavar15]][[-bavar15b]][[bavar15+bavar15b]]Créances rattachées à des participations[[bavar16]][[-bavar16b]][[bavar16+bavar16b]]Titres immobilisés de l'activité de portefeuille[[bavar17]][[-bavar17b]][[bavar17+bavar17b]]Autres titres immobilisés[[bavar18]][[-bavar18b]][[bavar18+bavar18b]]Prêts[[bavar19]][[-bavar19b]][[bavar19+bavar19b]]Autres[[bavar20]][[-bavar20b]][[bavar20+bavar20b]]TOTAL I[[at1a]][[-at1b]][[at1]]ACTIF CIRCULANT STOCK EN COURS Matières premières et autres approvisionnements[[bavar21]][[-bavar21b]][[bavar21+bavar21b]]En-cours de production [biens et services][[bavar22]][[-bavar22b]][[bavar22+bavar22b]]Produits intermédiaires et finis[[bavar23]][[-bavar23b]][[bavar23+bavar23b]]Marchandises[[bavar24]][[-bavar24b]][[bavar24+bavar24b]]Avances et acomptes versés sur commandes[[bavar25]] [[bavar25]]CRÉANCES Créances clients et comptes rattachés[[bavar26]][[-bavar26b]][[bavar26+bavar26b]]Autres[[bavar27]][[-bavar27b]][[bavar27+bavar27b]]Capital souscrit - appelé , non versé[[bavar28]] [[bavar28]]VALEURS MOBILIÈRES DE PLACEMENT Actions propres[[bavar29]][[-bavar29b]][[bavar29+bavar29b]]Autres titres[[bavar30]][[-bavar30b]][[bavar30+bavar30b]]Instruments de trésorerie[[bavar31]] [[bavar31]]Disponibilités[[bavar32]] [[bavar32]]Charges constatés d'avance[[bavar33]] [[bavar33]]TOTAL II[[at2a]][[-at2b]][[at2]]Charges à répartir sur plusieurs exercices ( III )[[bavar34]] [[bavar34]]Primes de remboursement des emprunts ( IV )[[bavar35]] [[bavar35]]Écarts de conversion actif ( V )[[bavar36]] [[bavar36]]TOTAL ACTIF ( I + II + III + IV + V )[[at1a+at2a]][[-at1b-at2b]][[actif]]PASSIFCAPITAUX PROPRES Capital [dont versé...][[bpvar1]]Primes d'émission, de fusion, d'apport[[bpvar2]]Écarts de réévaluation[[bpvar3]]Écart d'équivalence[[bpvar4]]RÉSERVES Réserve légale[[bpvar5]]Réserves statutaires ou contractuelles[[bpvar6]]Réserves réglementées[[bpvar7]]Autres réserves[[bpvar8]]Report à nouveau[[bpvar9]]RÉSULTAT DE L'EXERCICE [bénéfice ou perte][[bpvar10]]Subventions d'investissement[[bpvar11]]Provisions réglementées[[bpvar12]]TOTAL I[[pt1]]PROVISIONS Provisions pour risques[[bpvar13]]Provisions pour charges[[bpvar14]]TOTAL II[[pt2]]DETTES Emprunts obligataires convertibles[[bpvar15]]Autres emprunts obligataires[[bpvar16]]Emprunts et dettes auprès des établissements de crédit[[bpvar17]]Emprunts et dettes financières diverses[[bpvar18]]Avances et acomptes reçus sur commandes en cours[[bpvar19]]Dettes fournisseurs et comptes rattachés [[bpvar20]]Dettes fiscales et sociales[[bpvar21]]Dettes sur immobilisations et comptes rattachés[[bpvar22]]Autres dettes[[bpvar23]]Instruments de trésorerie[[bpvar24]]Produits constatés d'avance[[bpvar25]]TOTAL III[[pt3]]Écarts de conversion passif ( IV )[[bpvar26]]TOTAL GÉNÉRAL (I + II + III + IV)[[passif]]ACTIF - PASSIF[[round(actif-passif,2)]] [[ abs(bpcheck)<0.0001 and removeParentNode('para') ]] Attention, pour que votre bilan soit correct, vous devez solder les comptes 120 ou 129 (Résultat de l'exercice précédant) dans un compte de report à nouveau (compte 110 ou 119) ou dans le compte 108. Renseignez vous sur votre structure juridique et son fonctionnement comptable. +[[ _load('bilan',data['form'])]][[ _set_variable('at1a',bavar1+bavar2+bavar3+bavar4+bavar5+bavar6+bavar7+bavar8+bavar9+bavar10+bavar11+bavar12+bavar13+bavar14+bavar15+bavar16+bavar17+bavar18+bavar19+bavar20)]][[ _set_variable('at1b', bavar2b+bavar3b+bavar4b+bavar5b+bavar6b+bavar7b+bavar9b+bavar10b+bavar11b+bavar12b+bavar13b+bavar15b+ bavar16b+bavar17b+bavar18b+bavar19b+bavar20b)]][[ _set_variable('at1', at1a+at1b)]][[ _set_variable('at2a', bavar21+bavar22+bavar23+bavar24+bavar25+bavar26+bavar27+bavar28+bavar29+bavar30+bavar31+bavar32+bavar33)]][[ _set_variable('at2b', bavar21b+bavar22b+bavar23b+bavar24b+bavar26b+bavar27b+bavar29b+bavar30b)]][[ _set_variable('at2', at2a+at2b)]][[ _set_variable('actif', at1+at2+bavar34+bavar35+bavar36)]][[ _set_variable('pt1', bpvar1+bpvar2+bpvar3+bpvar4+bpvar5+bpvar6+bpvar7+bpvar8+bpvar9+bpvar10+bpvar11+bpvar12)]][[ _set_variable('pt2', bpvar13+bpvar14)]][[ _set_variable('pt3', bpvar15+bpvar16+bpvar17+bpvar18+bpvar19+bpvar20+bpvar21+bpvar22+bpvar23+bpvar24+bpvar25)]][[ _set_variable('passif', pt1+pt2+pt3+bpvar26)]][[ company.name ]]au [[ time.strftime('%d-%m-%Y',time.strptime(date_stop,'%Y-%m-%d'))]]BilanImprimé le : [[ time.strftime('%d-%m-%Y') ]] Tenue de Compte : [[ company.currency_id.name ]]ACTIF BrutAmortissements et dépréciationsNetCapital souscrit - non appelé[[bavar1]] [[bavar1]]ACTIF IMMOBILISÉ IMMOBILISATIONS INCORPORELLES Frais d'établissement[[bavar2]][[-bavar2b]][[bavar2+bavar2b]]Frais de recherche et de développement[[bavar3]][[-bavar3b]][[bavar3+bavar3b]]Concessions, brevets, licences,..., droits et valeurs similaires[[bavar4]][[-bavar4b]][[bavar4+bavar4b]]Fonds commercial[[bavar5]][[-bavar5b]][[bavar5+bavar5b]]Autres[[bavar6]][[-bavar6b]][[bavar6+bavar6b]]Immobilisations incorporelles en cours[[bavar7]][[-bavar7b]][[bavar7+bavar7b]]Avances et acomptes[[bavar8]] [[bavar8]]IMMOBILISATIONS CORPORELLES Terrains[[bavar9]][[-bavar9b]][[bavar9+bavar9b]]Constructions[[bavar10]][[-bavar10b]][[bavar10+bavar10b]]Installations techniques,matériel et outillage[[bavar11]][[-bavar11b]][[bavar11+bavar11b]]Autres [[bavar12]][[-bavar12b]][[bavar12+bavar12b]]Immobilisations corporelles en cours[[bavar13]][[-bavar13b]][[bavar13+bavar13b]]Avances et acomptes[[bavar14]] [[bavar14]]IMMOBILISATIONS FINANCIÉRES Participations[[bavar15]][[-bavar15b]][[bavar15+bavar15b]]Créances rattachées à des participations[[bavar16]][[-bavar16b]][[bavar16+bavar16b]]Titres immobilisés de l'activité de portefeuille[[bavar17]][[-bavar17b]][[bavar17+bavar17b]]Autres titres immobilisés[[bavar18]][[-bavar18b]][[bavar18+bavar18b]]Prêts[[bavar19]][[-bavar19b]][[bavar19+bavar19b]]Autres[[bavar20]][[-bavar20b]][[bavar20+bavar20b]]TOTAL I[[at1a]][[-at1b]][[at1]]ACTIF CIRCULANT STOCK EN COURS Matières premières et autres approvisionnements[[bavar21]][[-bavar21b]][[bavar21+bavar21b]]En-cours de production [biens et services][[bavar22]][[-bavar22b]][[bavar22+bavar22b]]Produits intermédiaires et finis[[bavar23]][[-bavar23b]][[bavar23+bavar23b]]Marchandises[[bavar24]][[-bavar24b]][[bavar24+bavar24b]]Avances et acomptes versés sur commandes[[bavar25]] [[bavar25]]CRÉANCES Créances clients et comptes rattachés[[bavar26]][[-bavar26b]][[bavar26+bavar26b]]Autres[[bavar27]][[-bavar27b]][[bavar27+bavar27b]]Capital souscrit - appelé , non versé[[bavar28]] [[bavar28]]VALEURS MOBILIÈRES DE PLACEMENT Actions propres[[bavar29]][[-bavar29b]][[bavar29+bavar29b]]Autres titres[[bavar30]][[-bavar30b]][[bavar30+bavar30b]]Instruments de trésorerie[[bavar31]] [[bavar31]]Disponibilités[[bavar32]] [[bavar32]]Charges constatés d'avance[[bavar33]] [[bavar33]]TOTAL II[[at2a]][[-at2b]][[at2]]Charges à répartir sur plusieurs exercices ( III )[[bavar34]] [[bavar34]]Primes de remboursement des emprunts ( IV )[[bavar35]] [[bavar35]]Écarts de conversion actif ( V )[[bavar36]] [[bavar36]]TOTAL ACTIF ( I + II + III + IV + V )[[at1a+at2a]][[-at1b-at2b]][[actif]]PASSIFCAPITAUX PROPRES Capital [dont versé...][[bpvar1]]Primes d'émission, de fusion, d'apport[[bpvar2]]Écarts de réévaluation[[bpvar3]]Écart d'équivalence[[bpvar4]]RÉSERVES Réserve légale[[bpvar5]]Réserves statutaires ou contractuelles[[bpvar6]]Réserves réglementées[[bpvar7]]Autres réserves[[bpvar8]]Report à nouveau[[bpvar9]]RÉSULTAT DE L'EXERCICE [bénéfice ou perte][[bpvar10]]Subventions d'investissement[[bpvar11]]Provisions réglementées[[bpvar12]]TOTAL I[[pt1]]PROVISIONS Provisions pour risques[[bpvar13]]Provisions pour charges[[bpvar14]]TOTAL II[[pt2]]DETTES Emprunts obligataires convertibles[[bpvar15]]Autres emprunts obligataires[[bpvar16]]Emprunts et dettes auprès des établissements de crédit[[bpvar17]]Emprunts et dettes financières diverses[[bpvar18]]Avances et acomptes reçus sur commandes en cours[[bpvar19]]Dettes fournisseurs et comptes rattachés [[bpvar20]]Dettes fiscales et sociales[[bpvar21]]Dettes sur immobilisations et comptes rattachés[[bpvar22]]Autres dettes[[bpvar23]]Instruments de trésorerie[[bpvar24]]Produits constatés d'avance[[bpvar25]]TOTAL III[[pt3]]Écarts de conversion passif ( IV )[[bpvar26]]TOTAL GÉNÉRAL (I + II + III + IV)[[passif]]ACTIF - PASSIF[[round(actif-passif,2)]] [[ abs(bpcheck)<0.0001 and removeParentNode('para') ]] Attention, pour que votre bilan soit correct, vous devez solder les comptes 120 ou 129 (Résultat de l'exercice précédant) dans un compte de report à nouveau (compte 110 ou 119) ou dans le compte 108. Renseignez vous sur votre structure juridique et son fonctionnement comptable. diff --git a/addons/l10n_fr/report/compute_resultant_report.rml b/addons/l10n_fr/report/compute_resultant_report.rml index 7ac220a62be..9d3693f0b52 100644 --- a/addons/l10n_fr/report/compute_resultant_report.rml +++ b/addons/l10n_fr/report/compute_resultant_report.rml @@ -1,3 +1,3 @@ -[[ _load('cdr',data['form'])]][[ _set_variable('ct1', cdrc1+cdrc2+cdrc3+cdrc4+cdrc5+cdrc6+cdrc7+cdrc8+cdrc9+cdrc10+cdrc11+cdrc12+cdrc13+cdrc14+cdrc15)]][[ _set_variable('ct3', cdrc17+cdrc18+cdrc19+cdrc20)]][[ _set_variable('ct4', cdrc21+cdrc22+cdrc23)]][[ _set_variable('charges', ct1+cdrc16+ct3+ct4+cdrc24+cdrc25)]][[ _set_variable('pta', cdrp1+cdrp2)]][[ _set_variable('ptb', cdrp3+cdrp4+cdrp5+cdrp6+cdrp7)]][[ _set_variable('pt1', pta+ptb)]][[ _set_variable('pt3', cdrp9+cdrp10+cdrp11+cdrp12+cdrp13+cdrp14)]][[ _set_variable('pt4', cdrp15+cdrp16+cdrp17)]][[ _set_variable('produits', pt1+cdrp8+pt3+pt4)]][[ company.name ]]période du [[ time.strftime('%d-%m-%Y',time.strptime(date_start,'%Y-%m-%d'))]] au [[ time.strftime('%d-%m-%Y',time.strptime(date_stop,'%Y-%m-%d'))]]Compte de résultatImprimé le : [[ time.strftime('%d-%m-%Y') ]] Tenue de Compte : [[ company.currency_id.name ]] CHARGES ( hors taxes ) CHARGES D'EXPLOITATION Achat de marchandises[[cdrc1]]Variation des stocks[[cdrc2]]Achats de matières premières et autres approvisionnements[[cdrc3]]Variation des stocks[[cdrc4]]Autres achats et charges externes[[cdrc5]]Redevances de crédit-bail mobilier[[cdrc6]]Redevances de crédit-bail immobilier[[cdrc7]]Impôts, taxes et versements assimilés[[cdrc8]]Salaires et traitements[[cdrc9]]Charges sociales[[cdrc10]]Dotation aux amortissements et aux dépréciations Sur immobilisations : dotations aux amortissements[[cdrc11]]Sur immobilisations : dotations aux dépréciations[[cdrc12]]Sur actif circulant : dotations aux dépréciations[[cdrc13]]Dotations aux provisions[[cdrc14]]Autres charges[[cdrc15]]TOTAL I[[ct1]]Quotes-parts de résultat sur opérations faites en commun ( II )[[cdrc16]]CHARGES FINANCIÈRES Dotations aux amortissements, aux dépréciations et aux provisions[[cdrc17]]Intérêts et charges assimilées[[cdrc18]]Différences négatives de change[[cdrc19]]Charges nettes sur cessions de valeurs mobilières de placement[[cdrc20]]TOTAL III[[ct3]]CHARGES EXCEPTIONNELLES Sur opérations de gestion[[cdrc21]]Sur opérations en capital[[cdrc22]]Dotations aux amortissements, aux dépréciations et aux provisions[[cdrc23]]TOTAL IV[[ct4]]Participation des salariés aux résultats ( V )[[cdrc24]]Impôts sur les bénéfices ( VI )[[cdrc25]]TOTAL CHARGES ( I + II + III + IV+ V+ VI )[[charges]] PRODUITS (hors taxes) PRODUITS D'EXPLOITATION Vente de marchandises[[cdrp1]]Production vendue [biens et services][[cdrp2]]Sous-total A - Montant net du chiffre d'affaires[[pta]]Production stockée[[cdrp3]]Production immobilisée[[cdrp4]]Subventions d'exploitation[[cdrp5]]Reprises sur provisions, dépréciations (et amortissements) et transferts de charges[[cdrp6]]Autres produits[[cdrp7]]Sous-total B[[ptb]]TOTAL I ( A + B )[[pt1]]Quotes-parts de résultat sur opérations faites en commun (II)[[cdrp8]]PRODUITS FINANCIERS De participation[[cdrp9]]D'autres valeurs mobilières et créances de l'actif immobilisé[[cdrp10]]Autres intérêts et produits assimilés[[cdrp11]]Reprises sur provisions, dépréciations et transferts de charges[[cdrp12]]Différences positives de change[[cdrp13]]Produits nets sur cessions de valeurs mobilières de placement[[cdrp14]]TOTAL III[[pt3]]PRODUITS EXCEPTIONNELS Sur opérations de gestion[[cdrp15]]Sur opérations en capital[[cdrp16]]Reprises sur provisions, dépréciations et transferts de charges[[cdrp17]]TOTAL IV[[pt4]]TOTAL DES PRODUITS ( I + II + III + IV )[[produits]]PRODUITS - CHARGES[[produits-charges]] +[[ _load('cdr',data['form'])]][[ _set_variable('ct1', cdrc1+cdrc2+cdrc3+cdrc4+cdrc5+cdrc6+cdrc7+cdrc8+cdrc9+cdrc10+cdrc11+cdrc12+cdrc13+cdrc14+cdrc15)]][[ _set_variable('ct3', cdrc17+cdrc18+cdrc19+cdrc20)]][[ _set_variable('ct4', cdrc21+cdrc22+cdrc23)]][[ _set_variable('charges', ct1+cdrc16+ct3+ct4+cdrc24+cdrc25)]][[ _set_variable('pta', cdrp1+cdrp2)]][[ _set_variable('ptb', cdrp3+cdrp4+cdrp5+cdrp6+cdrp7)]][[ _set_variable('pt1', pta+ptb)]][[ _set_variable('pt3', cdrp9+cdrp10+cdrp11+cdrp12+cdrp13+cdrp14)]][[ _set_variable('pt4', cdrp15+cdrp16+cdrp17)]][[ _set_variable('produits', pt1+cdrp8+pt3+pt4)]][[ company.name ]]période du [[ time.strftime('%d-%m-%Y',time.strptime(date_start,'%Y-%m-%d'))]] au [[ time.strftime('%d-%m-%Y',time.strptime(date_stop,'%Y-%m-%d'))]]Compte de résultatImprimé le : [[ time.strftime('%d-%m-%Y') ]] Tenue de Compte : [[ company.currency_id.name ]] CHARGES ( hors taxes ) CHARGES D'EXPLOITATION Achat de marchandises[[cdrc1]]Variation des stocks[[cdrc2]]Achats de matières premières et autres approvisionnements[[cdrc3]]Variation des stocks[[cdrc4]]Autres achats et charges externes[[cdrc5]]Redevances de crédit-bail mobilier[[cdrc6]]Redevances de crédit-bail immobilier[[cdrc7]]Impôts, taxes et versements assimilés[[cdrc8]]Salaires et traitements[[cdrc9]]Charges sociales[[cdrc10]]Dotation aux amortissements et aux dépréciations Sur immobilisations : dotations aux amortissements[[cdrc11]]Sur immobilisations : dotations aux dépréciations[[cdrc12]]Sur actif circulant : dotations aux dépréciations[[cdrc13]]Dotations aux provisions[[cdrc14]]Autres charges[[cdrc15]]TOTAL I[[ct1]]Quotes-parts de résultat sur opérations faites en commun ( II )[[cdrc16]]CHARGES FINANCIÈRES Dotations aux amortissements, aux dépréciations et aux provisions[[cdrc17]]Intérêts et charges assimilées[[cdrc18]]Différences négatives de change[[cdrc19]]Charges nettes sur cessions de valeurs mobilières de placement[[cdrc20]]TOTAL III[[ct3]]CHARGES EXCEPTIONNELLES Sur opérations de gestion[[cdrc21]]Sur opérations en capital[[cdrc22]]Dotations aux amortissements, aux dépréciations et aux provisions[[cdrc23]]TOTAL IV[[ct4]]Participation des salariés aux résultats ( V )[[cdrc24]]Impôts sur les bénéfices ( VI )[[cdrc25]]TOTAL CHARGES ( I + II + III + IV+ V+ VI )[[charges]] PRODUITS (hors taxes) PRODUITS D'EXPLOITATION Vente de marchandises[[cdrp1]]Production vendue [biens et services][[cdrp2]]Sous-total A - Montant net du chiffre d'affaires[[pta]]Production stockée[[cdrp3]]Production immobilisée[[cdrp4]]Subventions d'exploitation[[cdrp5]]Reprises sur provisions, dépréciations (et amortissements) et transferts de charges[[cdrp6]]Autres produits[[cdrp7]]Sous-total B[[ptb]]TOTAL I ( A + B )[[pt1]]Quotes-parts de résultat sur opérations faites en commun (II)[[cdrp8]]PRODUITS FINANCIERS De participation[[cdrp9]]D'autres valeurs mobilières et créances de l'actif immobilisé[[cdrp10]]Autres intérêts et produits assimilés[[cdrp11]]Reprises sur provisions, dépréciations et transferts de charges[[cdrp12]]Différences positives de change[[cdrp13]]Produits nets sur cessions de valeurs mobilières de placement[[cdrp14]]TOTAL III[[pt3]]PRODUITS EXCEPTIONNELS Sur opérations de gestion[[cdrp15]]Sur opérations en capital[[cdrp16]]Reprises sur provisions, dépréciations et transferts de charges[[cdrp17]]TOTAL IV[[pt4]]TOTAL DES PRODUITS ( I + II + III + IV )[[produits]]PRODUITS - CHARGES[[produits-charges]] diff --git a/addons/l10n_fr/wizard/fr_report_bilan.py b/addons/l10n_fr/wizard/fr_report_bilan.py index 9f9e4a933f1..cec2e513a6a 100644 --- a/addons/l10n_fr/wizard/fr_report_bilan.py +++ b/addons/l10n_fr/wizard/fr_report_bilan.py @@ -32,24 +32,25 @@ class account_bilan_report(osv.osv_memory): _name = 'account.bilan.report' _description = 'Account Bilan Report' - def _get_default_fiscalyear(self, cr, uid, context): + def _get_default_fiscalyear(self, cr, uid, context=None): fiscalyear_id = self.pool.get('account.fiscalyear').find(cr, uid) return fiscalyear_id _columns = { 'fiscalyear_id': fields.many2one('account.fiscalyear', 'Fiscal Year', required=True), - } + } + _defaults = { 'fiscalyear_id':_get_default_fiscalyear - } + } def print_bilan_report(self, cr, uid, ids, context=None): - active_ids = context.get('active_ids',[]) + active_ids = context.get('active_ids', []) data = {} data['form'] = {} data['ids'] = active_ids data['form']['fiscalyear'] = self.browse(cr, uid, ids)[0].fiscalyear_id.id - return {'type': 'ir.actions.report.xml', 'report_name': 'l10n.fr.bilan', 'datas': data } + return {'type': 'ir.actions.report.xml', 'report_name': 'l10n.fr.bilan', 'datas': data} account_bilan_report() diff --git a/addons/l10n_fr/wizard/fr_report_bilan_view.xml b/addons/l10n_fr/wizard/fr_report_bilan_view.xml index d70894122d4..e8615935b8c 100644 --- a/addons/l10n_fr/wizard/fr_report_bilan_view.xml +++ b/addons/l10n_fr/wizard/fr_report_bilan_view.xml @@ -1,12 +1,14 @@ + + Bilan Report account.bilan.report form -
+ @@ -36,5 +38,6 @@ action account.move.line + - + \ No newline at end of file diff --git a/addons/l10n_fr/wizard/fr_report_compute_resultant.py b/addons/l10n_fr/wizard/fr_report_compute_resultant.py index 24211b46cb7..d90466ea6c4 100644 --- a/addons/l10n_fr/wizard/fr_report_compute_resultant.py +++ b/addons/l10n_fr/wizard/fr_report_compute_resultant.py @@ -31,21 +31,21 @@ from osv import osv, fields class account_cdr_report(osv.osv_memory): _name = 'account.cdr.report' _description = 'Account CDR Report' - - def _get_defaults(self, cr, uid, context): - fiscalyear_obj = self.pool.get('account.fiscalyear') - fiscalyear_id = fiscalyear_obj.find(cr, uid) + + def _get_defaults(self, cr, uid, context=None): + fiscalyear_id = self.pool.get('account.fiscalyear').find(cr, uid) return fiscalyear_id - + _columns = { 'fiscalyear_id': fields.many2one('account.fiscalyear', 'Fiscal Year', required=True), - } + } + _defaults = { - 'fiscalyear_id': _get_defaults - } + 'fiscalyear_id': _get_defaults + } def print_cdr_report(self, cr, uid, ids, context=None): - active_ids = context.get('active_ids',[]) + active_ids = context.get('active_ids', []) data = {} data['form'] = {} data['ids'] = active_ids @@ -54,5 +54,4 @@ class account_cdr_report(osv.osv_memory): account_cdr_report() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/l10n_fr/wizard/fr_report_compute_resultant_view.xml b/addons/l10n_fr/wizard/fr_report_compute_resultant_view.xml index a81d1b1e3c7..f50ec1ef308 100644 --- a/addons/l10n_fr/wizard/fr_report_compute_resultant_view.xml +++ b/addons/l10n_fr/wizard/fr_report_compute_resultant_view.xml @@ -1,12 +1,13 @@ + Compte de resultat Report account.cdr.report form - + @@ -36,5 +37,6 @@ action account.move.line + - + \ No newline at end of file From 90d2842db3e66c7e497f8ce9a435bae260acfaa1 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Wed, 18 Aug 2010 10:58:54 +0530 Subject: [PATCH 02/23] [IMP] l10n_lu: Code improved bzr revid: mra@mra-laptop-20100818052854-j9k789yn5pgjhhge --- addons/l10n_lu/__openerp__.py | 1 + addons/l10n_lu/l10n_lu_data.xml | 7441 +++++++++++----------- addons/l10n_lu/wizard/print_vat.py | 20 +- addons/l10n_lu/wizard/print_vat_view.xml | 3 +- 4 files changed, 3737 insertions(+), 3728 deletions(-) diff --git a/addons/l10n_lu/__openerp__.py b/addons/l10n_lu/__openerp__.py index 4e289026c95..1745de85ba7 100644 --- a/addons/l10n_lu/__openerp__.py +++ b/addons/l10n_lu/__openerp__.py @@ -42,6 +42,7 @@ This module installs: ], 'demo_xml': ['account.report.report.csv'], 'installable': True, + 'active': False, 'certificate': '0078164766621', } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/l10n_lu/l10n_lu_data.xml b/addons/l10n_lu/l10n_lu_data.xml index fa7433d1397..940da2177e5 100644 --- a/addons/l10n_lu/l10n_lu_data.xml +++ b/addons/l10n_lu/l10n_lu_data.xml @@ -1,9 +1,12 @@ + + + View view @@ -53,3724 +56,3724 @@ - - 0 - Plan KLUWER - view - - - - - 1 - Fonds propres, prov. & dettes + d'1an - - - - view - - - 2 - Immobilis., dettes & créances à + d'1 an - - - - view - - - 3 - Stocks et commandes en cours d'exécution - - - - view - - - 4 - Créances et dettes à un an au plus - - - - view - - - 5 - Placements de trésorerie et disponible - - - - view - - - 6 - Charges - - - - view - - - 7 - Produits - - - - view - - - 10 - Capital - - - - view - - - 12 - Plus-values de réévaluation - - - - view - - - 13 - Réserves - - - - view - - - 14 - Résultat reporté - - - - view - - - 15 - Subsides en capital - - - - view - - - 16 - Provisions et impôts différés - - - - view - - - 17 - Dettes à plus d'un an - - - - view - - - 20 - Frais d'établissement - - - - view - - - 21 - Immobilisations incorporelles - - - - view - - - 22 - Terrains et constructions - - - - view - - - 23 - Installations, machines et outillages - - - - view - - - 24 - Mobilier et matériel roulant - - - - view - - - 25 - Immobilisation détenues en loc.-fin. - - - - view - - - 27 - Immobilis. corp. en cours & acptes versé - - - - view - - - 28 - Immobilisations financières - - - - view - - - 30 - Approvisionnements - matières premières - - - - view - - - 31 - Approvisionnements et fournitures - - - - view - - - 32 - En cours de fabrication - - - - view - - - 33 - Produits finis - - - - view - - - 34 - Marchandises - - - - view - - - 36 - Acomptes versés sur achats pour stocks - - - - view - - - 40 - Créances commerciales - - - - view - - - 41 - Autres créances à - d'un an - - - - view - - - 42 - Dettes à + d'1 an échéant dans l'année - - - - view - - - 43 - Dettes financières - - - - view - - - 44 - Dettes commerciales - - - - view - - - 45 - Dettes fiscales, salariales et sociales - - - - view - - - 47 - Dettes suite à l'affect. des résultats - - - - view - - - 48 - Dettes diverses - - - - view - - - 49 - Comptes de régularisation et cptes d'att - - - - view - - - 51 - Actions et parts - - - - view - - - 52 - Titres à revenu fixe - - - - view - - - 53 - Dépôts à terme - - - - view - - - 55 - Etablissements de crédit - - - - view - - - 56 - Ccp - - - - view - - - 57 - Caisses - - - - view - - - 60 - Approvisionnements et marchandises - - - - view - - - 61 - Services et biens divers - - - - view - - - 62 - Rémunérations, charges soc. et pensions - - - - view - - - 64 - Autres charges d'exploitation - - - - view - - - 65 - Charges financières - - - - view - - - 66 - Charges exceptionnelles - - - - view - - - 67 - Impôts sur le résultat - - - - view - - - 70 - Chiffre d'affaires - - - - view - - - 71 - Variation des stocks & comm. en cours - - - - view - - - 74 - Autres produits d'exploitation - - - - view - - - 75 - Produits financiers - - - - view - - - 77 - Régul. d'impôts & reprises prov. fisc. - - - - view - - - 140 - Bénéfice reporté - - - - view - - - 175 - Dettes commerciales - - - - view - - - 200 - Frais de constitution et d'augm. capital - - - - view - - - 201 - Frais d'augmentation de capital - - - - view - - - 202 - Fr.d'emission d'empr,prime remboursement - - - - view - - - 203 - Autres frais d'établissement - - - - view - - - 204 - Frais de restructuration - - - - view - - - 210 - Frais de recherche et de développement - - - - view - - - 211 - Concessions, brevets et licences - - - - view - - - 212 - Fonds de commerce - - - - view - - - 220 - Terrains - - - - view - - - 221 - Constructions - - - - view - - - 222 - Terrains bâtis - - - - view - - - 223 - Autres droits réels sur des immeubles - - - - view - - - 230 - Installations - - - - view - - - 231 - Machines - - - - view - - - 240 - Installation gen, agencements,.. - - - - view - - - 241 - Mobilier - - - - view - - - 242 - Matériel roulant - - - - view - - - 280 - Participation dans des entreprises liées - - - - view - - - 281 - Créances sur des entreprises liées - - - - view - - - 282 - Participations entr. avec lien particip. - - - - view - - - 283 - Créances / entrepr. avec lien particip. - - - - view - - - 290 - Créances commerciales - - - - view - - - 291 - Autres créances - - - - view - - - 411 - T.v.a en amont - - - - view - - - 425 - Dettes commerciales échéant ds l'année - - - - view - - - 451 - T.v.a. en aval - - - - view - - - 452 - Impôts et taxes à payer - - - - view - - - 512 - Actions & parts - options acquises - - - - view - - - 550 - Comptes courants bancaires - - - - view - - - 609 - Variation des stocks - - - - view - - - 610 - Loyers et charges locatives - - - - view - - - 612 - Fournitures faites à l'entreprise - - - - view - - - 613 - Rétributions de tiers - - - - view - - - 615 - publicités - - - - view - - - 620 - Rémunérations et avantages soc. directs - - - - view - - - 621 - Charges sociales - - - - view - - - 624 - Pensions - - - - - - 630 - Dotations aux corrections de val./immob. - - - - view - - - 631 - Dotations aux correct. de val./stocks - - - - view - - - 632 - Dot. cor. val s/en-cours,pr fini - - - - view - - - 633 - Dotations correct. val./cr. comm. +1an - - - - view - - - 634 - Dotations correct. val./cr. comm. -1an - - - - view - - - 635 - Provisions pour pensions et oblig. sim. - - - - view - - - 636 - Provisions pour grosses réparations - - - - view - - - 637 - Provisions pour autres risques & charges - - - - view - - - 640 - Taxes et impôts directs - - - - view - - - 651 - Réductions de valeur / actifs circulants - - - - view - - - 660 - Dotations aux corrections de val. except - - - - view - - - 661 - Dotations aux corrections de val./financ - - - - view - - - 662 - Provisions pour risques & charges except - - - - view - - - 750 - Produits des immob. financières - - - - view - - - 751 - Produits des actifs circulants - - - - view - - - 1750 - Fournisseurs - dettes en compte - - - - view - - - 1751 - Effets à payer - - - - view - - - 6120 - Eau, gaz, électricité, carburants - - - - view - - - 6123 - Téléphone, télégrammes, frais post. - - - - view - - - 100000 - Capital souscrit - - - - other - - - 101000 - Capital non appelé (-) - - - - other - - - 109000 - Compte de l'exploitant - - - - other - - - 110000 - Primes d'émission - - - - other - - - 120000 - Plus-values de rééval. sur immob. incorp - - - - other - - - 121000 - Plus-values de rééval. sur immob. corp. - - - - other - - - 122000 - Plus-values de rééval. sur immob. fin. - - - - other - - - 123000 - Plus-values de réévaluation sur stocks - - - - other - - - 124000 - Reprises de réd. de val./plac. de très. - - - - other - - - 130000 - Réserve légale - - - - other - - - 131000 - Réserves indisponibles - - - - other - - - 132000 - Réserves immunisées - - - - other - - - 133000 - Réserves disponibles - - - - other - - - 134000 - Autres reserves - - - - other - - - 140000 - Résultats reportés - - - - other - - - 140100 - Bénéfice de l'exercice - - - - other - - - 140200 - Perte de l'exercice - - - - other - - - 141000 - Perte reportée - - - - other - - - 150000 - Subsides en cap. - montants obtenus - - - - other - - - 151000 - Subsides-montants transf. aux résultats - - - - other - - - 160000 - Provisions pour pensions - - - - other - - - 161000 - Provisions pour charges fiscales - - - - other - - - 162000 - Provisions pr grosses rép. & gros entr. - - - - other - - - 163000 - Provisions pour rente viagère - - - - other - - - 164000 - Provisions pr sûretés pers. et réelles - - - - other - - - 165000 - Provisions diverses - - - - other - - - 165400 - Provisions pour autres risques & charges - - - - other - - - 166000 - Provisions pour charges de commandes - - - - other - - - 168000 - Impôts différés - - - - other - - - 169000 - Autres provisions - - - - other - - - 170000 - Emprunts convertibles - - - - other - - - 171000 - Emprunts obligataires non convertibles - - - - other - - - 172000 - Dettes de loc. - financ. et assimilées - - - - other - - - 173000 - Etablissements de crédit - - - - other - - - 174000 - Autres emprunts - - - - other - - - 175000 - Fournisseurs - entreprises apparentées - - - - other - - - 175010 - Dettes en cpte - fourniss. ordinaires - - - - other - - - 175100 - Effets à payer - entreprises apparentées - - - - other - - - 175110 - Effets à payer - fournisseurs ordinaires - - - - other - - - 176000 - Acomptes reçus sur commandes - - - - other - - - 177100 - Entreprises liées - - - - other - - - 177200 - Lien de participation - - - - other - - - 178000 - Cautionnements reçus en numéraire - - - - other - - - 179000 - Dettes diverses - - - - other - - - 180000 - Comptes de liaison établiss. & succurs. - - - - other - - - 200000 - Frais de constitution - - - - other - - - 200900 - Amort s/fr de constitution - - - - other - - - 201000 - Frais d'augmentation de capital - - - - other - - - 201900 - Amort s/fr d'augmentation du capital - - - - other - - - 202000 - Fr.d'emission d'empr,prime remboursement - - - - other - - - 202900 - Amort s/fr d'émission d'emprunts - - - - other - - - 203000 - Autres frais d'établissement - - - - other - - - 203900 - Amort s/autres fr d'établissement - - - - other - - - 204000 - Frais de restructuration - - - - other - - - 204900 - Amort s/fr de restructuration - - - - other - - - 210000 - Frais de recherche et développement - - - - other - - - 210900 - Amort. s/fr de recherche et développemen - - - - other - - - 211100 - Concessions, brevet à titre onéreux - - - - other - - - 211190 - Amort. s/concession, brevet acquis - - - - other - - - 211200 - Conc., brevets créés par l'entr. même - - - - other - - - 211290 - Amort. s/concession, brevets créés - - - - other - - - 212000 - Fonds de commerce - - - - other - - - 212900 - Amort s/fonds de commerce - - - - other - - - 213000 - Acomptes versés s/immob. incorp - - - - other - - - 214000 - Surprix afférent à l'acquisit. d'1 part. - - - - other - - - 220000 - Terrains - - - - other - - - 220800 - Plus-values actées sur terrains - - - - other - - - 220900 - Réduction de valeur sur terrains - - - - other - - - 221800 - Plus-values actées sur constructions - - - - other - - - 221900 - Amort. sur constructions - - - - other - - - 222800 - Plus-values actées s/terrains bâtis - - - - other - - - 222900 - Amort. sur terrains bâtis - - - - other - - - 223800 - +values actées s/autres droits - - - - other - - - 223900 - Amort s/autres droits réels - - - - other - - - 230000 - Installations techniques - - - - other - - - 230900 - Amort s/installations techniques - - - - other - - - 231000 - Machines - - - - other - - - 231900 - Amortissement s/machines - - - - other - - - 232000 - Outillage - - - - other - - - 233000 - Pièces de rechange - - - - other - - - 238000 - Plus-values actées sur i./m./o. - - - - other - - - 239000 - Amortissements sur i./m./o. - - - - other - - - 240000 - Installation gen, agencements,.. - - - - other - - - 240900 - Amort s/autres installations,outillage - - - - other - - - 241000 - Mobilier - - - - other - - - 241900 - Amort. sur mobilier - - - - other - - - 242000 - Matériel roulant - - - - other - - - 242900 - Amort. s/matériel roulant - - - - other - - - 243000 - Matériel de bureau - - - - other - - - 243900 - Amort. s/matériel de bureau - - - - other - - - 250000 - Terrains et constructions en loc.-fin. - - - - other - - - 251000 - Install., machines & out. en loc.-fin. - - - - other - - - 252000 - Mobilier et mat. roulant en loc.-fin. - - - - other - - - 260000 - Autres immobilisations corporelles - - - - other - - - 270000 - Immobilisations en cours - - - - other - - - 271000 - Avances & acptes versés / immob.en cours - - - - other - - - 280000 - Parts dans des entreprises liées - - - - other - - - 280100 - Montants non appelés - - - - other - - - 280800 - +values actées s/parts entreprises liées - - - - other - - - 280900 - Réduction de valeur s/parts - - - - other - - - 281000 - Créances s/des entreprises liées - - - - other - - - 281100 - Effets à recevoir - - - - other - - - 281700 - Créances douteuses (entreprises liées) - - - - other - - - 281900 - Réduction de valeur s/cré. entre. liées - - - - other - - - 282000 - Participations - - - - other - - - 282100 - Montants non appelés - - - - other - - - 282800 - +values actées s/participations - - - - other - - - 282900 - Réduction de valeur s/participations - - - - other - - - 283000 - Créances s/entrepr. lien de particip. - - - - other - - - 283100 - Effets à recevoir - - - - other - - - 283200 - Titres à revenu fixe - - - - other - - - 283700 - Créances douteuses (s/participations) - - - - other - - - 283900 - Réductions de valeur s/cr particip. - - - - other - - - 284000 - Titres à caractère d'immobilisation - - - - other - - - 285000 - Autres prêts - - - - other - - - 286000 - Actions ou parts propres - - - - other - - - 288000 - Cautionnements versés en numéraire - - - - other - - - 290000 - Créances commerciales - - - - other - - - 290100 - Effets à recevoir - - - - other - - - 290600 - Acomptes versés - - - - other - - - 290700 - Créances douteuses s/cr commerciales - - - - other - - - 290900 - Réduction de valeur s/cr commerciales - - - - other - - - 291000 - Autres créances - - - - other - - - 291100 - Effets à recevoir - - - - other - - - 291700 - Créances douteuses s/autres créances - - - - other - - - 291900 - Réduction de valeur s/autres créances - - - - other - - - 300000 - Stocks matières premières val. d'acquis. - - - - other - - - 309000 - Réduction de valeur s/mat. premières - - - - other - - - 310000 - Matières consommables - - - - other - - - 310600 - Emballages commerciaux - - - - other - - - 319000 - Réd. de val. - stocks fournitures (-) - - - - other - - - 320000 - En cours de fabrication - val. d'acquis. - - - - other - - - 329000 - Réductions de valeur / en cours (-) - - - - other - - - 330000 - Valeur d'acquisition des produits finis - - - - other - - - 339000 - Réduction de val. / produits finis (-) - - - - other - - - 340000 - Stocks marchandises - valeur d'acquis. - - - - other - - - 349000 - Réd. de val. / stocks marchandises (-) - - - - other - - - 360000 - Acomptes versés / achats pour stocks - - - - other - - - 369000 - Réd. de val. / acptes versés stocks (-) - - - - other - - - 400000 - Clients - - - - other - - - 401000 - Effets à recevoir - clients - - True - - - receivable - - - - 403000 - Créances s/entreprises apparentées - - - - receivable - - - 404000 - Produits à recevoir (factures à établir) - - - - other - - - 406000 - Acomptes versés aux fournisseurs - - - - payable - - - 407000 - Créances commerciales douteuses - - - - other - - - 408000 - Ecarts de conversion de devises/créances - - - - other - - - 409000 - Réductions de valeur / créances comm. - - - - other - - - 410000 - Capital appelé, non versé - - - - other - - - 411000 - T.v.a en amont - - True - - other - - - 411100 - T.v.a soumise à l'origine amont - - - - other - - - 411500 - Compte courant tva - - - - other - - - 412000 - Impots et vers. fiscaux à récupérer - - - - other - - - 413100 - Autres créances sur entrepr. liées - - - - other - - - 413200 - Autres créances / entrepr. apparentées - - - - other - - - 414000 - Produits à recevoir (non commerciaux) - - - - other - - - 416000 - Créances diverses - - - - other - - - 417000 - Créances douteuses - - - - other - - - 418000 - Cautionnements versés en numéraire - - - - other - - - 419000 - Réductions de val. / autres créances (-) - - - - other - - - 420000 - Emprunts obligataires convert. - - - - other - - - 421000 - Emprunts oblig. non convertibles - - - - other - - - 422000 - Dettes de location-financ. et assimilées - - - - other - - - 423000 - Etablissements de crédit - - - - other - - - 424000 - Autres emprunts - - - - other - - - 425000 - Fournisseurs - - - - other - - - 425100 - Effets à payer - - - - other - - - 426000 - Acomptes reçus / commandes éch. ds l'an - - - - other - - - 427100 - Entreprises liées - - - - other - - - 427200 - Lien de participation - - - - other - - - 428000 - Cautionnements reçus en numéraire - - - - other - - - 429000 - Dettes diverses échéant dans l'année - - - - other - - - 430000 - Banques-emprunts en compte à terme fixe - - - - other - - - 431000 - Banques-promesses - - - - other - - - 432000 - Banques-crédit d'acceptation - - - - other - - - 433000 - Banques-dettes en compte courant - - - - other - - - 438000 - Autres emprunts - - - - other - - - 440000 - Fournisseurs - - - - other - - - 441000 - Effets à payer - - True - - - other - - - 442000 - Factures à recevoir - - True - - - other - - - 443100 - Entreprises liées - - - - other - - - 443200 - Lien de participation - - - - other - - - 450000 - Dettes fiscales estimées - - - - other - - - 451000 - T.v.a en aval - - True - - - other - - - 451100 - T.v.a soumise à l'origine aval - - True - - - other - - - 451200 - T.v.a intracom - - True - - - other - - - 451500 - Compte courant tva - - - - other - - - 452000 - Impôts et taxes à payer à l'état - - - - other - - - 452100 - Impôts et taxes à payer aux adm commun - - - - other - - - 453000 - Retenues s/salaires - - - - other - - - 454000 - Cass (centre..de sécurite soc) - - - - other - - - 455000 - Personnel-rémuneration à payer - - - - other - - - 456000 - Personnel-avances et acomptes - - - - other - - - 458000 - Autres dettes sociales - - - - other - - - 460000 - Acomptes reçus sur commandes - - - - other - - - 470000 - Dividendes-tantièmes d'ex. ant. à payer - - - - other - - - 471000 - Dividendes de l'exercice à payer - - - - other - - - 472000 - Tantièmes de l'exercice à payer - - - - other - - - 473000 - Autres allocataires à payer - - - - other - - - 480000 - Obligations et coupons échus (dettes) - - - - other - - - 487000 - Cautionnements reçus en numeraire - - - - other - - - 488000 - Autres dettes diverses - - - - other - - - 490000 - Charges à reporter (payées d'avance) - - - - other - - - 491000 - Produits acquis - - - - other - - - 492000 - Charges à imputer - - - - other - - - 493000 - Produits à reporter - - - - other - - - 499000 - Comptes d'attente - - - - other - - - 499800 - Solde équilibre en devises (hors pc) - - - - other - - - 500000 - Actions propres - - - - other - - - 510000 - Actions et parts - - - - other - - - 510100 - Montant non appelé s/action.part - - - - other - - - 510900 - Réduction valeur s/action et parts - - - - other - - - 512000 - Parts dans entreprises liées - - - - other - - - 512100 - Montant non appelé s/parts - - - - other - - - 512900 - Réduction valeur s/part ent. liées - - - - other - - - 520000 - Titres à rev. fixes - valeur d'acquis. - - - - other - - - 529000 - Titres à rev. fixes - réd. de val. - - - - other - - - 530000 - Dépôts à terme - - - - other - - - 539000 - Réductions de valeur / dépôts à terme - - - - other - - - 540000 - Valeurs échues à l'encaissement - - - - other - - - 541000 - Coupons à encaisser - - - - other - - - 550000 - Ets de crédit-compte à vue - - - - other - - - 550100 - Chèques et virements émis - - - - other - - - 550900 - Réduction valeur s/cpte a vue - - - - other - - - 560000 - Ccp - compte courant - - - - other - - - 561000 - Ccp - chèques émis - - - - other - - - 570000 - Caisses - - - - other - - - 570900 - Réduction valeur s/caisse - - - - other - - - 580000 - Virements internes - - True - - - other - - - 600000 - Achats de matières premières - - - - other - - - 601000 - Achats de fournitures - - - - other - - - 602000 - Achats de services, travaux et études - - - - other - - - 603000 - Achats de sous-traitances générales - - - - other - - - 604000 - Achats de marchandises - - - - other - - - 607000 - Achats produits et demi-produits - - - - other - - - 608000 - Remises, ristournes et rabais sur achats - - - - other - - - 609000 - Variation de stock mat. premières - - - - other - - - 609100 - Variation stock mat. consommables - - - - other - - - 609400 - Variation stock marchandises - - - - other - - - 610000 - Loyers et charges locatives - - - - other - - - 610100 - Redevances de crédit bail - - - - other - - - 611000 - Entretiens et réparations des locaux - - - - other - - - 612000 - Consommation - eau - - - - other - - - 612010 - Consommation - gaz - - - - other - - - 612020 - Consommation - électricité - - - - other - - - 612030 - Consommation - carburants - - - - other - - - 612040 - Consommation - mazout - - - - other - - - 612100 - Documentation - - - - other - - - 612200 - Imprimés et fournitures de bureau - - - - other - - - 612300 - Téléphone - - - - other - - - 612310 - Frais postaux - - - - other - - - 612320 - Fax - - - - other - - - 613000 - Redevances et royalties - - - - other - - - 613100 - Honoraires - - - - other - - - 613200 - Organismes de services - - - - other - - - 613300 - Commissions - - - - other - - - 614000 - Assurance incendie - - - - other - - - 615000 - Annonces, publicité - - - - other - - - 615100 - Cotisations et abonnements - - - - other - - - 615200 - Dons et libéralités - - - - other - - - 615300 - Publications légales - - - - other - - - 616000 - Sous-traitants - - - - other - - - 616100 - Transports par tiers - - - - other - - - 620000 - Rémunératons administrat. ou gérants - - - - other - - - 620100 - Rémunérations personnel de direction - - - - other - - - 620200 - Rémunérations employés - - - - other - - - 620300 - Rémunérations ouvriers - - - - other - - - 621000 - Chg.soc.lég.administ.et gérant - - - - other - - - 621100 - Chg.soc.lég. personnel de direction - - - - other - - - 621200 - Chg.soc.lég. employés - - - - other - - - 621300 - Chg.soc.lég. ouvriers - - - - other - - - 621400 - Assurance accidents - - - - other - - - 622000 - Primes patr. pour ass. extra - légales - - - - other - - - 623000 - Autres frais de personnel - - - - other - - - 624000 - Pension administrat. ou gérant - - - - other - - - 624100 - Pension personnel - - - - other - - - 630000 - Dot. cor. val s/frais d'établissement - - - - other - - - 630100 - Dot. cor. val s/immob. incorporels - - - - other - - - 630200 - Dot. cor. val s/immob. corporels - - - - other - - - 631000 - Dot. cor. val s/stock mat.fourni - - - - other - - - 631100 - Reprises cor. val. s/stock mat. fourni - - - - other - - - 632000 - Dot. cor. val s/en-cours,pr fini - - - - other - - - 632100 - Reprises cor. val s/en-cours,pf - - - - other - - - 633000 - Dot. cor. val s/cr comm +1an - - - - other - - - 633100 - Reprises cor. val s/cr com +1an - - - - other - - - 634000 - Dot. cor. val. s/cr comm -1an - - - - other - - - 634100 - Reprises cor. val.s/cr com -1an - - - - other - - - 635000 - Dot. prov. pension et oblig. sim. - - - - other - - - 635100 - Reprises prov. s/pens.obli. sim. - - - - other - - - 636000 - Dot. prov-grosses réparation - - - - other - - - 636100 - Reprises prov. grosses réparation - - - - other - - - 637000 - Dot. prov-autres risques et chg - - - - other - - - 637100 - Reprises prov autres risq,chg - - - - other - - - 640000 - Taxe d'abonnement - - - - other - - - 640100 - Impôt foncier - - - - other - - - 640200 - Impôt commercial s/le capital - - - - other - - - 640300 - Impôt s/la fortune - - - - other - - - 641000 - Moins-val. sur réalis. d'immob. corp. - - - - other - - - 642000 - Moins-val. / réalis. de créances comm. - - - - other - - - 643000 - Charges d'exploitation diverses - - - - other - - - 650000 - Intérêts, commissions et frais / dettes - - - - other - - - 651000 - Dot. cor. val s/actif circ - - - - other - - - 651100 - Reprises cor. val s/actif circulants - - - - other - - - 652000 - Moins-values sur réalis. d'actifs circ. - - - - other - - - 653000 - Charges d'escompte de créances - - - - other - - - 654000 - Différences de change - - - - other - - - 655000 - Ecarts de conversion des devises - - - - other - - - 656000 - Frais de banque - - - - other - - - 660000 - Dot. cor. val exceptionnelles - - - - other - - - 660100 - Reprises cor. val. excep - - - - other - - - 661000 - Dot. cor. val s/immob. financières - - - - other - - - 661100 - Reprises cor val s/immob. fin. - - - - other - - - 662000 - Dot. prov-risques et chg except. - - - - other - - - 662100 - Reprises prov risq,chg except. - - - - other - - - 663000 - Moins-values sur réalis. d'actifs immob. - - - - other - - - 665000 - Différences de change exceptionnelles - - - - other - - - 668000 - Autres charges exceptionnelles - - - - other - - - 670000 - Impôts luxemb sur le résultat de l'ex. - - - - other - - - 671000 - Impôts luxemb /résultat d'ex. antérieurs - - - - other - - - 672000 - Impôts étrangers sur le résultat de l'ex - - - - other - - - 673000 - Impôts étrgs/résultat d'ex. antérieurs - - - - other - - - 674000 - Impôts sur résultats exceptionnels - - - - other - - - 680000 - Transfert aux réserves immunisées - - - - other - - - 700000 - Ventes et prestations de services - - - - payable - - - 708000 - R.r.r accordés sur ventes - - - - payable - - - 712000 - Variation de stocks des encours de fabr. - - - - payable - - - 713000 - Variation de stocks des produits finis - - - - payable - - - 720000 - Travaux effect. par entreprise elle-même - - - - payable - - - 740000 - Subsides d'exploitation - - - - payable - - - 741000 - Plus-values sur réal. d'immob. corp. - - - - payable - - - 742000 - Plus-values sur réalis. créances comm. - - - - payable - - - 743000 - Récupération de frais de personnel - - - - payable - - - 744000 - Commissions et courtages - - - - payable - - - 745000 - Redevances pour brevets et licences - - - - payable - - - 746000 - Loyers perçus - - - - payable - - - 748000 - Produits d'exploitation divers. - - - - payable - - - 750000 - Produits des participations - - - - payable - - - 750100 - Autres produits des immob. financières - - - - payable - - - 751000 - Produits des valeurs mobilières - - - - payable - - - 751100 - Autres produits des actifs circulants - - - - payable - - - 752000 - Plus-values sur réalis. d'actifs circula - - - - payable - - - 753000 - Subsides en capital et en intérêts - - - - payable - - - 754000 - Différences de change - - - - payable - - - 754100 - Amendes pour retards de paiement - - - - payable - - - 754200 - Intérêts retards de paiement - - - - payable - - - 755000 - Ecarts de conversion de devises - - - - payable - - - 756000 - Autres produits financiers - - - - payable - - - 757000 - Escomptes obtenus - - - - payable - - - 763000 - Plus-values sur réalis. d'actifs immob. - - - - payable - - - 771000 - Régularis. d'impôts luxemb sur résultat - - - - payable - - - 773000 - Régularis. d'impôts étrangers / résultat - - - - payable - + + 0 + Plan KLUWER + view + + + + + 1 + Fonds propres, prov. & dettes + d'1an + + + + view + + + 2 + Immobilis., dettes & créances à + d'1 an + + + + view + + + 3 + Stocks et commandes en cours d'exécution + + + + view + + + 4 + Créances et dettes à un an au plus + + + + view + + + 5 + Placements de trésorerie et disponible + + + + view + + + 6 + Charges + + + + view + + + 7 + Produits + + + + view + + + 10 + Capital + + + + view + + + 12 + Plus-values de réévaluation + + + + view + + + 13 + Réserves + + + + view + + + 14 + Résultat reporté + + + + view + + + 15 + Subsides en capital + + + + view + + + 16 + Provisions et impôts différés + + + + view + + + 17 + Dettes à plus d'un an + + + + view + + + 20 + Frais d'établissement + + + + view + + + 21 + Immobilisations incorporelles + + + + view + + + 22 + Terrains et constructions + + + + view + + + 23 + Installations, machines et outillages + + + + view + + + 24 + Mobilier et matériel roulant + + + + view + + + 25 + Immobilisation détenues en loc.-fin. + + + + view + + + 27 + Immobilis. corp. en cours & acptes versé + + + + view + + + 28 + Immobilisations financières + + + + view + + + 30 + Approvisionnements - matières premières + + + + view + + + 31 + Approvisionnements et fournitures + + + + view + + + 32 + En cours de fabrication + + + + view + + + 33 + Produits finis + + + + view + + + 34 + Marchandises + + + + view + + + 36 + Acomptes versés sur achats pour stocks + + + + view + + + 40 + Créances commerciales + + + + view + + + 41 + Autres créances à - d'un an + + + + view + + + 42 + Dettes à + d'1 an échéant dans l'année + + + + view + + + 43 + Dettes financières + + + + view + + + 44 + Dettes commerciales + + + + view + + + 45 + Dettes fiscales, salariales et sociales + + + + view + + + 47 + Dettes suite à l'affect. des résultats + + + + view + + + 48 + Dettes diverses + + + + view + + + 49 + Comptes de régularisation et cptes d'att + + + + view + + + 51 + Actions et parts + + + + view + + + 52 + Titres à revenu fixe + + + + view + + + 53 + Dépôts à terme + + + + view + + + 55 + Etablissements de crédit + + + + view + + + 56 + Ccp + + + + view + + + 57 + Caisses + + + + view + + + 60 + Approvisionnements et marchandises + + + + view + + + 61 + Services et biens divers + + + + view + + + 62 + Rémunérations, charges soc. et pensions + + + + view + + + 64 + Autres charges d'exploitation + + + + view + + + 65 + Charges financières + + + + view + + + 66 + Charges exceptionnelles + + + + view + + + 67 + Impôts sur le résultat + + + + view + + + 70 + Chiffre d'affaires + + + + view + + + 71 + Variation des stocks & comm. en cours + + + + view + + + 74 + Autres produits d'exploitation + + + + view + + + 75 + Produits financiers + + + + view + + + 77 + Régul. d'impôts & reprises prov. fisc. + + + + view + + + 140 + Bénéfice reporté + + + + view + + + 175 + Dettes commerciales + + + + view + + + 200 + Frais de constitution et d'augm. capital + + + + view + + + 201 + Frais d'augmentation de capital + + + + view + + + 202 + Fr.d'emission d'empr,prime remboursement + + + + view + + + 203 + Autres frais d'établissement + + + + view + + + 204 + Frais de restructuration + + + + view + + + 210 + Frais de recherche et de développement + + + + view + + + 211 + Concessions, brevets et licences + + + + view + + + 212 + Fonds de commerce + + + + view + + + 220 + Terrains + + + + view + + + 221 + Constructions + + + + view + + + 222 + Terrains bâtis + + + + view + + + 223 + Autres droits réels sur des immeubles + + + + view + + + 230 + Installations + + + + view + + + 231 + Machines + + + + view + + + 240 + Installation gen, agencements,.. + + + + view + + + 241 + Mobilier + + + + view + + + 242 + Matériel roulant + + + + view + + + 280 + Participation dans des entreprises liées + + + + view + + + 281 + Créances sur des entreprises liées + + + + view + + + 282 + Participations entr. avec lien particip. + + + + view + + + 283 + Créances / entrepr. avec lien particip. + + + + view + + + 290 + Créances commerciales + + + + view + + + 291 + Autres créances + + + + view + + + 411 + T.v.a en amont + + + + view + + + 425 + Dettes commerciales échéant ds l'année + + + + view + + + 451 + T.v.a. en aval + + + + view + + + 452 + Impôts et taxes à payer + + + + view + + + 512 + Actions & parts - options acquises + + + + view + + + 550 + Comptes courants bancaires + + + + view + + + 609 + Variation des stocks + + + + view + + + 610 + Loyers et charges locatives + + + + view + + + 612 + Fournitures faites à l'entreprise + + + + view + + + 613 + Rétributions de tiers + + + + view + + + 615 + publicités + + + + view + + + 620 + Rémunérations et avantages soc. directs + + + + view + + + 621 + Charges sociales + + + + view + + + 624 + Pensions + + + + + + 630 + Dotations aux corrections de val./immob. + + + + view + + + 631 + Dotations aux correct. de val./stocks + + + + view + + + 632 + Dot. cor. val s/en-cours,pr fini + + + + view + + + 633 + Dotations correct. val./cr. comm. +1an + + + + view + + + 634 + Dotations correct. val./cr. comm. -1an + + + + view + + + 635 + Provisions pour pensions et oblig. sim. + + + + view + + + 636 + Provisions pour grosses réparations + + + + view + + + 637 + Provisions pour autres risques & charges + + + + view + + + 640 + Taxes et impôts directs + + + + view + + + 651 + Réductions de valeur / actifs circulants + + + + view + + + 660 + Dotations aux corrections de val. except + + + + view + + + 661 + Dotations aux corrections de val./financ + + + + view + + + 662 + Provisions pour risques & charges except + + + + view + + + 750 + Produits des immob. financières + + + + view + + + 751 + Produits des actifs circulants + + + + view + + + 1750 + Fournisseurs - dettes en compte + + + + view + + + 1751 + Effets à payer + + + + view + + + 6120 + Eau, gaz, électricité, carburants + + + + view + + + 6123 + Téléphone, télégrammes, frais post. + + + + view + + + 100000 + Capital souscrit + + + + other + + + 101000 + Capital non appelé (-) + + + + other + + + 109000 + Compte de l'exploitant + + + + other + + + 110000 + Primes d'émission + + + + other + + + 120000 + Plus-values de rééval. sur immob. incorp + + + + other + + + 121000 + Plus-values de rééval. sur immob. corp. + + + + other + + + 122000 + Plus-values de rééval. sur immob. fin. + + + + other + + + 123000 + Plus-values de réévaluation sur stocks + + + + other + + + 124000 + Reprises de réd. de val./plac. de très. + + + + other + + + 130000 + Réserve légale + + + + other + + + 131000 + Réserves indisponibles + + + + other + + + 132000 + Réserves immunisées + + + + other + + + 133000 + Réserves disponibles + + + + other + + + 134000 + Autres reserves + + + + other + + + 140000 + Résultats reportés + + + + other + + + 140100 + Bénéfice de l'exercice + + + + other + + + 140200 + Perte de l'exercice + + + + other + + + 141000 + Perte reportée + + + + other + + + 150000 + Subsides en cap. - montants obtenus + + + + other + + + 151000 + Subsides-montants transf. aux résultats + + + + other + + + 160000 + Provisions pour pensions + + + + other + + + 161000 + Provisions pour charges fiscales + + + + other + + + 162000 + Provisions pr grosses rép. & gros entr. + + + + other + + + 163000 + Provisions pour rente viagère + + + + other + + + 164000 + Provisions pr sûretés pers. et réelles + + + + other + + + 165000 + Provisions diverses + + + + other + + + 165400 + Provisions pour autres risques & charges + + + + other + + + 166000 + Provisions pour charges de commandes + + + + other + + + 168000 + Impôts différés + + + + other + + + 169000 + Autres provisions + + + + other + + + 170000 + Emprunts convertibles + + + + other + + + 171000 + Emprunts obligataires non convertibles + + + + other + + + 172000 + Dettes de loc. - financ. et assimilées + + + + other + + + 173000 + Etablissements de crédit + + + + other + + + 174000 + Autres emprunts + + + + other + + + 175000 + Fournisseurs - entreprises apparentées + + + + other + + + 175010 + Dettes en cpte - fourniss. ordinaires + + + + other + + + 175100 + Effets à payer - entreprises apparentées + + + + other + + + 175110 + Effets à payer - fournisseurs ordinaires + + + + other + + + 176000 + Acomptes reçus sur commandes + + + + other + + + 177100 + Entreprises liées + + + + other + + + 177200 + Lien de participation + + + + other + + + 178000 + Cautionnements reçus en numéraire + + + + other + + + 179000 + Dettes diverses + + + + other + + + 180000 + Comptes de liaison établiss. & succurs. + + + + other + + + 200000 + Frais de constitution + + + + other + + + 200900 + Amort s/fr de constitution + + + + other + + + 201000 + Frais d'augmentation de capital + + + + other + + + 201900 + Amort s/fr d'augmentation du capital + + + + other + + + 202000 + Fr.d'emission d'empr,prime remboursement + + + + other + + + 202900 + Amort s/fr d'émission d'emprunts + + + + other + + + 203000 + Autres frais d'établissement + + + + other + + + 203900 + Amort s/autres fr d'établissement + + + + other + + + 204000 + Frais de restructuration + + + + other + + + 204900 + Amort s/fr de restructuration + + + + other + + + 210000 + Frais de recherche et développement + + + + other + + + 210900 + Amort. s/fr de recherche et développemen + + + + other + + + 211100 + Concessions, brevet à titre onéreux + + + + other + + + 211190 + Amort. s/concession, brevet acquis + + + + other + + + 211200 + Conc., brevets créés par l'entr. même + + + + other + + + 211290 + Amort. s/concession, brevets créés + + + + other + + + 212000 + Fonds de commerce + + + + other + + + 212900 + Amort s/fonds de commerce + + + + other + + + 213000 + Acomptes versés s/immob. incorp + + + + other + + + 214000 + Surprix afférent à l'acquisit. d'1 part. + + + + other + + + 220000 + Terrains + + + + other + + + 220800 + Plus-values actées sur terrains + + + + other + + + 220900 + Réduction de valeur sur terrains + + + + other + + + 221800 + Plus-values actées sur constructions + + + + other + + + 221900 + Amort. sur constructions + + + + other + + + 222800 + Plus-values actées s/terrains bâtis + + + + other + + + 222900 + Amort. sur terrains bâtis + + + + other + + + 223800 + +values actées s/autres droits + + + + other + + + 223900 + Amort s/autres droits réels + + + + other + + + 230000 + Installations techniques + + + + other + + + 230900 + Amort s/installations techniques + + + + other + + + 231000 + Machines + + + + other + + + 231900 + Amortissement s/machines + + + + other + + + 232000 + Outillage + + + + other + + + 233000 + Pièces de rechange + + + + other + + + 238000 + Plus-values actées sur i./m./o. + + + + other + + + 239000 + Amortissements sur i./m./o. + + + + other + + + 240000 + Installation gen, agencements,.. + + + + other + + + 240900 + Amort s/autres installations,outillage + + + + other + + + 241000 + Mobilier + + + + other + + + 241900 + Amort. sur mobilier + + + + other + + + 242000 + Matériel roulant + + + + other + + + 242900 + Amort. s/matériel roulant + + + + other + + + 243000 + Matériel de bureau + + + + other + + + 243900 + Amort. s/matériel de bureau + + + + other + + + 250000 + Terrains et constructions en loc.-fin. + + + + other + + + 251000 + Install., machines & out. en loc.-fin. + + + + other + + + 252000 + Mobilier et mat. roulant en loc.-fin. + + + + other + + + 260000 + Autres immobilisations corporelles + + + + other + + + 270000 + Immobilisations en cours + + + + other + + + 271000 + Avances & acptes versés / immob.en cours + + + + other + + + 280000 + Parts dans des entreprises liées + + + + other + + + 280100 + Montants non appelés + + + + other + + + 280800 + +values actées s/parts entreprises liées + + + + other + + + 280900 + Réduction de valeur s/parts + + + + other + + + 281000 + Créances s/des entreprises liées + + + + other + + + 281100 + Effets à recevoir + + + + other + + + 281700 + Créances douteuses (entreprises liées) + + + + other + + + 281900 + Réduction de valeur s/cré. entre. liées + + + + other + + + 282000 + Participations + + + + other + + + 282100 + Montants non appelés + + + + other + + + 282800 + +values actées s/participations + + + + other + + + 282900 + Réduction de valeur s/participations + + + + other + + + 283000 + Créances s/entrepr. lien de particip. + + + + other + + + 283100 + Effets à recevoir + + + + other + + + 283200 + Titres à revenu fixe + + + + other + + + 283700 + Créances douteuses (s/participations) + + + + other + + + 283900 + Réductions de valeur s/cr particip. + + + + other + + + 284000 + Titres à caractère d'immobilisation + + + + other + + + 285000 + Autres prêts + + + + other + + + 286000 + Actions ou parts propres + + + + other + + + 288000 + Cautionnements versés en numéraire + + + + other + + + 290000 + Créances commerciales + + + + other + + + 290100 + Effets à recevoir + + + + other + + + 290600 + Acomptes versés + + + + other + + + 290700 + Créances douteuses s/cr commerciales + + + + other + + + 290900 + Réduction de valeur s/cr commerciales + + + + other + + + 291000 + Autres créances + + + + other + + + 291100 + Effets à recevoir + + + + other + + + 291700 + Créances douteuses s/autres créances + + + + other + + + 291900 + Réduction de valeur s/autres créances + + + + other + + + 300000 + Stocks matières premières val. d'acquis. + + + + other + + + 309000 + Réduction de valeur s/mat. premières + + + + other + + + 310000 + Matières consommables + + + + other + + + 310600 + Emballages commerciaux + + + + other + + + 319000 + Réd. de val. - stocks fournitures (-) + + + + other + + + 320000 + En cours de fabrication - val. d'acquis. + + + + other + + + 329000 + Réductions de valeur / en cours (-) + + + + other + + + 330000 + Valeur d'acquisition des produits finis + + + + other + + + 339000 + Réduction de val. / produits finis (-) + + + + other + + + 340000 + Stocks marchandises - valeur d'acquis. + + + + other + + + 349000 + Réd. de val. / stocks marchandises (-) + + + + other + + + 360000 + Acomptes versés / achats pour stocks + + + + other + + + 369000 + Réd. de val. / acptes versés stocks (-) + + + + other + + + 400000 + Clients + + + + other + + + 401000 + Effets à recevoir - clients + + True + + + receivable + + + + 403000 + Créances s/entreprises apparentées + + + + receivable + + + 404000 + Produits à recevoir (factures à établir) + + + + other + + + 406000 + Acomptes versés aux fournisseurs + + + + payable + + + 407000 + Créances commerciales douteuses + + + + other + + + 408000 + Ecarts de conversion de devises/créances + + + + other + + + 409000 + Réductions de valeur / créances comm. + + + + other + + + 410000 + Capital appelé, non versé + + + + other + + + 411000 + T.v.a en amont + + True + + other + + + 411100 + T.v.a soumise à l'origine amont + + + + other + + + 411500 + Compte courant tva + + + + other + + + 412000 + Impots et vers. fiscaux à récupérer + + + + other + + + 413100 + Autres créances sur entrepr. liées + + + + other + + + 413200 + Autres créances / entrepr. apparentées + + + + other + + + 414000 + Produits à recevoir (non commerciaux) + + + + other + + + 416000 + Créances diverses + + + + other + + + 417000 + Créances douteuses + + + + other + + + 418000 + Cautionnements versés en numéraire + + + + other + + + 419000 + Réductions de val. / autres créances (-) + + + + other + + + 420000 + Emprunts obligataires convert. + + + + other + + + 421000 + Emprunts oblig. non convertibles + + + + other + + + 422000 + Dettes de location-financ. et assimilées + + + + other + + + 423000 + Etablissements de crédit + + + + other + + + 424000 + Autres emprunts + + + + other + + + 425000 + Fournisseurs + + + + other + + + 425100 + Effets à payer + + + + other + + + 426000 + Acomptes reçus / commandes éch. ds l'an + + + + other + + + 427100 + Entreprises liées + + + + other + + + 427200 + Lien de participation + + + + other + + + 428000 + Cautionnements reçus en numéraire + + + + other + + + 429000 + Dettes diverses échéant dans l'année + + + + other + + + 430000 + Banques-emprunts en compte à terme fixe + + + + other + + + 431000 + Banques-promesses + + + + other + + + 432000 + Banques-crédit d'acceptation + + + + other + + + 433000 + Banques-dettes en compte courant + + + + other + + + 438000 + Autres emprunts + + + + other + + + 440000 + Fournisseurs + + + + other + + + 441000 + Effets à payer + + True + + + other + + + 442000 + Factures à recevoir + + True + + + other + + + 443100 + Entreprises liées + + + + other + + + 443200 + Lien de participation + + + + other + + + 450000 + Dettes fiscales estimées + + + + other + + + 451000 + T.v.a en aval + + True + + + other + + + 451100 + T.v.a soumise à l'origine aval + + True + + + other + + + 451200 + T.v.a intracom + + True + + + other + + + 451500 + Compte courant tva + + + + other + + + 452000 + Impôts et taxes à payer à l'état + + + + other + + + 452100 + Impôts et taxes à payer aux adm commun + + + + other + + + 453000 + Retenues s/salaires + + + + other + + + 454000 + Cass (centre..de sécurite soc) + + + + other + + + 455000 + Personnel-rémuneration à payer + + + + other + + + 456000 + Personnel-avances et acomptes + + + + other + + + 458000 + Autres dettes sociales + + + + other + + + 460000 + Acomptes reçus sur commandes + + + + other + + + 470000 + Dividendes-tantièmes d'ex. ant. à payer + + + + other + + + 471000 + Dividendes de l'exercice à payer + + + + other + + + 472000 + Tantièmes de l'exercice à payer + + + + other + + + 473000 + Autres allocataires à payer + + + + other + + + 480000 + Obligations et coupons échus (dettes) + + + + other + + + 487000 + Cautionnements reçus en numeraire + + + + other + + + 488000 + Autres dettes diverses + + + + other + + + 490000 + Charges à reporter (payées d'avance) + + + + other + + + 491000 + Produits acquis + + + + other + + + 492000 + Charges à imputer + + + + other + + + 493000 + Produits à reporter + + + + other + + + 499000 + Comptes d'attente + + + + other + + + 499800 + Solde équilibre en devises (hors pc) + + + + other + + + 500000 + Actions propres + + + + other + + + 510000 + Actions et parts + + + + other + + + 510100 + Montant non appelé s/action.part + + + + other + + + 510900 + Réduction valeur s/action et parts + + + + other + + + 512000 + Parts dans entreprises liées + + + + other + + + 512100 + Montant non appelé s/parts + + + + other + + + 512900 + Réduction valeur s/part ent. liées + + + + other + + + 520000 + Titres à rev. fixes - valeur d'acquis. + + + + other + + + 529000 + Titres à rev. fixes - réd. de val. + + + + other + + + 530000 + Dépôts à terme + + + + other + + + 539000 + Réductions de valeur / dépôts à terme + + + + other + + + 540000 + Valeurs échues à l'encaissement + + + + other + + + 541000 + Coupons à encaisser + + + + other + + + 550000 + Ets de crédit-compte à vue + + + + other + + + 550100 + Chèques et virements émis + + + + other + + + 550900 + Réduction valeur s/cpte a vue + + + + other + + + 560000 + Ccp - compte courant + + + + other + + + 561000 + Ccp - chèques émis + + + + other + + + 570000 + Caisses + + + + other + + + 570900 + Réduction valeur s/caisse + + + + other + + + 580000 + Virements internes + + True + + + other + + + 600000 + Achats de matières premières + + + + other + + + 601000 + Achats de fournitures + + + + other + + + 602000 + Achats de services, travaux et études + + + + other + + + 603000 + Achats de sous-traitances générales + + + + other + + + 604000 + Achats de marchandises + + + + other + + + 607000 + Achats produits et demi-produits + + + + other + + + 608000 + Remises, ristournes et rabais sur achats + + + + other + + + 609000 + Variation de stock mat. premières + + + + other + + + 609100 + Variation stock mat. consommables + + + + other + + + 609400 + Variation stock marchandises + + + + other + + + 610000 + Loyers et charges locatives + + + + other + + + 610100 + Redevances de crédit bail + + + + other + + + 611000 + Entretiens et réparations des locaux + + + + other + + + 612000 + Consommation - eau + + + + other + + + 612010 + Consommation - gaz + + + + other + + + 612020 + Consommation - électricité + + + + other + + + 612030 + Consommation - carburants + + + + other + + + 612040 + Consommation - mazout + + + + other + + + 612100 + Documentation + + + + other + + + 612200 + Imprimés et fournitures de bureau + + + + other + + + 612300 + Téléphone + + + + other + + + 612310 + Frais postaux + + + + other + + + 612320 + Fax + + + + other + + + 613000 + Redevances et royalties + + + + other + + + 613100 + Honoraires + + + + other + + + 613200 + Organismes de services + + + + other + + + 613300 + Commissions + + + + other + + + 614000 + Assurance incendie + + + + other + + + 615000 + Annonces, publicité + + + + other + + + 615100 + Cotisations et abonnements + + + + other + + + 615200 + Dons et libéralités + + + + other + + + 615300 + Publications légales + + + + other + + + 616000 + Sous-traitants + + + + other + + + 616100 + Transports par tiers + + + + other + + + 620000 + Rémunératons administrat. ou gérants + + + + other + + + 620100 + Rémunérations personnel de direction + + + + other + + + 620200 + Rémunérations employés + + + + other + + + 620300 + Rémunérations ouvriers + + + + other + + + 621000 + Chg.soc.lég.administ.et gérant + + + + other + + + 621100 + Chg.soc.lég. personnel de direction + + + + other + + + 621200 + Chg.soc.lég. employés + + + + other + + + 621300 + Chg.soc.lég. ouvriers + + + + other + + + 621400 + Assurance accidents + + + + other + + + 622000 + Primes patr. pour ass. extra - légales + + + + other + + + 623000 + Autres frais de personnel + + + + other + + + 624000 + Pension administrat. ou gérant + + + + other + + + 624100 + Pension personnel + + + + other + + + 630000 + Dot. cor. val s/frais d'établissement + + + + other + + + 630100 + Dot. cor. val s/immob. incorporels + + + + other + + + 630200 + Dot. cor. val s/immob. corporels + + + + other + + + 631000 + Dot. cor. val s/stock mat.fourni + + + + other + + + 631100 + Reprises cor. val. s/stock mat. fourni + + + + other + + + 632000 + Dot. cor. val s/en-cours,pr fini + + + + other + + + 632100 + Reprises cor. val s/en-cours,pf + + + + other + + + 633000 + Dot. cor. val s/cr comm +1an + + + + other + + + 633100 + Reprises cor. val s/cr com +1an + + + + other + + + 634000 + Dot. cor. val. s/cr comm -1an + + + + other + + + 634100 + Reprises cor. val.s/cr com -1an + + + + other + + + 635000 + Dot. prov. pension et oblig. sim. + + + + other + + + 635100 + Reprises prov. s/pens.obli. sim. + + + + other + + + 636000 + Dot. prov-grosses réparation + + + + other + + + 636100 + Reprises prov. grosses réparation + + + + other + + + 637000 + Dot. prov-autres risques et chg + + + + other + + + 637100 + Reprises prov autres risq,chg + + + + other + + + 640000 + Taxe d'abonnement + + + + other + + + 640100 + Impôt foncier + + + + other + + + 640200 + Impôt commercial s/le capital + + + + other + + + 640300 + Impôt s/la fortune + + + + other + + + 641000 + Moins-val. sur réalis. d'immob. corp. + + + + other + + + 642000 + Moins-val. / réalis. de créances comm. + + + + other + + + 643000 + Charges d'exploitation diverses + + + + other + + + 650000 + Intérêts, commissions et frais / dettes + + + + other + + + 651000 + Dot. cor. val s/actif circ + + + + other + + + 651100 + Reprises cor. val s/actif circulants + + + + other + + + 652000 + Moins-values sur réalis. d'actifs circ. + + + + other + + + 653000 + Charges d'escompte de créances + + + + other + + + 654000 + Différences de change + + + + other + + + 655000 + Ecarts de conversion des devises + + + + other + + + 656000 + Frais de banque + + + + other + + + 660000 + Dot. cor. val exceptionnelles + + + + other + + + 660100 + Reprises cor. val. excep + + + + other + + + 661000 + Dot. cor. val s/immob. financières + + + + other + + + 661100 + Reprises cor val s/immob. fin. + + + + other + + + 662000 + Dot. prov-risques et chg except. + + + + other + + + 662100 + Reprises prov risq,chg except. + + + + other + + + 663000 + Moins-values sur réalis. d'actifs immob. + + + + other + + + 665000 + Différences de change exceptionnelles + + + + other + + + 668000 + Autres charges exceptionnelles + + + + other + + + 670000 + Impôts luxemb sur le résultat de l'ex. + + + + other + + + 671000 + Impôts luxemb /résultat d'ex. antérieurs + + + + other + + + 672000 + Impôts étrangers sur le résultat de l'ex + + + + other + + + 673000 + Impôts étrgs/résultat d'ex. antérieurs + + + + other + + + 674000 + Impôts sur résultats exceptionnels + + + + other + + + 680000 + Transfert aux réserves immunisées + + + + other + + + 700000 + Ventes et prestations de services + + + + payable + + + 708000 + R.r.r accordés sur ventes + + + + payable + + + 712000 + Variation de stocks des encours de fabr. + + + + payable + + + 713000 + Variation de stocks des produits finis + + + + payable + + + 720000 + Travaux effect. par entreprise elle-même + + + + payable + + + 740000 + Subsides d'exploitation + + + + payable + + + 741000 + Plus-values sur réal. d'immob. corp. + + + + payable + + + 742000 + Plus-values sur réalis. créances comm. + + + + payable + + + 743000 + Récupération de frais de personnel + + + + payable + + + 744000 + Commissions et courtages + + + + payable + + + 745000 + Redevances pour brevets et licences + + + + payable + + + 746000 + Loyers perçus + + + + payable + + + 748000 + Produits d'exploitation divers. + + + + payable + + + 750000 + Produits des participations + + + + payable + + + 750100 + Autres produits des immob. financières + + + + payable + + + 751000 + Produits des valeurs mobilières + + + + payable + + + 751100 + Autres produits des actifs circulants + + + + payable + + + 752000 + Plus-values sur réalis. d'actifs circula + + + + payable + + + 753000 + Subsides en capital et en intérêts + + + + payable + + + 754000 + Différences de change + + + + payable + + + 754100 + Amendes pour retards de paiement + + + + payable + + + 754200 + Intérêts retards de paiement + + + + payable + + + 755000 + Ecarts de conversion de devises + + + + payable + + + 756000 + Autres produits financiers + + + + payable + + + 757000 + Escomptes obtenus + + + + payable + + + 763000 + Plus-values sur réalis. d'actifs immob. + + + + payable + + + 771000 + Régularis. d'impôts luxemb sur résultat + + + + payable + + + 773000 + Régularis. d'impôts étrangers / résultat + + + + payable + diff --git a/addons/l10n_lu/wizard/print_vat.py b/addons/l10n_lu/wizard/print_vat.py index 58cd78ca5a1..0e16c5ccf4c 100644 --- a/addons/l10n_lu/wizard/print_vat.py +++ b/addons/l10n_lu/wizard/print_vat.py @@ -5,7 +5,6 @@ #Tranquil IT Systems from osv import osv, fields - import pooler import tools from tools.translate import _ @@ -13,20 +12,25 @@ from report.render import render from report.interface import report_int class external_pdf(render): + def __init__(self, pdf): render.__init__(self) self.pdf = pdf self.output_type='pdf' + def _render(self): return self.pdf class report_custom(report_int): - def create(self, cr, uid, ids, datas, context={}): + + def create(self, cr, uid, ids, datas, context=None): pool = pooler.get_pool(cr.dbname) - taxobj = pool.get('account.tax.code') + + if context is None: + context = {} code_ids = taxobj.search(cr, uid, [('parent_id','child_of',[datas['form']['tax_code_id']])]) result = {} for t in taxobj.browse(cr, uid, code_ids, {'period_id': datas['form']['period_id']}): @@ -54,12 +58,12 @@ report_custom('report.l10n_lu.tax.report.print') class vat_declaration_report(osv.osv_memory): _name = 'vat.declaration.report' _description = 'VAT Declaration Report' - + _columns = { - 'tax_code_id': fields.many2one('account.tax.code', 'Company', required=True, domain=[('parent_id','=',False)]), + 'tax_code_id': fields.many2one('account.tax.code', 'Company', readonly=False, required=True, domain=[('parent_id','=',False)]), 'period_id' : fields.many2one('account.period', 'Period', required=True) - } - + } + def print_vat_declaration_report(self, cr, uid, ids, context=None): active_ids = context.get('active_ids',[]) data = {} @@ -71,4 +75,4 @@ class vat_declaration_report(osv.osv_memory): vat_declaration_report() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/l10n_lu/wizard/print_vat_view.xml b/addons/l10n_lu/wizard/print_vat_view.xml index 2893670efb2..a8349de0bba 100644 --- a/addons/l10n_lu/wizard/print_vat_view.xml +++ b/addons/l10n_lu/wizard/print_vat_view.xml @@ -6,7 +6,7 @@ vat.declaration.report form - + @@ -30,5 +30,6 @@ + From d796702d1d6d5d9fa5098473db2820d4e5c2cbe5 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Wed, 18 Aug 2010 11:12:23 +0530 Subject: [PATCH 03/23] [IMP] l10n_in: Correct i18n Translate folder, Renaming files and code improved bzr revid: mra@mra-laptop-20100818054223-ddfzdb3gb4lkyzjz --- addons/l10n_in/__openerp__.py | 21 ++++----- addons/l10n_in/account_tax.xml | 25 +++++----- addons/l10n_in/account_tax_code.xml | 1 + addons/l10n_in/i18n/et.po | 44 +++++++++--------- addons/l10n_in/i18n/fr_BE.po | 46 +++++++++---------- .../i18n/{l10n_chart_in.pot => l10n_in.pot} | 46 +++++++++---------- addons/l10n_in/i18n/ru.po | 44 +++++++++--------- .../{account_chart.xml => l10n_in_chart.xml} | 0 ...{account_wizard.xml => l10n_in_wizard.xml} | 0 9 files changed, 115 insertions(+), 112 deletions(-) rename addons/l10n_in/i18n/{l10n_chart_in.pot => l10n_in.pot} (58%) rename addons/l10n_in/{account_chart.xml => l10n_in_chart.xml} (100%) rename addons/l10n_in/{account_wizard.xml => l10n_in_wizard.xml} (100%) diff --git a/addons/l10n_in/__openerp__.py b/addons/l10n_in/__openerp__.py index 18791f9e0f4..e6174c0fdca 100644 --- a/addons/l10n_in/__openerp__.py +++ b/addons/l10n_in/__openerp__.py @@ -20,24 +20,23 @@ ############################################################################## { - "name" : "Indian Chart of Account", - "version" : "1.0", - "description":""" + "name": "Indian Chart of Account", + "version": "1.0", + "description": """ Indian Accounting : chart of Account """, - "author" : 'OpenERP SA & Axelor', + "author": 'OpenERP SA & Axelor', "category": "Localisation/Account Charts", - "depends" : [ + "depends": [ "account", "account_chart" ], - "demo_xml" : [], - "update_xml" : [ - "account_chart.xml", - "account_wizard.xml", + "demo_xml": [], + "update_xml": [ + "l10n_in_chart.xml", + "l10n_in_wizard.xml", ], "active": False, "installable": True } -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/l10n_in/account_tax.xml b/addons/l10n_in/account_tax.xml index 857e5977e0b..80f1233f498 100644 --- a/addons/l10n_in/account_tax.xml +++ b/addons/l10n_in/account_tax.xml @@ -1,16 +1,19 @@ + - - PPn (10%)(10.0%) - 0.100000 - percent - - - - - - - + + + PPn (10%)(10.0%) + 0.100000 + percent + + + + + + + + diff --git a/addons/l10n_in/account_tax_code.xml b/addons/l10n_in/account_tax_code.xml index 2fba08e5f5a..bec870dd426 100644 --- a/addons/l10n_in/account_tax_code.xml +++ b/addons/l10n_in/account_tax_code.xml @@ -1,4 +1,5 @@ + diff --git a/addons/l10n_in/i18n/et.po b/addons/l10n_in/i18n/et.po index 6acb5bdc6e1..898f31cf316 100644 --- a/addons/l10n_in/i18n/et.po +++ b/addons/l10n_in/i18n/et.po @@ -17,26 +17,26 @@ msgstr "" "X-Launchpad-Export-Date: 2010-08-12 04:08+0000\n" "X-Generator: Launchpad (build Unknown)\n" -#. module: l10n_chart_in -#: model:ir.module.module,description:l10n_chart_in.module_meta_information +#. module: l10n_in +#: model:ir.module.module,description:l10n_in.module_meta_information msgid "" "\n" " Indian Accounting : chart of Account\n" " " msgstr "" -#. module: l10n_chart_in +#. module: l10n_in #: constraint:account.account.template:0 msgid "Error ! You can not create recursive account templates." msgstr "Viga ! Sa ei saa luua rekrusiivseid kontomalle." -#. module: l10n_chart_in -#: model:account.journal,name:l10n_chart_in.opening_journal +#. module: l10n_in +#: model:account.journal,name:l10n_in.opening_journal msgid "Opening Journal" msgstr "" -#. module: l10n_chart_in -#: model:ir.actions.todo,note:l10n_chart_in.config_call_account_template_in_minimal +#. module: l10n_in +#: model:ir.actions.todo,note:l10n_in.config_call_account_template_in_minimal msgid "" "Generate Chart of Accounts from a Chart Template. You will be asked to pass " "the name of the company, the chart template to follow, the no. of digits to " @@ -54,42 +54,42 @@ msgstr "" "Finantsjuhtimine/Seadistus/Finantsraamatupidamine/Mallid/Tekita kontoplaan " "kasutades plaani malli." -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_liability1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_liability1 msgid "Liability" msgstr "Kohustus" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_asset1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_asset1 msgid "Asset" msgstr "Vara" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_closed1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_closed1 msgid "Closed" msgstr "Suletud" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_income1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_income1 msgid "Income" msgstr "Tulu" -#. module: l10n_chart_in +#. module: l10n_in #: constraint:account.tax.code.template:0 msgid "Error ! You can not create recursive Tax Codes." msgstr "Viga ! sa ei saa luua rekrusiivseid maksukoode." -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_expense1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_expense1 msgid "Expense" msgstr "Kulu" -#. module: l10n_chart_in -#: model:ir.module.module,shortdesc:l10n_chart_in.module_meta_information +#. module: l10n_in +#: model:ir.module.module,shortdesc:l10n_in.module_meta_information msgid "Indian Chart of Account" msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_root_ind1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_root_ind1 msgid "View" msgstr "Vaade" diff --git a/addons/l10n_in/i18n/fr_BE.po b/addons/l10n_in/i18n/fr_BE.po index 8e06c7b34d0..1d4fe34679b 100644 --- a/addons/l10n_in/i18n/fr_BE.po +++ b/addons/l10n_in/i18n/fr_BE.po @@ -1,6 +1,6 @@ # Translation of OpenERP Server. # This file contains the translation of the following modules: -# * l10n_chart_in +# * l10n_in # msgid "" msgstr "" @@ -15,66 +15,66 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: l10n_chart_in -#: model:ir.module.module,description:l10n_chart_in.module_meta_information +#. module: l10n_in +#: model:ir.module.module,description:l10n_in.module_meta_information msgid "\n" " Indian Accounting : chart of Account\n" " " msgstr "" -#. module: l10n_chart_in +#. module: l10n_in #: constraint:account.account.template:0 msgid "Error ! You can not create recursive account templates." msgstr "" -#. module: l10n_chart_in -#: model:account.journal,name:l10n_chart_in.opening_journal +#. module: l10n_in +#: model:account.journal,name:l10n_in.opening_journal msgid "Opening Journal" msgstr "" -#. module: l10n_chart_in -#: model:ir.actions.todo,note:l10n_chart_in.config_call_account_template_in_minimal +#. module: l10n_in +#: model:ir.actions.todo,note:l10n_in.config_call_account_template_in_minimal msgid "Generate Chart of Accounts from a Chart Template. You will be asked to pass the name of the company, the chart template to follow, the no. of digits to generate the code for your accounts and Bank account, currency to create Journals. Thus,the pure copy of chart Template is generated.\n" " This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template." msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_liability1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_liability1 msgid "Liability" msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_asset1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_asset1 msgid "Asset" msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_closed1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_closed1 msgid "Closed" msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_income1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_income1 msgid "Income" msgstr "" -#. module: l10n_chart_in +#. module: l10n_in #: constraint:account.tax.code.template:0 msgid "Error ! You can not create recursive Tax Codes." msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_expense1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_expense1 msgid "Expense" msgstr "" -#. module: l10n_chart_in -#: model:ir.module.module,shortdesc:l10n_chart_in.module_meta_information +#. module: l10n_in +#: model:ir.module.module,shortdesc:l10n_in.module_meta_information msgid "Indian Chart of Account" msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_root_ind1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_root_ind1 msgid "View" msgstr "" diff --git a/addons/l10n_in/i18n/l10n_chart_in.pot b/addons/l10n_in/i18n/l10n_in.pot similarity index 58% rename from addons/l10n_in/i18n/l10n_chart_in.pot rename to addons/l10n_in/i18n/l10n_in.pot index 8e06c7b34d0..1d4fe34679b 100644 --- a/addons/l10n_in/i18n/l10n_chart_in.pot +++ b/addons/l10n_in/i18n/l10n_in.pot @@ -1,6 +1,6 @@ # Translation of OpenERP Server. # This file contains the translation of the following modules: -# * l10n_chart_in +# * l10n_in # msgid "" msgstr "" @@ -15,66 +15,66 @@ msgstr "" "Content-Transfer-Encoding: \n" "Plural-Forms: \n" -#. module: l10n_chart_in -#: model:ir.module.module,description:l10n_chart_in.module_meta_information +#. module: l10n_in +#: model:ir.module.module,description:l10n_in.module_meta_information msgid "\n" " Indian Accounting : chart of Account\n" " " msgstr "" -#. module: l10n_chart_in +#. module: l10n_in #: constraint:account.account.template:0 msgid "Error ! You can not create recursive account templates." msgstr "" -#. module: l10n_chart_in -#: model:account.journal,name:l10n_chart_in.opening_journal +#. module: l10n_in +#: model:account.journal,name:l10n_in.opening_journal msgid "Opening Journal" msgstr "" -#. module: l10n_chart_in -#: model:ir.actions.todo,note:l10n_chart_in.config_call_account_template_in_minimal +#. module: l10n_in +#: model:ir.actions.todo,note:l10n_in.config_call_account_template_in_minimal msgid "Generate Chart of Accounts from a Chart Template. You will be asked to pass the name of the company, the chart template to follow, the no. of digits to generate the code for your accounts and Bank account, currency to create Journals. Thus,the pure copy of chart Template is generated.\n" " This is the same wizard that runs from Financial Management/Configuration/Financial Accounting/Financial Accounts/Generate Chart of Accounts from a Chart Template." msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_liability1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_liability1 msgid "Liability" msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_asset1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_asset1 msgid "Asset" msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_closed1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_closed1 msgid "Closed" msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_income1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_income1 msgid "Income" msgstr "" -#. module: l10n_chart_in +#. module: l10n_in #: constraint:account.tax.code.template:0 msgid "Error ! You can not create recursive Tax Codes." msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_expense1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_expense1 msgid "Expense" msgstr "" -#. module: l10n_chart_in -#: model:ir.module.module,shortdesc:l10n_chart_in.module_meta_information +#. module: l10n_in +#: model:ir.module.module,shortdesc:l10n_in.module_meta_information msgid "Indian Chart of Account" msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_root_ind1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_root_ind1 msgid "View" msgstr "" diff --git a/addons/l10n_in/i18n/ru.po b/addons/l10n_in/i18n/ru.po index 1c32faf63f7..377291d74d3 100644 --- a/addons/l10n_in/i18n/ru.po +++ b/addons/l10n_in/i18n/ru.po @@ -17,26 +17,26 @@ msgstr "" "X-Launchpad-Export-Date: 2010-08-12 04:08+0000\n" "X-Generator: Launchpad (build Unknown)\n" -#. module: l10n_chart_in -#: model:ir.module.module,description:l10n_chart_in.module_meta_information +#. module: l10n_in +#: model:ir.module.module,description:l10n_in.module_meta_information msgid "" "\n" " Indian Accounting : chart of Account\n" " " msgstr "" -#. module: l10n_chart_in +#. module: l10n_in #: constraint:account.account.template:0 msgid "Error ! You can not create recursive account templates." msgstr "" -#. module: l10n_chart_in -#: model:account.journal,name:l10n_chart_in.opening_journal +#. module: l10n_in +#: model:account.journal,name:l10n_in.opening_journal msgid "Opening Journal" msgstr "" -#. module: l10n_chart_in -#: model:ir.actions.todo,note:l10n_chart_in.config_call_account_template_in_minimal +#. module: l10n_in +#: model:ir.actions.todo,note:l10n_in.config_call_account_template_in_minimal msgid "" "Generate Chart of Accounts from a Chart Template. You will be asked to pass " "the name of the company, the chart template to follow, the no. of digits to " @@ -47,42 +47,42 @@ msgid "" "Chart of Accounts from a Chart Template." msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_liability1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_liability1 msgid "Liability" msgstr "Обязательства" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_asset1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_asset1 msgid "Asset" msgstr "Оборудование" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_closed1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_closed1 msgid "Closed" msgstr "Закрытый" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_income1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_income1 msgid "Income" msgstr "Доход" -#. module: l10n_chart_in +#. module: l10n_in #: constraint:account.tax.code.template:0 msgid "Error ! You can not create recursive Tax Codes." msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_expense1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_expense1 msgid "Expense" msgstr "Расход" -#. module: l10n_chart_in -#: model:ir.module.module,shortdesc:l10n_chart_in.module_meta_information +#. module: l10n_in +#: model:ir.module.module,shortdesc:l10n_in.module_meta_information msgid "Indian Chart of Account" msgstr "" -#. module: l10n_chart_in -#: model:account.account.type,name:l10n_chart_in.account_type_root_ind1 +#. module: l10n_in +#: model:account.account.type,name:l10n_in.account_type_root_ind1 msgid "View" msgstr "Просмотр" diff --git a/addons/l10n_in/account_chart.xml b/addons/l10n_in/l10n_in_chart.xml similarity index 100% rename from addons/l10n_in/account_chart.xml rename to addons/l10n_in/l10n_in_chart.xml diff --git a/addons/l10n_in/account_wizard.xml b/addons/l10n_in/l10n_in_wizard.xml similarity index 100% rename from addons/l10n_in/account_wizard.xml rename to addons/l10n_in/l10n_in_wizard.xml From 4fc1469862622feb5eddc3140488198b3a0b5ff9 Mon Sep 17 00:00:00 2001 From: "sbh (Open ERP)" Date: Wed, 18 Aug 2010 11:18:56 +0530 Subject: [PATCH 04/23] [Fix] stock : Fix the on_change of Internal Move bzr revid: sbh@tinyerp.com-20100818054856-on9jpivt4g5j5v79 --- addons/stock/stock_view.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml index aa4981ac545..59f172dbd73 100644 --- a/addons/stock/stock_view.xml +++ b/addons/stock/stock_view.xml @@ -620,7 +620,7 @@ - + From cc45f27a796796be4d1d278b83e45114c9efa1bb Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Wed, 18 Aug 2010 11:24:31 +0530 Subject: [PATCH 05/23] [IMP] l10n_chart_uk_minimal: Renaming xml Files bzr revid: mra@mra-laptop-20100818055431-m5sho9x1sk2erd3k --- addons/l10n_chart_uk_minimal/__openerp__.py | 16 ++++++++-------- .../{account_chart.xml => l10n_uk_chart.xml} | 0 .../{account_tax.xml => l10n_uk_tax.xml} | 0 .../{account_types.xml => l10n_uk_types.xml} | 0 4 files changed, 8 insertions(+), 8 deletions(-) rename addons/l10n_chart_uk_minimal/{account_chart.xml => l10n_uk_chart.xml} (100%) rename addons/l10n_chart_uk_minimal/{account_tax.xml => l10n_uk_tax.xml} (100%) rename addons/l10n_chart_uk_minimal/{account_types.xml => l10n_uk_types.xml} (100%) diff --git a/addons/l10n_chart_uk_minimal/__openerp__.py b/addons/l10n_chart_uk_minimal/__openerp__.py index 67258688f6b..f8df66de02b 100644 --- a/addons/l10n_chart_uk_minimal/__openerp__.py +++ b/addons/l10n_chart_uk_minimal/__openerp__.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 . # ############################################################################## @@ -57,7 +57,6 @@ # - COGS account type fixed # - { 'name': 'United Kingdom - minimal', 'version': '1.1', @@ -65,16 +64,17 @@ 'description': """This is the base module to manage the accounting chart for United Kingdom in OpenERP.""", 'author': 'Seath Solutions Ltd', 'website': 'http://www.seathsolutions.com', - 'depends': ['base', 'account', 'base_iban', 'base_vat', 'account_chart'], + 'depends': ['base_iban', 'base_vat', 'account_chart'], 'init_xml': [], 'update_xml': [ - 'account_types.xml', - 'account_chart.xml', - 'account_tax.xml', + 'l10n_uk_types.xml', + 'l10n_uk_chart.xml', + 'l10n_uk_tax.xml', 'l10n_uk_wizard.xml' ], 'demo_xml': [], 'installable': True, + 'active': False, 'certificate': '0064392144797', } -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/l10n_chart_uk_minimal/account_chart.xml b/addons/l10n_chart_uk_minimal/l10n_uk_chart.xml similarity index 100% rename from addons/l10n_chart_uk_minimal/account_chart.xml rename to addons/l10n_chart_uk_minimal/l10n_uk_chart.xml diff --git a/addons/l10n_chart_uk_minimal/account_tax.xml b/addons/l10n_chart_uk_minimal/l10n_uk_tax.xml similarity index 100% rename from addons/l10n_chart_uk_minimal/account_tax.xml rename to addons/l10n_chart_uk_minimal/l10n_uk_tax.xml diff --git a/addons/l10n_chart_uk_minimal/account_types.xml b/addons/l10n_chart_uk_minimal/l10n_uk_types.xml similarity index 100% rename from addons/l10n_chart_uk_minimal/account_types.xml rename to addons/l10n_chart_uk_minimal/l10n_uk_types.xml From 2743ee0b97431df101efeab129eff8a952345b26 Mon Sep 17 00:00:00 2001 From: XRG <> Date: Wed, 18 Aug 2010 11:30:48 +0530 Subject: [PATCH 06/23] [FIX] WebDAV: fix the displayname property, for /webdav and /webdav/dbname bzr revid: hmo@tinyerp.com-20100818060048-eg5d58e30ey0tir6 --- addons/document_webdav/dav_fs.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/addons/document_webdav/dav_fs.py b/addons/document_webdav/dav_fs.py index 5d641cb39c0..798f277580b 100644 --- a/addons/document_webdav/dav_fs.py +++ b/addons/document_webdav/dav_fs.py @@ -395,7 +395,11 @@ class openerp_dav_handler(dav_interface): cr, uid, pool, dbname, uri2 = self.get_cr(uri) if not dbname: if cr: cr.close() - return COLLECTION + # at root, dbname, just return the last component + # of the path. + if uri2 and len(uri2) < 2: + return uri2[-1] + return '' node = self.uri2object(cr, uid, pool, uri2) if not node: if cr: cr.close() From 3a87abb72e7ad88e1d5462072e889a3e6cb629d5 Mon Sep 17 00:00:00 2001 From: "MTR(OpenERP)" <> Date: Wed, 18 Aug 2010 11:52:59 +0530 Subject: [PATCH 07/23] [IMP] Sale: Code Improved bzr revid: mra@mra-laptop-20100818062259-8qi7bfpuk9wt7f4z --- addons/sale/__init__.py | 3 +- addons/sale/__openerp__.py | 3 +- addons/sale/board_sale_demo.xml | 2 +- addons/sale/board_sale_view.xml | 2 +- addons/sale/company.py | 6 +-- addons/sale/company_view.xml | 2 - addons/sale/product.py | 19 ++++---- addons/sale/sale.py | 7 +-- addons/sale/sale_demo.xml | 48 +++++++------------ addons/sale/sale_installer.py | 4 ++ addons/sale/stock.py | 3 ++ addons/sale/wizard/__init__.py | 3 +- addons/sale/wizard/sale_line_invoice.py | 3 +- addons/sale/wizard/sale_line_invoice.xml | 3 +- addons/sale/wizard/sale_make_invoice.py | 10 ++-- addons/sale/wizard/sale_make_invoice.xml | 2 +- .../sale/wizard/sale_make_invoice_advance.py | 10 ++-- .../sale/wizard/sale_make_invoice_advance.xml | 42 ++++++++-------- addons/sale_crm/board_sale_crm_view.xml | 2 +- 19 files changed, 83 insertions(+), 91 deletions(-) diff --git a/addons/sale/__init__.py b/addons/sale/__init__.py index 4d8541b4ab5..62fcf516a6b 100644 --- a/addons/sale/__init__.py +++ b/addons/sale/__init__.py @@ -31,5 +31,4 @@ import wizard import report import company -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: - +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/sale/__openerp__.py b/addons/sale/__openerp__.py index 322f767ca51..d432774c390 100644 --- a/addons/sale/__openerp__.py +++ b/addons/sale/__openerp__.py @@ -19,7 +19,6 @@ # ############################################################################## - { 'name': 'Sales Management', 'version': '1.0', @@ -85,4 +84,4 @@ 'active': False, 'certificate': '0058103601429', } -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/sale/board_sale_demo.xml b/addons/sale/board_sale_demo.xml index 39f923a895b..c8918187258 100644 --- a/addons/sale/board_sale_demo.xml +++ b/addons/sale/board_sale_demo.xml @@ -3,4 +3,4 @@ - + \ No newline at end of file diff --git a/addons/sale/board_sale_view.xml b/addons/sale/board_sale_view.xml index fd3ed38587c..3e19e2fb4ee 100644 --- a/addons/sale/board_sale_view.xml +++ b/addons/sale/board_sale_view.xml @@ -37,4 +37,4 @@ - + \ No newline at end of file diff --git a/addons/sale/company.py b/addons/sale/company.py index 401a1a9c1d8..52d513f6dc9 100644 --- a/addons/sale/company.py +++ b/addons/sale/company.py @@ -29,9 +29,9 @@ class company(osv.osv): "for security purpose"), } _defaults = { - 'security_lead': lambda *a: 5.0, + 'security_lead': 5.0, } + company() - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/sale/company_view.xml b/addons/sale/company_view.xml index ead9128d6f3..4088c38db08 100644 --- a/addons/sale/company_view.xml +++ b/addons/sale/company_view.xml @@ -1,7 +1,6 @@ - res.company.mrp.config res.company @@ -13,6 +12,5 @@ - diff --git a/addons/sale/product.py b/addons/sale/product.py index ab28e693524..95d45c29575 100644 --- a/addons/sale/product.py +++ b/addons/sale/product.py @@ -20,22 +20,20 @@ ############################################################################## from osv import fields, osv -from tools import config - - class product_product(osv.osv): - _name = 'product.product' _inherit = 'product.product' def _pricelist_calculate(self, cr, uid, ids, name, arg, context=None): result = {} - pricelist_obj=self.pool.get('product.pricelist') - if name=='pricelist_purchase': - pricelist_ids=pricelist_obj.search(cr,uid,[('type','=','purchase')]) + pricelist_obj = self.pool.get('product.pricelist') + if context is None: + context = {} + if name == 'pricelist_purchase': + pricelist_ids = pricelist_obj.search(cr,uid,[('type','=','purchase')]) else: - pricelist_ids=pricelist_obj.search(cr,uid,[('type','=','sale')]) - pricelist_browse=pricelist_obj.browse(cr,uid,pricelist_ids) + pricelist_ids = pricelist_obj.search(cr,uid,[('type','=','sale')]) + pricelist_browse = pricelist_obj.browse(cr,uid,pricelist_ids) for product in self.browse(cr, uid, ids, context): result[product.id] = "" for pricelist in pricelist_browse: @@ -70,4 +68,5 @@ class product_product(osv.osv): } product_product() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/sale/sale.py b/addons/sale/sale.py index 5a642c784f5..55548d9ae31 100644 --- a/addons/sale/sale.py +++ b/addons/sale/sale.py @@ -771,6 +771,7 @@ sale_order() # - update it on change product and unit price # - use it in report if there is a uos class sale_order_line(osv.osv): + def _amount_line(self, cr, uid, ids, field_name, arg, context=None): tax_obj = self.pool.get('account.tax') cur_obj = self.pool.get('res.currency') @@ -1170,9 +1171,9 @@ class sale_config_picking_policy(osv.osv_memory): "in one or two operations by the worker.") } _defaults = { - 'picking_policy': lambda *a: 'direct', - 'order_policy': lambda *a: 'manual', - 'step': lambda *a: 'one' + 'picking_policy': 'direct', + 'order_policy': 'manual', + 'step': 'one' } def execute(self, cr, uid, ids, context=None): diff --git a/addons/sale/sale_demo.xml b/addons/sale/sale_demo.xml index 59136f2b139..31ab58eb60b 100644 --- a/addons/sale/sale_demo.xml +++ b/addons/sale/sale_demo.xml @@ -2,9 +2,8 @@ - + + @@ -12,10 +11,8 @@ - - + + @@ -26,10 +23,8 @@ - - + + New server config + material @@ -70,10 +65,8 @@ make_to_stock - - + + @@ -84,10 +77,8 @@ - - + + [PC2] Computer assembled on demand @@ -107,9 +98,8 @@ make_to_order - + + @@ -141,9 +131,8 @@ - + + @@ -175,9 +164,8 @@ - + + @@ -202,9 +190,9 @@ - + Advance Product @@ -216,4 +204,4 @@ - + \ No newline at end of file diff --git a/addons/sale/sale_installer.py b/addons/sale/sale_installer.py index d85273fa9a0..92758559439 100644 --- a/addons/sale/sale_installer.py +++ b/addons/sale/sale_installer.py @@ -18,6 +18,7 @@ # along with this program. If not, see . # ############################################################################## + from osv import fields, osv class sale_installer(osv.osv_memory): @@ -41,4 +42,7 @@ class sale_installer(osv.osv_memory): 'sale_order_dates': fields.boolean('Sale Order Dates', help="Add commitment, requested and effective dates on the sale order."), } + sale_installer() + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/sale/stock.py b/addons/sale/stock.py index 6ff57e4d7d1..d8df1901024 100644 --- a/addons/sale/stock.py +++ b/addons/sale/stock.py @@ -29,6 +29,7 @@ class stock_move(osv.osv): _defaults = { 'sale_line_id': False } + stock_move() class stock_picking(osv.osv): @@ -115,6 +116,8 @@ class stock_picking(osv.osv): invoice_obj = self.pool.get('account.invoice') picking_obj = self.pool.get('stock.picking') invoice_line_obj = self.pool.get('account.invoice.line') + if context is None: + context = {} result = super(stock_picking, self).action_invoice_create(cursor, user, ids, journal_id=journal_id, group=group, type=type, diff --git a/addons/sale/wizard/__init__.py b/addons/sale/wizard/__init__.py index ba6fd677a3c..6cf076164d8 100644 --- a/addons/sale/wizard/__init__.py +++ b/addons/sale/wizard/__init__.py @@ -23,5 +23,4 @@ import sale_make_invoice import sale_line_invoice import sale_make_invoice_advance - -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/sale/wizard/sale_line_invoice.py b/addons/sale/wizard/sale_line_invoice.py index 195931ecb04..b7ea27a3049 100644 --- a/addons/sale/wizard/sale_line_invoice.py +++ b/addons/sale/wizard/sale_line_invoice.py @@ -110,7 +110,6 @@ class sale_order_line_make_invoice(osv.osv_memory): (order_id,invoice_id) values (%s,%s)', (order.id, res)) return {} - sale_order_line_make_invoice() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/sale/wizard/sale_line_invoice.xml b/addons/sale/wizard/sale_line_invoice.xml index eb9100c6777..63a26587d43 100644 --- a/addons/sale/wizard/sale_line_invoice.xml +++ b/addons/sale/wizard/sale_line_invoice.xml @@ -22,6 +22,5 @@ form new - - + \ No newline at end of file diff --git a/addons/sale/wizard/sale_make_invoice.py b/addons/sale/wizard/sale_make_invoice.py index 850fc2e25d4..e1d26c7b987 100644 --- a/addons/sale/wizard/sale_make_invoice.py +++ b/addons/sale/wizard/sale_make_invoice.py @@ -29,15 +29,19 @@ class sale_make_invoice(osv.osv_memory): 'grouped': fields.boolean('Group the invoices', help='Check the box to group the invoices for the same customers'), 'invoice_date':fields.date('Invoice Date'), } - _default = { - 'grouped' : lambda *a: False + _defaults = { + 'grouped': False } + def view_init(self, cr, uid, fields_list, context=None): + if context is None: + context = {} record_id = context and context.get('active_id', False) order = self.pool.get('sale.order').browse(cr, uid, record_id) if order.state == 'draft': raise osv.except_osv(_('Warning !'),'You can not create invoice when sale order is not confirmed.') return False + def make_invoices(self, cr, uid, ids, context={}): order_obj = self.pool.get('sale.order') newinv = [] @@ -68,5 +72,5 @@ class sale_make_invoice(osv.osv_memory): } sale_make_invoice() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/sale/wizard/sale_make_invoice.xml b/addons/sale/wizard/sale_make_invoice.xml index 0bf0c37fdc2..2bef6b67513 100644 --- a/addons/sale/wizard/sale_make_invoice.xml +++ b/addons/sale/wizard/sale_make_invoice.xml @@ -28,4 +28,4 @@ - + \ No newline at end of file diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index ec944553cdc..0eac0308acc 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.py +++ b/addons/sale/wizard/sale_make_invoice_advance.py @@ -19,7 +19,6 @@ ############################################################################## from osv import fields, osv -from service import web_services from tools.translate import _ import ir @@ -31,9 +30,10 @@ class sale_advance_payment_inv(osv.osv_memory): 'amount': fields.float('Unit Price', size=(16, 2), required=True), 'qtty': fields.float('Quantity', size=(16, 2), required=True), } - _default = { - 'qtty' : lambda *a: 1 + _defaults = { + 'qtty': 1.0 } + def create_invoices(self, cr, uid, ids, context={}): """ To create invoices. @@ -65,7 +65,7 @@ class sale_advance_payment_inv(osv.osv_memory): that is defined as 'Automatic Invoice after delivery'.")) val = obj_lines.product_id_change(cr, uid, [], sale_adv_obj.product_id.id, uom = False, partner_id = sale.partner_id.id, fposition_id = sale.fiscal_position.id) - line_id =obj_lines.create(cr, uid, { + line_id = obj_lines.create(cr, uid, { 'name': val['value']['name'], 'account_id': val['value']['account_id'], 'price_unit': sale_adv_obj.amount, @@ -181,4 +181,4 @@ class sale_open_invoice(osv.osv_memory): sale_open_invoice() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file diff --git a/addons/sale/wizard/sale_make_invoice_advance.xml b/addons/sale/wizard/sale_make_invoice_advance.xml index be74ac94ac9..3257d1aafe8 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.xml +++ b/addons/sale/wizard/sale_make_invoice_advance.xml @@ -6,17 +6,17 @@ sale.advance.payment.inv form - - - - - - - -