diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index eafc2c3f605..7f86f86420d 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -113,7 +113,7 @@ class account_move_line(osv.osv): account = journal_obj.default_debit_account_id - if account and ((not fields) or ('debit' in fields) or ('credit' in fields)) and 'partner_id' in data: + if account and ((not fields) or ('debit' in fields) or ('credit' in fields)) and 'partner_id' in data and (data['partner_id']): part = self.pool.get('res.partner').browse(cr, uid, data['partner_id']) account = self.pool.get('account.fiscal.position').map_account(cr, uid, part and part.property_account_position or False, account.id) account = self.pool.get('account.account').browse(cr, uid, account) @@ -707,6 +707,7 @@ class account_move_line(osv.osv): return result def unlink(self, cr, uid, ids, context={}, check=True): + print "CC" self._update_check(cr, uid, ids, context) result = False for line in self.browse(cr, uid, ids, context): diff --git a/addons/account/report/invoice.rml b/addons/account/report/invoice.rml index c38a1b39623..3542841e7b4 100644 --- a/addons/account/report/invoice.rml +++ b/addons/account/report/invoice.rml @@ -326,7 +326,7 @@ [[ l.name ]] - [[ ', '.join([lt.name for lt in l.invoice_line_tax_id]) ]] + [[ ', '.join([ lt.description or '' for lt in l.invoice_line_tax_id ]) ]] [[ formatLang(l.quantity)]] @@ -489,7 +489,7 @@ - [[ t.name ]] + [[ lt.description and lt.description + ' - ' + t.name or t.name ]] [[ formatLang(t.base) ]] diff --git a/addons/account_followup/__terp__.py b/addons/account_followup/__terp__.py index 6a297ec668f..d626ccdd459 100644 --- a/addons/account_followup/__terp__.py +++ b/addons/account_followup/__terp__.py @@ -45,8 +45,8 @@ 'update_xml': [ 'security/ir.model.access.csv', 'wizard/wizard_view.xml', + 'followup_report_view.xml', 'followup_view.xml', - 'followup_report_view.xml' ], 'demo_xml': ['followup_demo.xml'], 'installable': True, diff --git a/addons/crm/crm.py b/addons/crm/crm.py index b0ca8c8aef3..4364965cce6 100644 --- a/addons/crm/crm.py +++ b/addons/crm/crm.py @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- ############################################################################## # -# OpenERP, Open Source Management Solution +# OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (). All Rights Reserved # $Id$ # @@ -181,7 +181,7 @@ class crm_case_section(osv.osv): 'object': True }) return True - + def name_get(self, cr, uid, ids, context={}): if not len(ids): return [] @@ -295,7 +295,7 @@ class crm_case_rule(osv.osv): except (ValueError, KeyError, TypeError): return False return True - + _constraints = [ (_check_mail, 'Error: The mail is not well formated', ['act_mail_body']), ] @@ -505,7 +505,7 @@ class crm_case(osv.osv): action_ids = newactions level -= 1 return True - + def format_body(self, body): return tools.ustr(body.encode('ascii', 'replace')) @@ -614,11 +614,11 @@ class crm_case(osv.osv): # Send an email tools.email_send( - src, - dest, + src, + dest, "Reminder: [%s] %s" % (str(case.id), case.name, ), self.format_body(body), - reply_to=case.section_id.reply_to, + reply_to=case.section_id.reply_to, tinycrm=str(case.id), attach=attach_to_send ) @@ -646,6 +646,9 @@ class crm_case(osv.osv): if not case.email_from: raise osv.except_osv(_('Error!'), _('You must put a Partner eMail to use this action!')) + if not case.description: + raise osv.except_osv(_('Error!'), + _('Can not send mail with empty body,you should have description in the body')) self.__history(cr, uid, cases, _('Send'), history=True, email=False) for case in cases: self.write(cr, uid, [case.id], { @@ -655,15 +658,15 @@ class crm_case(osv.osv): }) emails = [case.email_from] + (case.email_cc or '').split(',') emails = filter(None, emails) - body = case.description + body = case.description or '' if case.user_id.signature: body += '\n\n%s' % (case.user_id.signature) tools.email_send( - case.user_id.address_id.email, + case.user_id.address_id.email, emails, - '['+str(case.id)+'] '+case.name, + '['+str(case.id)+'] '+case.name, self.format_body(body), - reply_to=case.section_id.reply_to, + reply_to=case.section_id.reply_to, tinycrm=str(case.id) ) return True diff --git a/addons/hr_expense/__terp__.py b/addons/hr_expense/__terp__.py index a326191b0b1..fd7ad9d2530 100644 --- a/addons/hr_expense/__terp__.py +++ b/addons/hr_expense/__terp__.py @@ -51,7 +51,7 @@ 'hr_expense_report.xml', 'process/hr_expense_process.xml' ], - 'demo_xml': ['hr_expense_demo.xml', 'hr.expense.expense.csv'], + 'demo_xml': ['hr.expense.expense.csv'], 'installable': True, 'active': False, 'certificate': '0062479841789', diff --git a/addons/l10n_be/account_pcmn_belgium.xml b/addons/l10n_be/account_pcmn_belgium.xml index ccae720c08b..b5d183565c9 100644 --- a/addons/l10n_be/account_pcmn_belgium.xml +++ b/addons/l10n_be/account_pcmn_belgium.xml @@ -6628,6 +6628,16 @@ + + + Cocontractants 0% + NSCS 0 + + percent + + + sale + TVA 0% @@ -6638,16 +6648,6 @@ sale - - - Cocontractants 0% - NSS 0 - - percent - - - sale - TVA 6% @@ -6655,7 +6655,7 @@ percent - + @@ -6669,7 +6669,7 @@ percent - + @@ -6683,7 +6683,7 @@ percent - + @@ -6705,7 +6705,7 @@ Biens et Services Divers Déductibles 0% (1) - + percent @@ -6715,7 +6715,7 @@ Biens et Services Divers Déductibles 0% (2) - + percent @@ -6724,7 +6724,7 @@ Marchandises Déductibles 0% - NSGSD 0 + NSTF 0 percent @@ -6744,23 +6744,12 @@ Marchandises Déductibles 0% (2) - + percent purchase - - - - Cocontractants 0% - NSS 0 - - percent - - - sale - Biens et Services Divers Déductibles 6% @@ -6776,7 +6765,7 @@ Biens et Services Divers Déductibles 6% (1) percent - + @@ -6788,7 +6777,7 @@ Biens et Services Divers Déductibles 6% (2) - + percent @@ -6809,7 +6798,7 @@ Biens et Services Divers Déductibles 12% (1) percent - + @@ -6821,7 +6810,7 @@ Biens et Services Divers Déductibles 12% (2) - + percent @@ -6842,7 +6831,7 @@ Biens Déductibles 21% (1) percent - + @@ -6854,7 +6843,7 @@ Biens Déductibles 21% (2) - + percent @@ -6875,7 +6864,7 @@ Services Divers Déductibles 21% (1) percent - + @@ -6887,7 +6876,7 @@ Services Divers Déductibles 21% (2) - + percent @@ -6910,7 +6899,7 @@ Marchandises Déductibles 6% (1) percent - + @@ -6922,7 +6911,7 @@ Marchandises Déductibles 6% (2) - + percent @@ -6943,7 +6932,7 @@ Marchandises Déductibles 12% (1) percent - + @@ -6955,7 +6944,7 @@ Marchandises Déductibles 12% (2) - + percent @@ -6976,7 +6965,7 @@ Marchandises Déductibles 21% (1) percent - + @@ -6988,7 +6977,7 @@ Marchandises Déductibles 21% (2) - + percent @@ -6999,9 +6988,9 @@ - VAT 0% Exportations + TVA 0% Exportations ISEXP 0 - + percent @@ -7028,9 +7017,9 @@ - VAT 0% Intracommunautaire + TVA 0% Intracommunautaire VI 0 - + percent @@ -7052,7 +7041,7 @@ Biens Déductibles 21% (1) percent - + @@ -7063,10 +7052,13 @@ Biens Déductibles 21% (2) - + percent + + + purchase @@ -7075,7 +7067,7 @@ Biens Déductibles 21% (3) - + percent @@ -7096,7 +7088,7 @@ Marchandises Déductibles 21% (1) percent - + @@ -7107,10 +7099,13 @@ Marchandises Déductibles 21% (2) - + percent + + + purchase @@ -7119,7 +7114,7 @@ Marchandises Déductibles 21% (3) - + percent @@ -7140,10 +7135,10 @@ Services Divers Déductibles 21% (1) percent - + - + purchase @@ -7151,10 +7146,13 @@ Services Divers Déductibles 21% (2) - + percent + + - + + purchase @@ -7163,7 +7161,7 @@ Services Divers Déductibles 21% (3) - + percent diff --git a/addons/l10n_be/fiscal_templates.xml b/addons/l10n_be/fiscal_templates.xml index 99a564b1a37..ff7b0e82f49 100644 --- a/addons/l10n_be/fiscal_templates.xml +++ b/addons/l10n_be/fiscal_templates.xml @@ -91,11 +91,6 @@ - - - - - diff --git a/addons/l10n_fr/__terp__.py b/addons/l10n_fr/__terp__.py index 6d9bccc590d..b3a1f507ce1 100644 --- a/addons/l10n_fr/__terp__.py +++ b/addons/l10n_fr/__terp__.py @@ -51,7 +51,7 @@ Credits: Sistheo Zeekom CrysaLEAD "security/ir.model.access.csv", ], "demo_xml" : [], - "certificate" : "435321693876313629", + "certificate" : "00435321693876313629", "active": False, "installable": True }