diff --git a/addons/account/project/report/cost_ledger.rml b/addons/account/project/report/cost_ledger.rml index bc3f2f2d7ca..4f495891378 100644 --- a/addons/account/project/report/cost_ledger.rml +++ b/addons/account/project/report/cost_ledger.rml @@ -181,7 +181,7 @@ Credit - Balance + Balance @@ -297,4 +297,4 @@ - \ No newline at end of file + diff --git a/addons/account/report/account_balance.rml b/addons/account/report/account_balance.rml index fac1983ef25..45385827d96 100644 --- a/addons/account/report/account_balance.rml +++ b/addons/account/report/account_balance.rml @@ -283,7 +283,7 @@ - + Code Account @@ -294,7 +294,7 @@ [[ repeatIn(lines(data['form']), 'a') ]][[ (a['type']<>'view' and setTag('para','para',{'fontName':"Helvetica"})) or removeParentNode('font') ]][[ a['code'] or removeParentNode('tr') ]] [[ (a['type']<>'view' and setTag('para','para',{'fontName':"Helvetica"})) or removeParentNode('font') ]][[ '..'*(a['level']-1) ]][[ a['name'] ]] - [[ (a['type']<>'view' and setTag('para','para',{'fontName':"Helvetica"})) or removeParentNode('font') ]][[ a['type']=='view' and removeParentNode('font') ]][[ formatLang(a['debit']) ]][[ a['type']<>'view' and removeParentNode('font') ]] [[formatLang(a['debit']) ]] + [[ (a['type']<>'view' and setTag('para','para',{'fontName':"Helvetica"})) or removeParentNode('font') ]][[ a['type']=='view' and removeParentNode('font') ]][[ formatLang(a['debit']) ]][[ a['type']<>'view' and removeParentNode('font') ]] [[formatLang(a['debit']) ]] [[ (a['type']<>'view' and setTag('para','para',{'fontName':"Helvetica"})) or removeParentNode('font')]][[ a['type']=='view' and removeParentNode('font') ]][[ formatLang(a['credit']) ]][[ a['type']<>'view' and removeParentNode('font') ]] [[ formatLang(a['credit']) ]] [[ (a['type']<>'view' and setTag('para','para',{'fontName':"Helvetica"})) or removeParentNode('font') ]][[ a['type']=='view' and removeParentNode('font') ]][[ formatLang(a['balance']) ]] [[ company.currency_id.symbol ]][[ a['type']<>'view' and removeParentNode('font') ]] [[ formatLang(a['balance']) ]] [[ company.currency_id.symbol ]] @@ -303,4 +303,4 @@ - \ No newline at end of file + diff --git a/addons/account/report/account_general_journal.rml b/addons/account/report/account_general_journal.rml index 0fced27408d..84a9ee6a780 100644 --- a/addons/account/report/account_general_journal.rml +++ b/addons/account/report/account_general_journal.rml @@ -343,11 +343,11 @@
- [[lines(o.id) and removeParentNode('para') or removeParentNode('section') ]] + [[ repeatIn(lines(o.id),'line')]] [[ display_currency(data) == False or removeParentNode('blockTable') ]] - [[ repeatIn(lines(o.id),'line')]] [[ line['code'] ]] + [[ line['code'] ]] [[ line['name'] ]] @@ -365,10 +365,10 @@
+ [[ repeatIn(lines(o.id),'line')]] [[ display_currency(data) or removeParentNode('blockTable') ]] - [[lines(o.id) and removeParentNode('para') or removeParentNode('section') ]] - [[ repeatIn(lines(o.id),'line')]] [[ line['code'] ]] + [[ line['code'] ]] [[ line['name'] ]] [[ formatLang(line['debit'] )]] [[ formatLang(line['credit']) ]] diff --git a/addons/account/report/account_general_ledger.rml b/addons/account/report/account_general_ledger.rml index 5a3812206aa..7ded26849bd 100644 --- a/addons/account/report/account_general_ledger.rml +++ b/addons/account/report/account_general_ledger.rml @@ -245,7 +245,7 @@ Move Entry Label Debit - Crebit + Credit Balance @@ -254,7 +254,7 @@ [[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]] - + [[ '..'*(o.level-1) ]][[ o.code or '']] [[ o.name or '']] @@ -305,7 +305,7 @@ [[ data['form']['amount_currency'] == True or removeParentNode('blockTable') ]] - + [[ '..'*(o.level-1) ]][[ o.code or '' ]] [[ o.name or '' ]] diff --git a/addons/account/report/account_general_ledger_landscape.rml b/addons/account/report/account_general_ledger_landscape.rml index 80a55c76905..163d5cb5f2c 100644 --- a/addons/account/report/account_general_ledger_landscape.rml +++ b/addons/account/report/account_general_ledger_landscape.rml @@ -262,7 +262,7 @@ [[data['form']['amount_currency'] == True or removeParentNode('blockTable')]] - + [[ '..'*(o.level-1) ]][[ o.code ]] [[ o.name ]] @@ -323,7 +323,7 @@ [[data['form']['amount_currency'] == False or removeParentNode('blockTable')]] - + [[ '..'*(o.level-1) ]][[ o.code ]] [[ o.name ]] diff --git a/addons/account/report/account_journal.rml b/addons/account/report/account_journal.rml index e153ae20adb..5b7ebf78766 100644 --- a/addons/account/report/account_journal.rml +++ b/addons/account/report/account_journal.rml @@ -252,7 +252,7 @@ Entry No A/c No. Partner - Move - Entry label + Move/Entry label Debit Credit Balance @@ -264,8 +264,8 @@ [[ formatLang(sum_debit(o.period_id.id, o.journal_id.id)) ]] - [[ formatLang(sum_credit(o.period_id.id, o.journal_id.id)) ]] - [[ formatLang((sum_credit(o.period_id.id, o.journal_id.id) - sum_debit(o.period_id.id, o.journal_id.id))) ]] [[ company.currency_id.symbol ]] + [[ formatLang(sum_credit(o.period_id.id, o.journal_id.id)) ]] + [[ formatLang((sum_credit(o.period_id.id, o.journal_id.id)-sum_debit(o.period_id.id, o.journal_id.id))) ]] [[ company.currency_id.symbol ]] [[lines(o.period_id.id, o.journal_id.id) or removeParentNode('story') ]] @@ -287,7 +287,7 @@ Entry No A/c No. Partner - Move - Entry label + Move/Entry label Debit Credit Balance diff --git a/addons/account/report/account_partner_balance.rml b/addons/account/report/account_partner_balance.rml index f145074482d..eee31e87d6c 100644 --- a/addons/account/report/account_partner_balance.rml +++ b/addons/account/report/account_partner_balance.rml @@ -234,12 +234,12 @@ Debit Credit Balance - In dispute + In dispute Total: - [[ formatLang(sum_debit()) ]] + [[ formatLang(sum_debit()) ]] [[ formatLang(sum_credit()) ]] [[ formatLang((sum_debit()-sum_credit())) ]] [[ company.currency_id.symbol ]] [[ formatLang(sum_litige()) ]] [[ company.currency_id.symbol ]] diff --git a/addons/account_budget/report/analytic_account_budget_report.rml b/addons/account_budget/report/analytic_account_budget_report.rml index e349b3d4920..ea800685470 100644 --- a/addons/account_budget/report/analytic_account_budget_report.rml +++ b/addons/account_budget/report/analytic_account_budget_report.rml @@ -104,7 +104,7 @@ Currency: [[ company.currency_id.name ]] - Printed at: [[ formatLang(time.strftime('%Y-%m-%d'),date=True) ]] at [[ time.strftime('%H:%M:%S')]] + Printed at: [[ formatLang(time.strftime('%Y-%m-%d'),date=True) ]] at [[ time.strftime('%H:%M:%S')]] @@ -186,4 +186,4 @@ - \ No newline at end of file + diff --git a/addons/crm/crm.py b/addons/crm/crm.py index 4f21eb6f162..edfe79540e6 100644 --- a/addons/crm/crm.py +++ b/addons/crm/crm.py @@ -179,7 +179,7 @@ class crm_case(object): if not stage_record.section_id: section_id = False # only select stages without section - domain = [('object_id.model', '=', self._name), ('section_id', '=', section_id)] + domain = [('object_id.model', '=', self._name), '|', ('section_id', '=', section_id),('section_id','=',False)] if 'force_domain' in context and context['force_domain']: domain += context['force_domain'] sid = stage_obj.search(cr, uid, domain, context=context) diff --git a/addons/crm/crm_lead_menu.xml b/addons/crm/crm_lead_menu.xml index 0bb854fea17..65daf5d79d5 100644 --- a/addons/crm/crm_lead_menu.xml +++ b/addons/crm/crm_lead_menu.xml @@ -10,7 +10,7 @@ {"search_default_user_id":uid,'search_default_current':1} - {'search_default_current':1, 'default_type': 'lead'} + {'search_default_current':1, 'default_type': 'lead', 'search_default_section_id':section_id} A lead is a first, unqualified, contact with a new prospect. Use leads when you import a database of prospects or integrate your website's contact form with OpenERP. After having been qualified, the lead can be converted to a partner and a business opportunity for a further detailed tracking of the related activities. diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml index 2df1369bbb1..40317a4b188 100644 --- a/addons/crm/crm_lead_view.xml +++ b/addons/crm/crm_lead_view.xml @@ -32,20 +32,6 @@ id="menu_crm_lead_categ" name="Categories" parent="base.menu_crm_config_lead" sequence="1"/> - - - Lead Sources - crm.case.resource.type - form - - [('object_id.model', '=', 'crm.lead')] - {'object_id':'crm.lead'} - - - @@ -70,7 +56,7 @@ + domain="[('section_id','=',section_id), ('section_id','=',False), ('object_id.model', '=', 'crm.lead')]" />