-
+
diff --git a/addons/account/project/analytic_account_demo.xml b/addons/account/project/analytic_account_demo.xml
index 8c4a5f1d62e..680d1a75f97 100644
--- a/addons/account/project/analytic_account_demo.xml
+++ b/addons/account/project/analytic_account_demo.xml
@@ -23,7 +23,7 @@
102
- Trainings
+ Training
4
@@ -68,7 +68,7 @@
- Trainings
+ Training
5
@@ -179,7 +179,7 @@
- Trainings
+ Training
1
diff --git a/addons/account/project/project.py b/addons/account/project/project.py
index 457b9a92dba..c30a6a37200 100644
--- a/addons/account/project/project.py
+++ b/addons/account/project/project.py
@@ -124,21 +124,21 @@ class account_analytic_account(osv.osv):
return result
_columns = {
- 'name' : fields.char('Account name', size=64, required=True),
- 'complete_name': fields.function(_complete_name_calc, method=True, type='char', string='Account Name'),
- 'code' : fields.char('Account code', size=24),
+ 'name' : fields.char('Account Name', size=64, required=True),
+ 'complete_name': fields.function(_complete_name_calc, method=True, type='char', string='Full Account Name'),
+ 'code' : fields.char('Account Code', size=24),
'active' : fields.boolean('Active'),
- 'type': fields.selection([('view','View'), ('normal','Normal')], 'Account type'),
+ 'type': fields.selection([('view','View'), ('normal','Normal')], 'Account Type'),
'description' : fields.text('Description'),
- 'parent_id': fields.many2one('account.analytic.account', 'Parent analytic account', select=2),
- 'child_ids': fields.one2many('account.analytic.account', 'parent_id', 'Childs Accounts'),
- 'line_ids': fields.one2many('account.analytic.line', 'account_id', 'Analytic entries'),
+ 'parent_id': fields.many2one('account.analytic.account', 'Parent Analytic Account', select=2),
+ 'child_ids': fields.one2many('account.analytic.account', 'parent_id', 'Child Accounts'),
+ 'line_ids': fields.one2many('account.analytic.line', 'account_id', 'Analytic Entries'),
'balance' : fields.function(_balance_calc, method=True, type='float', string='Balance'),
'debit' : fields.function(_debit_calc, method=True, type='float', string='Debit'),
'credit' : fields.function(_credit_calc, method=True, type='float', string='Credit'),
'quantity': fields.function(_quantity_calc, method=True, type='float', string='Quantity'),
- 'quantity_max': fields.float('Maximal quantity'),
- 'partner_id' : fields.many2one('res.partner', 'Associated partner'),
+ 'quantity_max': fields.float('Maximum Quantity'),
+ 'partner_id' : fields.many2one('res.partner', 'Associated Partner'),
'contact_id' : fields.many2one('res.partner.address', 'Contact'),
'user_id' : fields.many2one('res.users', 'Account Manager'),
'date_start': fields.date('Date Start'),
diff --git a/addons/account/report/invoice.rml b/addons/account/report/invoice.rml
index 0031fc50625..c38a1b39623 100644
--- a/addons/account/report/invoice.rml
+++ b/addons/account/report/invoice.rml
@@ -495,7 +495,7 @@
[[ formatLang(t.base) ]]
|
- [[ formatLang(t.amount) ]]
+ [[ formatLang(t.amount) ]][[ t.tax_code_id.notprintable and removeParentNode('blockTable') or '' ]]
|
diff --git a/addons/account/wizard/wizard_open_closed_fiscalyear.py b/addons/account/wizard/wizard_open_closed_fiscalyear.py
index 0b8e2611c72..1fbb8302694 100644
--- a/addons/account/wizard/wizard_open_closed_fiscalyear.py
+++ b/addons/account/wizard/wizard_open_closed_fiscalyear.py
@@ -39,7 +39,7 @@ def _remove_entries(self, cr, uid, data, context):
pool = pooler.get_pool(cr.dbname)
data_fyear = pool.get('account.fiscalyear').browse(cr,uid,data['form']['fyear_id'])
if not data_fyear.end_journal_period_id:
- raise wizard.except_wizard(_('Error'), _('No journal for ending writings have been defined for the fiscal year'))
+ raise wizard.except_wizard(_('Error'), _('No journal for ending writing has been defined for the fiscal year'))
period_journal = data_fyear.end_journal_period_id
ids_move = pool.get('account.move').search(cr,uid,[('journal_id','=',period_journal.journal_id.id),('period_id','=',period_journal.period_id.id)])
if ids_move:
diff --git a/addons/account/wizard/wizard_statement_from_invoice.py b/addons/account/wizard/wizard_statement_from_invoice.py
index 7ee4dcc1cb9..665c735f12b 100644
--- a/addons/account/wizard/wizard_statement_from_invoice.py
+++ b/addons/account/wizard/wizard_statement_from_invoice.py
@@ -44,7 +44,7 @@ START_FIELD = {
}
START_FORM = '''
-''' % (','.join([str(x) for x in line_ids]))
diff --git a/addons/account_analytic_plans/__terp__.py b/addons/account_analytic_plans/__terp__.py
index 4aa0112276f..722bf2727d3 100644
--- a/addons/account_analytic_plans/__terp__.py
+++ b/addons/account_analytic_plans/__terp__.py
@@ -41,7 +41,7 @@ For example, you can define the following analytic structure:
Here, we have two plans: Projects and Salesman. An invoice line must
be able to write analytic entries in the 2 plans: SubProj 1.1 and
-Fabien. The amount can also be splitted. The following example is for
+Fabien. The amount can also be split. The following example is for
an invoice that touches the two subproject and assigned to one salesman:
Plan1:
diff --git a/addons/account_budget/crossovered_budget.py b/addons/account_budget/crossovered_budget.py
index 7ac6b4bcd15..a609234fc7e 100644
--- a/addons/account_budget/crossovered_budget.py
+++ b/addons/account_budget/crossovered_budget.py
@@ -159,7 +159,7 @@ class crossovered_budget_lines(osv.osv):
def _prac_amt(self, cr, uid, ids,context={}):
res = {}
for line in self.browse(cr, uid, ids):
- acc_ids = ','.join([str(x.id) for x in line.general_budget_id.account_ids])
+ acc_ids = [x.id for x in line.general_budget_id.account_ids]
if not acc_ids:
raise osv.except_osv('Error!',"The General Budget '" + str(line.general_budget_id.name) + "' has no Accounts!" )
date_to = line.date_to
@@ -168,11 +168,13 @@ class crossovered_budget_lines(osv.osv):
date_from = context['wizard_date_from']
if context.has_key('wizard_date_to'):
date_to = context['wizard_date_to']
- cr.execute("select sum(amount) from account_analytic_line where account_id=%s and (date between to_date(%s,'yyyy-mm-dd') and to_date(%s,'yyyy-mm-dd')) and general_account_id in (%s)", (line.analytic_account_id.id,date_from,date_to,acc_ids))
- result=cr.fetchone()[0]
- if result==None:
- result=0.00
- res[line.id]=result
+ cr.execute("select sum(amount) from account_analytic_line where account_id=%%s and (date "
+ "between to_date(%%s,'yyyy-mm-dd') and to_date(%%s,'yyyy-mm-dd')) and "
+ "general_account_id in (%s)" % ",".join(['%s']*len(acc_ids)), (line.analytic_account_id.id,date_from,date_to,acc_ids))
+ result = cr.fetchone()[0]
+ if result is None:
+ result = 0.00
+ res[line.id] = result
return res
def _prac(self, cr, uid, ids,name,args,context):
diff --git a/addons/account_followup/followup_demo.xml b/addons/account_followup/followup_demo.xml
index 7f25af3b1d0..a7ffb50b44a 100644
--- a/addons/account_followup/followup_demo.xml
+++ b/addons/account_followup/followup_demo.xml
@@ -4,6 +4,7 @@
Default follow-up
+
First letter after 15 net days, 30 net days and 45 days end of month levels.
@@ -13,20 +14,51 @@
days
15
+ Date : %(date)s
+
+Dear %(partner_name)s,
+
+Exception made if there was a mistake of ours, it seems that the following amount staid unpaid. Please, take appropriate measures in order to carry out this payment in the next 8 days.
+
+Would your payment have been carried out after this mail was sent, please consider the present one as void. Do not hesitate to contact our accounting departement at (+32).10.68.94.39.
+
+Best regards,
+
Level 1 : 30 net days
1
days
30
+ LEVEL 1:
+Date : %(date)s
+
+Dear %(partner_name)s,
+
+Exception made if there was a mistake of ours, it seems that the following amount staid unpaid. Please, take appropriate measures in order to carry out this payment in the next 8 days.
+
+Would your payment have been carried out after this mail was sent, please consider the present one as void. Do not hesitate to contact our accounting departement at (+32).10.68.94.39.
+
+Best regards,
+
Level 2 : 45 days end of month
2
end_of_month
45
+ LEVEL 2:
+Date : %(date)s
+
+Dear %(partner_name)s,
+
+Exception made if there was a mistake of ours, it seems that the following amount staid unpaid. Please, take appropriate measures in order to carry out this payment in the next 8 days.
+
+Would your payment have been carried out after this mail was sent, please consider the present one as void. Do not hesitate to contact our accounting departement at (+32).10.68.94.39.
+
+Best regards,
diff --git a/addons/account_followup/followup_report.py b/addons/account_followup/followup_report.py
index c487bdf1abf..259fbc56c4e 100644
--- a/addons/account_followup/followup_report.py
+++ b/addons/account_followup/followup_report.py
@@ -50,7 +50,7 @@ class account_followup_stat(osv.osv):
cr.execute("""
create or replace view account_followup_stat as (
select
- min(l.id) as id,
+ l.partner_id as id,
l.partner_id as name,
min(l.date) as date_move,
max(l.date) as date_move_last,
@@ -66,7 +66,7 @@ class account_followup_stat(osv.osv):
account_account a on (l.account_id=a.id)
where
l.reconcile_id is NULL and
- a.type in ('receivable', 'payable')
+ a.type = 'receivable'
and a.active and
l.partner_id is not null
group by
diff --git a/addons/account_followup/followup_report_view.xml b/addons/account_followup/followup_report_view.xml
index 53fec56b46c..54af019192b 100644
--- a/addons/account_followup/followup_report_view.xml
+++ b/addons/account_followup/followup_report_view.xml
@@ -41,6 +41,7 @@