@@ -258,8 +258,8 @@
| [[ o.code or '']] [[ o.name or '']] |
|
- [[formatLang(sum_debit_account(o)) ]] [[ company.currency_id.symbol ]] |
- [[formatLang(sum_credit_account(o)) ]] [[ company.currency_id.symbol ]] |
+ [[formatLang(sum_debit_account(o)) ]] |
+ [[formatLang(sum_credit_account(o)) ]] |
[[ formatLang(sum_balance_account(o)) ]] [[ company.currency_id.symbol ]] |
@@ -278,8 +278,8 @@
[[ line['lref'] or '']] |
[[ line['move'] or '']] |
[[ line['lname'] or '' ]] |
- [[ formatLang(line['debit']) ]] [[ company.currency_id.symbol ]] |
- [[ formatLang(line['credit']) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(line['debit']) ]] |
+ [[ formatLang(line['credit']) ]] |
[[ formatLang(line['progress']) ]] [[ company.currency_id.symbol ]] |
@@ -294,9 +294,9 @@
Ref |
Move |
Entry Label |
- Debit([[ company.currency_id.code]]) |
- Credit([[ company.currency_id.code]]) |
- Balance([[ company.currency_id.code]]) |
+ Debit |
+ Credit |
+ Balance |
Currency |
@@ -309,8 +309,8 @@
| [[ o.code or '' ]] [[ o.name or '' ]] |
|
- [[formatLang(sum_debit_account(o)) ]] [[ company.currency_id.symbol ]] |
- [[formatLang(sum_credit_account(o)) ]] [[ company.currency_id.symbol ]] |
+ [[formatLang(sum_debit_account(o)) ]] |
+ [[formatLang(sum_credit_account(o)) ]] |
[[formatLang(sum_balance_account(o)) ]] [[ company.currency_id.symbol ]] |
[[ o.currency_id and sum_currency_amount_account(o) +o.currency_id.symbol or '' ]] |
@@ -331,8 +331,8 @@
[[ line['lref'] or '']] |
[[ line['move'] or '' ]] |
[[ line['lname'] or '' ]] |
- [[ formatLang(line['debit']) ]] [[ company.currency_id.symbol ]] |
- [[ formatLang(line['credit']) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(line['debit']) ]] |
+ [[ formatLang(line['credit']) ]] |
[[ formatLang(line['progress']) ]] [[ company.currency_id.symbol ]] |
[[ formatLang(line['amount_currency'] or '') ]] [[ line['currency_code'] or '']] |
diff --git a/addons/account/report/account_general_ledger_landscape.rml b/addons/account/report/account_general_ledger_landscape.rml
index 11065d3fc49..d6123e0fd5a 100644
--- a/addons/account/report/account_general_ledger_landscape.rml
+++ b/addons/account/report/account_general_ledger_landscape.rml
@@ -249,9 +249,9 @@
Move |
Entry Label |
Counterpart |
- Debit([[ company.currency_id.code]]) |
- Credit([[ company.currency_id.code]]) |
- Balance([[ company.currency_id.code]]) |
+ Debit |
+ Credit |
+ Balance |
Currency |
@@ -266,8 +266,8 @@
| [[ o.code ]] [[ o.name ]] |
|
- [[formatLang(sum_debit_account(o)) ]] [[ company.currency_id.symbol ]] |
- [[formatLang(sum_credit_account(o)) ]] [[ company.currency_id.symbol ]] |
+ [[formatLang(sum_debit_account(o)) ]] |
+ [[formatLang(sum_credit_account(o)) ]] |
[[formatLang(sum_balance_account(o)) ]] [[ company.currency_id.symbol ]] |
[[ o.currency_id and sum_currency_amount_account(o) +o.currency_id.code or '' ]] |
@@ -292,8 +292,8 @@
[[ line['move'] ]] |
[[ line['lname'] ]] |
[[ strip_name(line['line_corresp'].replace(', ',','),40) ]] |
- [[ formatLang(line['debit']) ]] [[ company.currency_id.symbol ]] |
- [[ formatLang(line['credit']) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(line['debit']) ]] |
+ [[ formatLang(line['credit']) ]] |
[[ formatLang(line['progress']) ]] [[ company.currency_id.symbol ]] |
[[ formatLang(line['amount_currency'] or '')]] [[ line['currency_code'] or '' ]] |
@@ -310,9 +310,9 @@
Move |
Entry Label |
Counterpart |
- Debit([[ company.currency_id.code]]) |
- Credit([[ company.currency_id.code]]) |
- Balance([[ company.currency_id.code]]) |
+ Debit |
+ Credit |
+ Balance |
@@ -327,8 +327,8 @@
| [[ o.code ]] [[ o.name ]] |
|
- [[formatLang(sum_debit_account(o)) ]] [[ company.currency_id.symbol ]] |
- [[formatLang(sum_credit_account(o)) ]] [[ company.currency_id.symbol ]] |
+ [[formatLang(sum_debit_account(o)) ]] |
+ [[formatLang(sum_credit_account(o)) ]] |
[[formatLang(sum_balance_account(o)) ]] [[ company.currency_id.symbol ]] |
@@ -352,8 +352,8 @@
[[ line['move'] ]] |
[[ line['lname'] ]] |
[[ strip_name(line['line_corresp'],15) ]] |
- [[ formatLang(line['debit']) ]] [[ company.currency_id.symbol ]] |
- [[ formatLang(line['credit']) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(line['debit']) ]] |
+ [[ formatLang(line['credit']) ]] |
[[ formatLang(line['progress']) ]] [[ company.currency_id.symbol ]] |
diff --git a/addons/account/report/account_journal.rml b/addons/account/report/account_journal.rml
index 41261a12c1a..e153ae20adb 100644
--- a/addons/account/report/account_journal.rml
+++ b/addons/account/report/account_journal.rml
@@ -253,9 +253,9 @@
A/c No. |
Partner |
Move - Entry label |
- Debit([[ company.currency_id.code]]) |
- Credit([[ company.currency_id.code]]) |
- Balance([[ company.currency_id.code]]) |
+ Debit |
+ Credit |
+ Balance |
| [[o.period_id.name ]] |
@@ -263,8 +263,8 @@
|
|
|
- [[ formatLang(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)) ]] [[ company.currency_id.symbol ]] |
+ [[ 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 ]] |
[[lines(o.period_id.id, o.journal_id.id) or removeParentNode('story') ]]
@@ -274,8 +274,8 @@
[[ line.account_id.code ]] |
[[ line.partner_id and line.partner_id.name ]] |
[[ line.move_id.name ]] - [[ line.name ]] |
- [[ formatLang(line.debit) ]] [[ company.currency_id.symbol ]] |
- [[ formatLang(line.credit) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(line.debit) ]] |
+ [[ formatLang(line.credit) ]] |
[[ formatLang(line.credit - line.debit) ]] [[ company.currency_id.symbol ]] |
@@ -288,9 +288,9 @@
A/c No. |
Partner |
Move - Entry label |
- Debit([[ company.currency_id.code]]) |
- Credit([[ company.currency_id.code]]) |
- Balance([[ company.currency_id.code]]) |
+ Debit |
+ Credit |
+ Balance |
Currency |
@@ -299,8 +299,8 @@
|
|
|
- [[ formatLang(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)) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(sum_debit(o.period_id.id, o.journal_id.id)) ]] |
+ [[ formatLang(sum_credit(o.period_id.id, o.journal_id.id)) ]] |
[[ formatLang((sum_debit(o.period_id.id, o.journal_id.id) - sum_credit(o.period_id.id, o.journal_id.id))) ]] [[ company.currency_id.symbol ]] |
[[lines(o.period_id.id, o.journal_id.id) or removeParentNode('story') ]]
@@ -310,8 +310,8 @@
[[ line.account_id.code ]] |
[[ line.partner_id and line.partner_id.name ]] |
[[ line.move_id.name ]] - [[ line.name ]] |
- [[ formatLang(line.debit) ]] [[ company.currency_id.symbol ]] |
- [[ formatLang(line.credit) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(line.debit) ]] |
+ [[ formatLang(line.credit) ]] |
[[ formatLang(line.credit - line.debit) ]] [[ company.currency_id.symbol ]] |
[[ line.currency_id and formatLang(line.amount_currency) or '' ]] [[ line.currency_id.symbol or '']] |
diff --git a/addons/account/report/account_partner_balance.rml b/addons/account/report/account_partner_balance.rml
index c5ea2946507..a11df4e7576 100644
--- a/addons/account/report/account_partner_balance.rml
+++ b/addons/account/report/account_partner_balance.rml
@@ -231,24 +231,24 @@
| Code |
(Account/Partner) Name |
- Debit([[ company.currency_id.code]]) |
- Credit([[ company.currency_id.code]]) |
- Balance([[ company.currency_id.code]]) |
- In dispute([[ company.currency_id.code]]) |
+ Debit |
+ Credit |
+ Balance |
+ In dispute |
- | Total([[ company.currency_id.code]]) : |
+ Total: |
|
- [[ formatLang(sum_debit()) ]] [[ company.currency_id.symbol ]] |
- [[ formatLang(sum_credit()) ]] [[ company.currency_id.symbol ]] |
+ [[ formatLang(sum_debit()) ]] |
+ [[ formatLang(sum_credit()) ]] |
[[ formatLang((solde_debit()-solde_credit())) ]] [[ company.currency_id.symbol ]] |
[[ formatLang(sum_litige()) ]] [[ company.currency_id.symbol ]] |
| [[ repeatIn(lines(), 'a') ]][[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ a['ref'] ]] [[ a['type']==3 and a['code'] ]] |
[[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ a['name'] ]] |
- [[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ formatLang(a['debit']) ]] [[ company.currency_id.symbol ]] |
- [[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ formatLang(a['credit']) ]] [[ company.currency_id.symbol ]] |
+ [[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ formatLang(a['debit']) ]] |
+ [[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ formatLang(a['credit']) ]] |
[[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ formatLang(a['balance']) ]] [[ company.currency_id.symbol ]] |
[[ (a['type']==3 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ formatLang(a['enlitige'] or 0.0) ]] [[ company.currency_id.symbol ]] |
diff --git a/addons/account/report/account_partner_ledger.rml b/addons/account/report/account_partner_ledger.rml
index 88b61dd43f6..7de67780056 100644
--- a/addons/account/report/account_partner_ledger.rml
+++ b/addons/account/report/account_partner_ledger.rml
@@ -295,13 +295,13 @@
Entry Label
- Debit([[ get_currency(data) ]])
+ Debit
|
- Credit([[ get_currency(data) ]])
+ Credit
|
- Balance([[ get_currency(data) ]])
+ Balance
|
@@ -318,10 +318,10 @@
[[ p.ref ]] - [[ p.name ]]
- [[ formatLang((sum_debit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_debit_partner(p))) ]]
|
- [[ formatLang((sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_credit_partner(p))) ]]
|
[[ formatLang((sum_debit_partner(p) - sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
@@ -332,10 +332,10 @@
Initial Balance
|
- [[ formatLang(get_intial_balance(p)[0][0])]] [[ company.currency_id.symbol ]]
+ [[ formatLang(get_intial_balance(p)[0][0])]]
|
- [[ formatLang(get_intial_balance(p)[0][1]) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(get_intial_balance(p)[0][1]) ]]
|
[[ formatLang(get_intial_balance(p)[0][2]) ]] [[ company.currency_id.symbol ]]
@@ -365,10 +365,10 @@
[[ line['ref'] ]] - [[ line['name'] ]]
|
- [[ formatLang((line['debit'])) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['debit'])) ]]
|
- [[ formatLang((line['credit'])) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['credit'])) ]]
|
[[ formatLang((line['progress'])) ]] [[ company.currency_id.symbol ]]
@@ -397,13 +397,13 @@
Entry Label
|
- Debit([[ get_currency(data) ]])
+ Debit
|
- Credit([[ get_currency(data) ]])
+ Credit
|
- Balance([[ get_currency(data) ]])
+ Balance
|
Currency
@@ -423,10 +423,10 @@
[[ p.ref ]] - [[ p.name ]]
|
- [[ formatLang((sum_debit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_debit_partner(p))) ]]
|
- [[ formatLang((sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_credit_partner(p))) ]]
|
[[ formatLang((sum_debit_partner(p) - sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
@@ -442,10 +442,10 @@
Initial Balance
|
- [[ formatLang(get_intial_balance(p)[0][0]) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(get_intial_balance(p)[0][0]) ]]
|
- [[ formatLang(get_intial_balance(p)[0][1]) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(get_intial_balance(p)[0][1]) ]]
|
[[ formatLang(get_intial_balance(p)[0][2]) ]] [[ company.currency_id.symbol ]]
@@ -478,10 +478,10 @@
[[ (line['ref'] or '') + ' ' + line['name'] ]]
|
- [[ formatLang((line['debit'])) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['debit'])) ]]
|
- [[ formatLang((line['credit'])) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['credit'])) ]]
|
[[ formatLang((line['progress'])) ]] [[ company.currency_id.symbol ]]
diff --git a/addons/account/report/account_partner_ledger_other.rml b/addons/account/report/account_partner_ledger_other.rml
index 1e8429546db..53cb0d46d83 100644
--- a/addons/account/report/account_partner_ledger_other.rml
+++ b/addons/account/report/account_partner_ledger_other.rml
@@ -449,13 +449,13 @@
Entry Label
|
- Debit([[ get_currency(data) ]])
+ Debit
|
- Credit([[ get_currency(data) ]])
+ Credit
|
- Balance([[ get_currency(data) ]])
+ Balance
|
@@ -468,10 +468,10 @@
[[ p.ref ]] - [[ p.name ]]
- [[ formatLang((sum_debit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_debit_partner(p))) ]]
|
- [[ formatLang((sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_credit_partner(p))) ]]
|
[[ formatLang((sum_debit_partner(p) - sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
@@ -482,10 +482,10 @@
Initial Balance
|
- [[ formatLang(get_intial_balance(p)[0][0])]] [[ company.currency_id.symbol ]]
+ [[ formatLang(get_intial_balance(p)[0][0])]]
|
- [[ formatLang(get_intial_balance(p)[0][1]) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(get_intial_balance(p)[0][1]) ]]
|
[[ formatLang(get_intial_balance(p)[0][2]) ]] [[ company.currency_id.symbol ]]
@@ -512,10 +512,10 @@
[[ (line['ref'] or '') + ' ' + line['name'] ]]
|
- [[ formatLang((line['debit'])) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['debit'])) ]]
|
- [[ formatLang((line['credit'])) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['credit'])) ]]
|
[[ formatLang((line['progress'])) ]] [[ company.currency_id.symbol ]]
@@ -542,13 +542,13 @@
Entry Label
|
- Debit([[ get_currency(data) ]])
+ Debit
|
- Credit([[ get_currency(data) ]])
+ Credit
|
- Balance([[ get_currency(data) ]])
+ Balance
|
Currency
@@ -565,10 +565,10 @@
[[ p.ref ]] - [[ p.name ]]
|
- [[ formatLang((sum_debit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_debit_partner(p))) ]]
|
- [[ formatLang((sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_credit_partner(p))) ]]
|
[[ formatLang((sum_debit_partner(p) - sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
@@ -584,10 +584,10 @@
Initial Balance
|
- [[ formatLang(get_intial_balance(p)[0][0]) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(get_intial_balance(p)[0][0]) ]]
|
- [[ formatLang(get_intial_balance(p)[0][1]) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(get_intial_balance(p)[0][1]) ]]
|
[[ formatLang(get_intial_balance(p)[0][2]) ]] [[ company.currency_id.symbol ]]
@@ -617,10 +617,10 @@
[[ (line['ref'] or '') + ' ' + line['name'] ]]
|
- [[ formatLang((line['debit'])) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['debit'])) ]]
|
- [[ formatLang((line['credit'])) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['credit'])) ]]
|
[[ formatLang((line['progress'])) ]] [[ company.currency_id.symbol ]]
diff --git a/addons/account/report/account_profit_horizontal.rml b/addons/account/report/account_profit_horizontal.rml
index 84e39da1a38..d55b2e93a43 100644
--- a/addons/account/report/account_profit_horizontal.rml
+++ b/addons/account/report/account_profit_horizontal.rml
@@ -29,31 +29,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -74,31 +51,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -249,7 +202,7 @@
Perticular
|
- Total Amount([[ get_currency(data) ]])
+ Balance
|
Code
@@ -258,7 +211,7 @@
Perticular
|
- Total Amount([[ get_currency(data) ]])
+ Balance
|
@@ -317,13 +270,13 @@
|
- Total:([[ get_currency(data['form']) ]] [[ company.currency_id.code]] )
+ Total:
|
[[ formatLang(abs(sum_dr())) ]] [[ company.currency_id.symbol ]]
|
- Total:([[ get_currency(data['form']) ]] [[ company.currency_id.code]])
+ Total:
|
[[ formatLang(abs(sum_cr())) ]] [[ company.currency_id.symbol ]]
diff --git a/addons/account/report/account_profit_loss.rml b/addons/account/report/account_profit_loss.rml
index 144cd33fff6..272945e658e 100644
--- a/addons/account/report/account_profit_loss.rml
+++ b/addons/account/report/account_profit_loss.rml
@@ -25,19 +25,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -50,36 +39,13 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -89,19 +55,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -249,7 +203,7 @@
Expenses
|
- Total Amount([[ get_currency(data) ]])
+ Balance
|
@@ -304,7 +258,7 @@
Incomes
|
- Total Amount([[ get_currency(data) ]])
+ Balance
|
@@ -339,7 +293,7 @@
|
- Total:([[ get_currency(data) ]])
+ Total:
|
[[ formatLang(abs(sum_cr())) ]] [[ company.currency_id.symbol ]]
diff --git a/addons/account/report/account_tax_code.rml b/addons/account/report/account_tax_code.rml
index 9c495dd4834..82297022fb4 100644
--- a/addons/account/report/account_tax_code.rml
+++ b/addons/account/report/account_tax_code.rml
@@ -102,10 +102,10 @@
Entry Label
|
- Debit([[ company.currency_id.name ]])
+ Debit
|
- Credit([[ company.currency_id.name ]])
+ Credit
|
diff --git a/addons/account/report/compare_account_balance.rml b/addons/account/report/compare_account_balance.rml
index 0a1e59d2e9c..19e88088803 100644
--- a/addons/account/report/compare_account_balance.rml
+++ b/addons/account/report/compare_account_balance.rml
@@ -210,13 +210,13 @@
[[ data['form']['compare_pattern']!='none' and 'C.S.Y.T.(C./P)' or removeParentNode('para') ]]
- Debit([[company.currency_id.code]])
+ Debit
|
- Credit([[company.currency_id.code]])
+ Credit
|
- Balance([[company.currency_id.code]])
+ Balance
|
@@ -233,13 +233,13 @@
[[ data['form']['compare_pattern']!='none' and 'C.S.Y.T.(C./P)' or removeParentNode('para') ]]
- Debit([[company.currency_id.code]])
+ Debit
|
- Credit([[company.currency_id.code]])
+ Credit
|
- Balance([[company.currency_id.code]])
+ Balance
|
@@ -259,7 +259,7 @@
[[ data['form']['compare_pattern']!='none' and 'C.S.Y.T.(C./P)' or removeParentNode('para') ]]
|
- Balance([[company.currency_id.code]])
+ Balance
|
@@ -275,7 +275,7 @@
[[ data['form']['compare_pattern']!='none' and 'C.S.Y.T.(C./P)' or removeParentNode('para') ]]
- Balance([[company.currency_id.code]])
+ Balance
|
@@ -296,10 +296,10 @@
[[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Bold_9'})) or removeParentNode('font')]][[ a['pattern'] ]]
|
- [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font')]][[ a['debit'] ]] [[company.currency_id.symbol]]
+ [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font')]][[ a['debit'] ]]
|
- [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font')]][[ a['credit'] ]] [[company.currency_id.symbol]]
+ [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font')]][[ a['credit'] ]]
|
[[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font')]][[ a['balance'] ]] [[company.currency_id.symbol]]
@@ -318,10 +318,10 @@
[[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Bold_9'})) or removeParentNode('font')]][[ a['pattern'] ]]
|
- [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font')]][[ a['debit'] ]] [[company.currency_id.symbol]]
+ [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font')]][[ a['debit'] ]]
|
- [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font')]][[ a['credit'] ]] [[company.currency_id.symbol]]
+ [[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font')]][[ a['credit'] ]]
|
[[ a['level']<4 and ( setTag('para','para',{'style':'terp_default_Right_9_Bold'})) or removeParentNode('font')]][[ a['balance'] ]] [[company.currency_id.symbol]]
diff --git a/addons/account/report/overdue.rml b/addons/account/report/overdue.rml
index fad5c27ec79..59219a1b41a 100644
--- a/addons/account/report/overdue.rml
+++ b/addons/account/report/overdue.rml
@@ -181,10 +181,10 @@
[[ line['date_maturity'] and formatLang(line['date_maturity'],date=True) or '' ]]
|
- [[ (line['account_id']['type'] == 'receivable' and formatLang(line['debit']) or 0) or (line['account_id']['type'] == 'payable' and formatLang(line['credit'] * -1) or ' ') ]] [[ company.currency_id.symbol ]]
+ [[ (line['account_id']['type'] == 'receivable' and formatLang(line['debit']) or 0) or (line['account_id']['type'] == 'payable' and formatLang(line['credit'] * -1) or ' ') ]]
|
- [[ (line['account_id']['type'] == 'receivable' and formatLang(line['credit']) or 0) or (line['account_id']['type'] == 'payable' and formatLang(line['debit'] * -1) or 0) ]] [[ company.currency_id.symbol ]]
+ [[ (line['account_id']['type'] == 'receivable' and formatLang(line['credit']) or 0) or (line['account_id']['type'] == 'payable' and formatLang(line['debit'] * -1) or 0) ]]
|
[[ formatLang((line['date_maturity'] < time.strftime('%Y-%m-%d'))) and formatLang(line['debit'] - line['credit']) ]] [[ company.currency_id.symbol ]]
@@ -206,10 +206,10 @@
Sub-Total :
|
- [[ formatLang((reduce(lambda x, y: x + ((y['account_id']['type'] == 'receivable' and y['debit'] or 0) or (y['account_id']['type'] == 'payable' and y['credit'] * -1 or 0)), getLines(o), 0))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((reduce(lambda x, y: x + ((y['account_id']['type'] == 'receivable' and y['debit'] or 0) or (y['account_id']['type'] == 'payable' and y['credit'] * -1 or 0)), getLines(o), 0))) ]]
|
- [[ formatLang((reduce(lambda x, y: x + ((y['account_id']['type'] == 'receivable' and y['credit'] or 0) or (y['account_id']['type'] == 'payable' and y['debit'] * -1 or 0)), getLines(o), 0))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((reduce(lambda x, y: x + ((y['account_id']['type'] == 'receivable' and y['credit'] or 0) or (y['account_id']['type'] == 'payable' and y['debit'] * -1 or 0)), getLines(o), 0))) ]]
|
[[ formatLang((reduce(lambda x, y: x + (y['debit'] - y['credit']), filter(lambda x: x['date_maturity'] < time.strftime('%Y-%m-%d'), getLines(o)), 0))) ]] [[ company.currency_id.symbol ]]
diff --git a/addons/account/report/tax_report.rml b/addons/account/report/tax_report.rml
index 8650dcb0e48..9ad4ff56112 100644
--- a/addons/account/report/tax_report.rml
+++ b/addons/account/report/tax_report.rml
@@ -108,14 +108,14 @@
| Tax Name |
- Debit([[ company.currency_id.code]]) |
- Credit([[ company.currency_id.code]]) |
- Tax Amount([[ company.currency_id.code]]) |
+ Debit |
+ Credit |
+ Tax Amount |
| [[ repeatIn(get_lines(data['form']['based_on'],data['form']['periods'],data['form']['company_id']), 'o') ]][[ (o['level']) ]] [[ (len(o['level'])<5 and setTag('para','para',{'fontName':'Helvetica-Bold'})) or removeParentNode('font') ]][[ o['code'] ]] [[ o['name'] ]] |
- [[ len(o['level'])<5 and setTag('para','para',{'fontName':"Helvetica-Bold"}) or removeParentNode('font')]][[ o['type']=='view' and removeParentNode('font') ]][[ formatLang(o['debit']) ]] [[ company.currency_id.symbol ]][[ o['type']<>'view' and removeParentNode('font') ]][[ formatLang(o['debit']) ]] [[ company.currency_id.symbol ]] |
- [[ len(o['level'])<5 and setTag('para','para',{'fontName':"Helvetica-Bold"}) or removeParentNode('font')]][[ o['type']=='view' and removeParentNode('font') ]][[ formatLang(o['credit']) ]] [[ company.currency_id.symbol ]][[ o['type']<>'view' and removeParentNode('font') ]][[ formatLang(o['credit'])]] [[ company.currency_id.symbol ]] |
+ [[ len(o['level'])<5 and setTag('para','para',{'fontName':"Helvetica-Bold"}) or removeParentNode('font')]][[ o['type']=='view' and removeParentNode('font') ]][[ formatLang(o['debit']) ]][[ o['type']<>'view' and removeParentNode('font') ]][[ formatLang(o['debit']) ]] |
+ [[ len(o['level'])<5 and setTag('para','para',{'fontName':"Helvetica-Bold"}) or removeParentNode('font')]][[ o['type']=='view' and removeParentNode('font') ]][[ formatLang(o['credit']) ]][[ o['type']<>'view' and removeParentNode('font') ]][[ formatLang(o['credit'])]] |
[[ len(o['level'])<5 and setTag('para','para',{'fontName':"Helvetica-Bold"}) or removeParentNode('font')]][[ o['type']=='view' and removeParentNode('font') ]][[ formatLang(o['tax_amount']) ]] [[ company.currency_id.symbol ]][[ o['type']<>'view' and removeParentNode('font') ]][[ formatLang(o['tax_amount']) ]] [[ company.currency_id.symbol ]] |
diff --git a/addons/account_analytic_plans/report/crossovered_analytic.rml b/addons/account_analytic_plans/report/crossovered_analytic.rml
index 73b7192e27f..1abde7093b8 100644
--- a/addons/account_analytic_plans/report/crossovered_analytic.rml
+++ b/addons/account_analytic_plans/report/crossovered_analytic.rml
@@ -197,7 +197,7 @@
Quantity
|
- Amount([[ company.currency_id.code]])
+ Amount
|
Percentage
@@ -245,7 +245,7 @@
Quantity
|
- Amount([[ company.currency_id.code]])
+ Amount
|
Percentage
diff --git a/addons/account_budget/report/analytic_account_budget_report.rml b/addons/account_budget/report/analytic_account_budget_report.rml
index 2cf00cb1bd5..e349b3d4920 100644
--- a/addons/account_budget/report/analytic_account_budget_report.rml
+++ b/addons/account_budget/report/analytic_account_budget_report.rml
@@ -128,13 +128,13 @@
Description
|
- Theoretical Amount ([[ company.currency_id.code ]])
+ Theoretical Amount
|
- Planned Amount([[ company.currency_id.code ]])
+ Planned Amount
|
- Practical Amount([[ company.currency_id.code ]])
+ Practical Amount
|
Perc(%)
diff --git a/addons/account_budget/report/crossovered_budget_report.rml b/addons/account_budget/report/crossovered_budget_report.rml
index f83bcf37e10..9ef3dc716af 100644
--- a/addons/account_budget/report/crossovered_budget_report.rml
+++ b/addons/account_budget/report/crossovered_budget_report.rml
@@ -127,13 +127,13 @@
Description
|
- Theoretical Amount([[ company.currency_id.code]])
+ Theoretical Amount
|
- Planned Amount([[ company.currency_id.code]])
+ Planned Amount
|
- Practical Amount([[ company.currency_id.code]])
+ Practical Amount
|
Perc(%)
@@ -165,7 +165,7 @@
|
- [[ repeatIn(funct_total(data['form']),'b') ]]Total ([[ company.currency_id.code]]) :
+ [[ repeatIn(funct_total(data['form']),'b') ]]Total:
|
[[ formatLang(b['tot_theo']) ]] [[ company.currency_id.symbol ]]
diff --git a/addons/account_followup/report/report_followp_print.rml b/addons/account_followup/report/report_followp_print.rml
index e632569ea79..13230f246fd 100644
--- a/addons/account_followup/report/report_followp_print.rml
+++ b/addons/account_followup/report/report_followp_print.rml
@@ -142,13 +142,13 @@
Currency
|
- Due([[ company.currency_id.code ]])
+ Due
|
- Paid([[ company.currency_id.code ]])
+ Paid
|
- Maturity([[ company.currency_id.code ]])
+ Maturity
|
Li.
@@ -175,10 +175,10 @@
[[ formatLang(line['amount_currency'] )]] [[ line['amount_currency'] and line['currency_id'][1] or '' ]]
|
- [[ formatLang(line['debit']) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(line['debit']) ]]
|
- [[ formatLang(line['credit']) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang(line['credit']) ]]
|
[[ (line['date_maturity'] < time.strftime('%Y-%m-%d')) and formatLang(line['debit'] -line['credit']) or formatLang(0.0) ]] [[ company.currency_id.symbol ]]
@@ -197,13 +197,13 @@
|
- Sub-Total([[ company.currency_id.code ]]):
+ Sub-Total:
|
- [[formatLang(reduce(lambda x,y: x+y['debit'], getLines(o), 0.00)) ]] [[ company.currency_id.symbol ]]
+ [[formatLang(reduce(lambda x,y: x+y['debit'], getLines(o), 0.00)) ]]
|
- [[formatLang(reduce(lambda x,y: x+y['credit'], getLines(o), 0.00)) ]] [[ company.currency_id.symbol ]]
+ [[formatLang(reduce(lambda x,y: x+y['credit'], getLines(o), 0.00)) ]]/para>
|
[[ formatLang(reduce(lambda x,y: x+(y['debit'] - y['credit']), filter(lambda x: x['date_maturity'] < time.strftime('%Y-%m-%d'), getLines(o)), 0)) ]] [[ company.currency_id.symbol ]]
@@ -221,7 +221,7 @@
|
- Balance([[ company.currency_id.code ]]):
+ Balance:
|
[[ formatLang((reduce(lambda x,y: x+(y['debit'] - y['credit']), getLines(o), 0.00))) ]] [[ company.currency_id.symbol]]
diff --git a/addons/account_invoice_layout/report/report_account_invoice_layout.rml b/addons/account_invoice_layout/report/report_account_invoice_layout.rml
index 8f7d5f561e8..0e17cfeef68 100644
--- a/addons/account_invoice_layout/report/report_account_invoice_layout.rml
+++ b/addons/account_invoice_layout/report/report_account_invoice_layout.rml
@@ -260,7 +260,7 @@
Disc. (%)
|
- Price([[ o.currency_id.code ]])
+ Price
|
@@ -360,7 +360,7 @@
Disc. (%)
|
- Price([[ o.currency_id.code ]])
+ Price
|
diff --git a/addons/account_invoice_layout/report/special_message_invoice.rml b/addons/account_invoice_layout/report/special_message_invoice.rml
index 8c3c05e2422..41775417161 100644
--- a/addons/account_invoice_layout/report/special_message_invoice.rml
+++ b/addons/account_invoice_layout/report/special_message_invoice.rml
@@ -264,7 +264,7 @@
Disc. (%)
- Price([[ o.currency_id.code ]])
+ Price
|
@@ -364,7 +364,7 @@
Disc. (%)
- Price([[ o.currency_id.code ]])
+ Price
|
diff --git a/addons/account_payment/report/order.rml b/addons/account_payment/report/order.rml
index 792897fb782..c8db1e37831 100644
--- a/addons/account_payment/report/order.rml
+++ b/addons/account_payment/report/order.rml
@@ -207,7 +207,7 @@
Value Date
- Amount([[ get_company_currency() ]])
+ Amount
|
Currency
@@ -250,7 +250,7 @@
|
- Total:([[ get_company_currency() ]])
+ Total:
|
[[ formatLang(get_amount_total(o)) or '' ]] [[get_company_currency_symbol()]]
diff --git a/addons/account_reporting/report/account_report_bs.rml b/addons/account_reporting/report/account_report_bs.rml
index b33ebb4bcc8..a5de9d2d0a7 100644
--- a/addons/account_reporting/report/account_report_bs.rml
+++ b/addons/account_reporting/report/account_report_bs.rml
@@ -174,7 +174,7 @@
Account Name
|
- Balance([[company.currency_id.code]])
+ Balance
|
From 56683fe241729fca47fbd78cfc8e4116830e3010 Mon Sep 17 00:00:00 2001
From: "rch (Open ERP)" <>
Date: Tue, 21 Sep 2010 11:21:40 +0530
Subject: [PATCH 08/23] [IMP]: Improve report 'Details of Sales'.
bzr revid: rch_open_erp-20100921055140-hc0soi3ll3s2aupl
---
addons/point_of_sale/report/pos_details.rml | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/addons/point_of_sale/report/pos_details.rml b/addons/point_of_sale/report/pos_details.rml
index 6591fc6ec7f..f3bebade402 100644
--- a/addons/point_of_sale/report/pos_details.rml
+++ b/addons/point_of_sale/report/pos_details.rml
@@ -203,16 +203,16 @@
Product
|
- Price
+ Price ([[ company.currency_id.code ]])
|
Qty
|
- Disc
+ Disc ([[ company.currency_id.code ]])
|
- Invoiced
+ Invoiced ([[ company.currency_id.code ]])
|
@@ -220,7 +220,7 @@
|
[[ pos_sales_details(data['form'],user) and '' or removeParentNode('blockTable') ]]
- [[ repeatIn(pos_sales_details(data['form'],user), 'line_ids') ]] [[ formatLang(line_ids['date_order'],date_time = True) ]]
+ [[ repeatIn(pos_sales_details(data['form'],user), 'line_ids') ]] [[ formatLang(line_ids['date_order'],date = True) ]]
|
[[ line_ids['pos_name'] ]]
@@ -261,7 +261,7 @@
[[ repeatIn(gettaxamount(data['form'],user), 'p') ]][[ p['name'] or removeParentNode('tr') ]]
|
- [[ formatLang(p['amount']) or removeParentNode('font') ]]
+ [[ formatLang(p['amount']) or removeParentNode('font') ]][[ company.currency_id.symbol ]]
|
@@ -281,7 +281,7 @@
[[ repeatIn(getpayments(data['form'],user), 'p') ]] [[ p['name'] or removeParentNode('tr') ]]
- [[ formatLang(p['sum']) or removeParentNode('tr') ]]
+ [[ formatLang(p['sum']) or removeParentNode('tr') ]] [[ company.currency_id.symbol ]]
|
@@ -312,7 +312,7 @@
Sales total
- [[ formatLang(getsalestotal2(data['form'],user)) ]]
+ [[ formatLang(getsalestotal2(data['form'],user)) ]][[ company.currency_id.symbol ]]
|
From 0a68c80490fb0f4ba474eaee02aa2765097ac2be Mon Sep 17 00:00:00 2001
From: "rch (Open ERP)" <>
Date: Tue, 21 Sep 2010 11:38:49 +0530
Subject: [PATCH 09/23] [IMP]: Improve report 'Point Of Sale / Reporting /
Sales Lines Report'.
bzr revid: rch_open_erp-20100921060849-alox40vdba4tift5
---
.../point_of_sale/report/pos_payment_report_date.rml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/addons/point_of_sale/report/pos_payment_report_date.rml b/addons/point_of_sale/report/pos_payment_report_date.rml
index 1f220e253ca..846eaf1f861 100644
--- a/addons/point_of_sale/report/pos_payment_report_date.rml
+++ b/addons/point_of_sale/report/pos_payment_report_date.rml
@@ -140,10 +140,10 @@
Disc(%)
|
- Unit Price
+ Unit Price ([[ company.currency_id.code ]])
|
- Total
+ Total ([[ company.currency_id.code ]])
|
@@ -161,10 +161,10 @@
[[ formatLang(line_ids['discount']) ]]
- [[ formatLang(line_ids['price_unit']) ]]
+ [[ formatLang(line_ids['price_unit']) ]] [[ company.currency_id.symbol ]]
|
- [[ formatLang(line_ids['total']) ]]
+ [[ formatLang(line_ids['total']) ]] [[ company.currency_id.symbol ]]
|
@@ -190,7 +190,7 @@
Total
- [[ formatLang(pos_payment_date_total(data['form'])) or removeParentNode('blockTable')]]
+ [[ formatLang(pos_payment_date_total(data['form'])) or removeParentNode('blockTable')]] [[ company.currency_id.symbol ]]
|
From c5d0ad9908a3a06045ac31524c39d8ea84e3ae29 Mon Sep 17 00:00:00 2001
From: "rch (Open ERP)" <>
Date: Tue, 21 Sep 2010 12:50:41 +0530
Subject: [PATCH 10/23] [IMP]: Improve report 'Point Of Sale / Daily Operations
/ Payment Report For Sale'.
bzr revid: rch_open_erp-20100921072041-a82inubsob8hk3rj
---
.../report/pos_payment_report.rml | 21 ++++++++++++-------
1 file changed, 14 insertions(+), 7 deletions(-)
diff --git a/addons/point_of_sale/report/pos_payment_report.rml b/addons/point_of_sale/report/pos_payment_report.rml
index c1980e9e209..e62b4bd1290 100644
--- a/addons/point_of_sale/report/pos_payment_report.rml
+++ b/addons/point_of_sale/report/pos_payment_report.rml
@@ -82,6 +82,7 @@
+
@@ -109,7 +110,13 @@
-
+
+
+
+
+
+
+ Payment For Sale
@@ -154,10 +161,10 @@
Disc. (%)
- Unit Price
+ Unit Price ([[ company.currency_id.code ]])
|
- Total
+ Total ([[ company.currency_id.code ]])
|
@@ -177,10 +184,10 @@
[[ formatLang(line_ids['discount']) ]]
- [[ formatLang(line_ids['price_unit']) ]]
+ [[ formatLang(line_ids['price_unit']) ]] [[ company.currency_id.symbol ]]
|
- [[ formatLang(line_ids['total']) ]]
+ [[ formatLang(line_ids['total']) ]] [[ company.currency_id.symbol ]]
|
@@ -205,10 +212,10 @@
- Net Total
+ Net Total
|
- [[ formatLang(pos_payment_total(o)) or removeParentNode('blockTable')]]
+ [[ formatLang(pos_payment_total(o)) or removeParentNode('blockTable')]] [[ company.currency_id.symbol ]]
|
From c5944b3c700a8bfec1c4cde86a18e2f2527a8799 Mon Sep 17 00:00:00 2001
From: vra
Date: Tue, 21 Sep 2010 13:02:12 +0530
Subject: [PATCH 11/23] [IMP] account: improved general ledger landscape
report.
bzr revid: vra@tinyerp.com-20100921073212-6etyavhvg839g34l
---
.../account/report/account_general_ledger_landscape.rml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/addons/account/report/account_general_ledger_landscape.rml b/addons/account/report/account_general_ledger_landscape.rml
index d6123e0fd5a..e1bb6aefc1f 100644
--- a/addons/account/report/account_general_ledger_landscape.rml
+++ b/addons/account/report/account_general_ledger_landscape.rml
@@ -240,7 +240,7 @@
- [[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]
+ [[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]
| Date |
JNRL |
@@ -259,7 +259,7 @@
[[ repeatIn(get_children_accounts(a), 'o') ]]
- [[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]
+ [[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]
@@ -301,7 +301,7 @@
- [[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]
+ [[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]
| Date |
JNRL |
@@ -320,7 +320,7 @@
[[ repeatIn(get_children_accounts(a), 'o') ]]
- [[data['form']['amount_currency'] == False or removeParentNode('blockTable')]]
+ [[data['form']['amount_currency'] == False or removeParentNode('blockTable')]]
From a95005cc4c88b8eb8862de48826e32fcf60d678a Mon Sep 17 00:00:00 2001
From: vra
Date: Tue, 21 Sep 2010 15:08:57 +0530
Subject: [PATCH 12/23] [IMP][ADD] account: added leveling and calculating
balance of view type of account in general ledger report.
bzr revid: vra@tinyerp.com-20100921093857-e2k9aiywzl2sr0zb
---
addons/account/report/account_general_ledger.py | 17 ++++++++++++++++-
.../account/report/account_general_ledger.rml | 4 ++--
.../report/account_general_ledger_landscape.rml | 4 ++--
3 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/addons/account/report/account_general_ledger.py b/addons/account/report/account_general_ledger.py
index f313704bc8a..d8ab573b083 100644
--- a/addons/account/report/account_general_ledger.py
+++ b/addons/account/report/account_general_ledger.py
@@ -44,6 +44,15 @@ class general_ledger(rml_parse.rml_parse, common_report_header):
self.init_balance = data['form']['initial_balance']
self.display_account = data['form']['display_account']
self.target_move = data['form'].get('target_move', 'all')
+ ctx = self.context.copy()
+ ctx['fiscalyear'] = data['form']['fiscalyear_id']
+ if data['form']['filter'] == 'filter_period':
+ ctx['periods'] = data['form']['periods']
+ elif data['form']['filter'] == 'filter_date':
+ ctx['date_from'] = data['form']['date_from']
+ ctx['date_to'] = data['form']['date_to']
+ ctx['state'] = data['form']['target_move']
+ self.context.update(ctx)
if (data['model'] == 'ir.ui.menu'):
new_ids = [data['form']['chart_account_id']]
objects = self.pool.get('account.account').browse(self.cr, self.uid, new_ids)
@@ -93,7 +102,7 @@ class general_ledger(rml_parse.rml_parse, common_report_header):
def get_children_accounts(self, account):
res = []
ids_acc = self.pool.get('account.account')._get_children_and_consol(self.cr, self.uid, account.id)
- for child_account in self.pool.get('account.account').browse(self.cr, self.uid, ids_acc):
+ for child_account in self.pool.get('account.account').browse(self.cr, self.uid, ids_acc, context=self.context):
sql = """
SELECT count(id)
FROM account_move_line AS l
@@ -203,6 +212,8 @@ class general_ledger(rml_parse.rml_parse, common_report_header):
return res
def _sum_debit_account(self, account):
+ if account.type == 'view':
+ return account.debit
move_state = ['draft','posted']
if self.target_move == 'posted':
move_state = ['posted','']
@@ -227,6 +238,8 @@ class general_ledger(rml_parse.rml_parse, common_report_header):
return sum_debit
def _sum_credit_account(self, account):
+ if account.type == 'view':
+ return account.credit
move_state = ['draft','posted']
if self.target_move == 'posted':
move_state = ['posted','']
@@ -251,6 +264,8 @@ class general_ledger(rml_parse.rml_parse, common_report_header):
return sum_credit
def _sum_balance_account(self, account):
+ if account.type == 'view':
+ return account.balance
move_state = ['draft','posted']
if self.target_move == 'posted':
move_state = ['posted','']
diff --git a/addons/account/report/account_general_ledger.rml b/addons/account/report/account_general_ledger.rml
index ba1a353b9f8..5a3812206aa 100644
--- a/addons/account/report/account_general_ledger.rml
+++ b/addons/account/report/account_general_ledger.rml
@@ -256,7 +256,7 @@
- | [[ o.code or '']] [[ o.name or '']] |
+ [[ '..'*(o.level-1) ]][[ o.code or '']] [[ o.name or '']] |
|
[[formatLang(sum_debit_account(o)) ]] |
[[formatLang(sum_credit_account(o)) ]] |
@@ -307,7 +307,7 @@
- | [[ o.code or '' ]] [[ o.name or '' ]] |
+ [[ '..'*(o.level-1) ]][[ o.code or '' ]] [[ o.name or '' ]] |
|
[[formatLang(sum_debit_account(o)) ]] |
[[formatLang(sum_credit_account(o)) ]] |
diff --git a/addons/account/report/account_general_ledger_landscape.rml b/addons/account/report/account_general_ledger_landscape.rml
index e1bb6aefc1f..80a55c76905 100644
--- a/addons/account/report/account_general_ledger_landscape.rml
+++ b/addons/account/report/account_general_ledger_landscape.rml
@@ -264,7 +264,7 @@
- | [[ o.code ]] [[ o.name ]] |
+ [[ '..'*(o.level-1) ]][[ o.code ]] [[ o.name ]] |
|
[[formatLang(sum_debit_account(o)) ]] |
[[formatLang(sum_credit_account(o)) ]] |
@@ -325,7 +325,7 @@
- | [[ o.code ]] [[ o.name ]] |
+ [[ '..'*(o.level-1) ]][[ o.code ]] [[ o.name ]] |
|
[[formatLang(sum_debit_account(o)) ]] |
[[formatLang(sum_credit_account(o)) ]] |
From 1571a6dbb63b3870206861be8c5b2035fc1bea66 Mon Sep 17 00:00:00 2001
From: "rch (Open ERP)" <>
Date: Tue, 21 Sep 2010 16:00:56 +0530
Subject: [PATCH 13/23] [IMP]: Improve report 'Point Of Sale / Daily Operations
/ Invoice'.
bzr revid: rch_open_erp-20100921103056-82hi9requ7lhyd0g
---
addons/account/report/invoice.rml | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/addons/account/report/invoice.rml b/addons/account/report/invoice.rml
index 741e4544e7b..b78c7dda458 100644
--- a/addons/account/report/invoice.rml
+++ b/addons/account/report/invoice.rml
@@ -180,7 +180,7 @@
|
- [[ o.name or ' ' ]]
+ [[ o.name or ' ' ]]
|
[[ formatLang(o.date_invoice,date=True) ]]
@@ -205,13 +205,13 @@
Quantity
|
- Unit Price
+ Unit Price ([[ o.currency_id.code ]])
|
Disc.(%)
|
- Price([[ o.currency_id.code ]])
+ Price ([[ o.currency_id.code ]])
|
@@ -229,7 +229,7 @@
[[ formatLang(l.quantity)]] [[ (l.uos_id and l.uos_id.name) or '' ]]
- [[ formatLang(l.price_unit) ]]
+ [[ formatLang(l.price_unit) ]][[ o.currency_id.symbol ]]
|
[[ formatLang(l.discount) ]]
@@ -318,10 +318,10 @@
Tax
|
- Base
+ Base ([[ o.currency_id.code ]])
|
- Amount
+ Amount ([[ o.currency_id.code ]])
|
@@ -338,10 +338,10 @@
[[ t.name ]]
|
- [[ formatLang(t.base) ]]
+ [[ formatLang(t.base) ]][[ o.currency_id.symbol ]]
|
- [[ (t.tax_code_id and t.tax_code_id.notprintable) and removeParentNode('blockTable') or '' ]] [[ formatLang(t.amount) ]]
+ [[ (t.tax_code_id and t.tax_code_id.notprintable) and removeParentNode('blockTable') or '' ]] [[ formatLang(t.amount) ]][[ o.currency_id.symbol ]]
|
From b64fe585fb7342ee87663869f1f02e464f3023a0 Mon Sep 17 00:00:00 2001
From: vra
Date: Wed, 22 Sep 2010 12:30:43 +0530
Subject: [PATCH 14/23] [IMP][REM] product: removed unused code from product
price list report wizard with some report improvement.
bzr revid: vra@tinyerp.com-20100922070043-zbuhej0ik8dwc0o2
---
addons/product/report/product_pricelist.py | 9 ++++++---
addons/product/report/product_pricelist.rml | 2 +-
addons/product/wizard/product_price.py | 1 -
3 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/addons/product/report/product_pricelist.py b/addons/product/report/product_pricelist.py
index ce6cdb2d864..613de646fe0 100644
--- a/addons/product/report/product_pricelist.py
+++ b/addons/product/report/product_pricelist.py
@@ -87,9 +87,12 @@ class product_pricelist(report_sxw.rml_parse):
pro_ids.append(product.id)
if product.categ_id.id not in cat_ids:
cat_ids.append(product.categ_id.id)
- cats = pool.get('product.category').read(self.cr, self.uid, cat_ids, ['name'])
+
+ cats = pool.get('product.category').name_get(self.cr, self.uid, cat_ids)
+ if not cats:
+ return res
for cat in cats:
- product_ids=pool.get('product.product').search(self.cr, self.uid, [('id','in',pro_ids),('categ_id','=',cat['id'])])
+ product_ids=pool.get('product.product').search(self.cr, self.uid, [('id','in',pro_ids),('categ_id','=',cat[0])])
products = []
for product in pool.get('product.product').read(self.cr, self.uid, product_ids, ['name','code']):
val = {
@@ -105,7 +108,7 @@ class product_pricelist(report_sxw.rml_parse):
val['qty'+str(i)]=self._get_price(self.pricelist, product['id'], qty)
i += 1
products.append(val)
- res.append({'name':cat['name'],'products': products})
+ res.append({'name':cat[1],'products': products})
return res
def _get_price(self,pricelist_id, product_id,qty):
diff --git a/addons/product/report/product_pricelist.rml b/addons/product/report/product_pricelist.rml
index fe3fad5ed62..5d3a39e9144 100644
--- a/addons/product/report/product_pricelist.rml
+++ b/addons/product/report/product_pricelist.rml
@@ -191,7 +191,7 @@
[[repeatIn(get_categories(objects,data['form']), 'c')]]
-
+
[[ c['name'] ]]
diff --git a/addons/product/wizard/product_price.py b/addons/product/wizard/product_price.py
index 4681f28d71b..853935acf6e 100644
--- a/addons/product/wizard/product_price.py
+++ b/addons/product/wizard/product_price.py
@@ -51,7 +51,6 @@ class product_price_list(osv.osv_memory):
datas = {'ids': context.get('active_ids', [])}
res = self.read(cr, uid, ids, ['price_list','qty1', 'qty2','qty3','qty4','qty5'], context)
res = res and res[0] or {}
- price_dict = self.pool.get('product.pricelist').price_get(cr, uid, [res['price_list']], 1, 1.0)
datas['form'] = res
return {
'type': 'ir.actions.report.xml',
From 6bd4c84f2873470e68576f2d9277a36cd54cd560 Mon Sep 17 00:00:00 2001
From: "SAZ (OprnERP)" <>
Date: Wed, 22 Sep 2010 16:03:39 +0530
Subject: [PATCH 15/23] [IMP]: Improve report 'Tools / Lunch Orders / Lunch
Order'.
bzr revid: rch_open_erp-20100922103339-ru13hs2b5rxgzu1e
---
addons/lunch/report/order.py | 2 +-
addons/lunch/report/order.rml | 263 +++++++++++++++++++++++-----------
2 files changed, 177 insertions(+), 88 deletions(-)
diff --git a/addons/lunch/report/order.py b/addons/lunch/report/order.py
index ff77e7fe6b8..838ab108c23 100644
--- a/addons/lunch/report/order.py
+++ b/addons/lunch/report/order.py
@@ -41,6 +41,6 @@ class order(report_sxw.rml_parse):
})
report_sxw.report_sxw('report.lunch.order', 'lunch.order',
- 'addons/lunch/report/order.rml',parser=order, header=False)
+ 'addons/lunch/report/order.rml',parser=order, header='external')
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/lunch/report/order.rml b/addons/lunch/report/order.rml
index 44773e22e96..e01e4df6d2e 100644
--- a/addons/lunch/report/order.rml
+++ b/addons/lunch/report/order.rml
@@ -10,123 +10,212 @@
-
+
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- Printed at : [[time.strftime("%Hh%M")]]
-
-
+
-
-
-
-
-
- |
- Name
- |
-
- Order
- |
-
- Description
- |
-
- Unit Price
- |
-
-
-
+ [[repeatIn(objects,'o')]]
+
+
+ |
+
+
+
+ |
+
+
+
+
+ |
+
+ [[ o.user_id.address_id.title or '' ]] [[ o.user_id.address_id.name ]]
+ [[ o.user_id.address_id.street ]]
+ [[ o.user_id.address_id.street2 or removeParentNode('para') ]]
+ [[ o.user_id.address_id.zip or '' ]] [[ o.user_id.address_id.city or '' ]]
+ [[ (o.user_id.address_id.state_id and o.user_id.address_id.state_id.name) or removeParentNode('para')]] [[ (o.user_id.address_id.country_id and o.user_id.address_id.country_id.name) or '' ]]
+
+
+
+ |
+
+
+
+
+
+
+
+
+ |
+ Lunch Order
+ |
+
+
+
+
+
+
+
+
+
+
+ |
+ Name
+ |
+
+ Order
+ |
+
+ Description
+ |
+
+ Unit Price([[company.currency_id.code]])
+ |
+
+
-
+
|
- [[repeatIn(objects, 'o') ]]
- [[ o.user_id.name ]]
+ [[repeatIn(objects, 'o') ]]
+ [[ o.user_id.name ]]
|
- [[o.product.name ]]
+ [[o.product.name ]]
|
- [[ o.descript ]]
-
-
-
+ [[ o.descript ]]
|
- [['%.2f' % o.price ]]
- |
-
-
- |
-
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
- [[ '%.2f' % sum_price(objects) ]]
+ [[formatLang(o.price) ]] [[company.currency_id.symbol]]
|
-
+
+
+ |
+
+
+
+ |
+
+
+
+
+ |
+
+ Total:
+ |
+
+ [[ formatLang(sum_price(objects)) ]] [[company.currency_id.symbol]]
+ |
+
+
+
-
From b42f515de7915ff4eda9798ee2913f27f1daa09d Mon Sep 17 00:00:00 2001
From: "SAZ (Opn ERP)" <>
Date: Wed, 22 Sep 2010 16:59:25 +0530
Subject: [PATCH 16/23] [IMP]: Improve report 'Point Of Sale / Daily
Operations/ Click on Make Payment'.
bzr revid: rch_open_erp-20100922112925-z0x3dmkxklezuay2
---
addons/point_of_sale/report/pos_receipt.rml | 356 +++++++++-----------
1 file changed, 165 insertions(+), 191 deletions(-)
diff --git a/addons/point_of_sale/report/pos_receipt.rml b/addons/point_of_sale/report/pos_receipt.rml
index e722687f094..b9da3f5e9a6 100644
--- a/addons/point_of_sale/report/pos_receipt.rml
+++ b/addons/point_of_sale/report/pos_receipt.rml
@@ -1,196 +1,170 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [[ repeatIn(objects,'o') ]]
- [[o.user_id.company_id.name]]
- [[ address and address.street ]], [[ address and address.zip ]] [[ address and address.city ]]
- [[ address and address.country_id.name ]]
- Tel : [[ address and address.phone ]]
- E-mail : [[ address and address.email ]]
- Shop : [[ o.shop_id.name ]]
- Vendeur : [[ o.user_salesman_id.name ]]
- Date : [[ formatLang(o.date_order,date = True) ]]
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [[ repeatIn(objects,'o') ]]
+ [[o.user_id.company_id.name]]
+ [[ address and address.street ]], [[ address and address.zip ]] [[ address and address.city ]]
+ [[ address and address.country_id.name ]]
+ Tel : [[ address and address.phone ]]
+ E-mail : [[ address and address.email ]]
+ Shop : [[ o.shop_id.name ]]
+ Vendeur : [[ o.user_salesman_id.name ]]
+ Date : [[ o.date_order ]]
+
+
+
+
+
+
+ [[o.type_rec]]
+
+
+
+ N° : [[ o.name ]]
+ Contract : [[ o.contract_number ]]
+
+
+ |
+ Description
+ |
+
+ Qty
+ |
+
+ Price
+ |
+
+
+ |
+ [[ repeatIn(o.lines,'line') ]]
+ [[ line.product_id.name ]]
+ |
+
+ [[o.state=='cancel' and o.statement_ids and '-' or '']][['%.f' % line.qty ]]
+ |
+
+ [[o.state=='cancel' and o.statement_ids and '-' or '']][[ '%.2f' % net(line.id) ]] [[company.currency_id.symbol]] [[ line and line.discount == 0.0 and removeParentNode('font') ]] ([[ '%.2f' % line.discount ]]%) [[company.currency_id.symbol]]
+ |
+
+
+
+
+ |
+ Taxes :
+ |
+
+ [[o.state=='cancel' and o.statement_ids and '-' or '']][['%.2f' % o.amount_tax]] [[company.currency_id.symbol]]
+ |
+
+
+
+
+ |
+ Total :
+ |
+
+ [[o.state=='cancel' and o.statement_ids and '-' or '']][['%.2f' % o.amount_total]] [[company.currency_id.symbol]]
+ |
+
+
+
+
+ |
+ Payment Mode
+ |
+
+
-
-
+
+ |
+
+ Amount
+ |
+
+
+ |
+ [[ repeatIn(get_journal_amt(o),'d') ]]
+ [[ d['name'] ]]
+ |
+
+
-
- [[o.type_rec]]
-
-
-
- N° : [[ o.name ]]
- Contract : [[ o.contract_number ]]
-
-
-
- |
- Description
- |
-
- Qty
- |
-
- Price
- |
-
-
- | [[ repeatIn(o.lines,'line') ]]
- [[ line.product_id.name ]]
- |
-
- [[o.state=='cancel' and o.statement_ids and '-' or '']][['%.f' % line.qty ]]
-
- |
-
- [[o.state=='cancel' and o.statement_ids and '-' or '']][[ '%.2f' % net(line.id) ]] [[ line and line.discount == 0.0 and removeParentNode('font') ]] ([[ '%.2f' % line.discount ]]%)
- |
-
-
-
-
- |
- Taxes :
- |
-
- [[o.state=='cancel' and o.statement_ids and '-' or '']][['%.2f' % o.amount_tax ]]
- |
-
-
-
-
- |
- |
-
- Total :
- |
-
- [[o.state=='cancel' and o.statement_ids and '-' or '']][['%.2f' % o.amount_total ]]
- |
-
-
-
-
-
- |
- Payment Mode
- |
- |
-
- Amount
- |
-
-
- |
- [[ repeatIn(get_journal_amt(o),'d') ]]
- [[ d['name'] ]]
- |
- |
-
- [[ '%.2f' %(d['amt'] or 0) ]]
- |
-
-
-
- [[o.note_2]]
-
-
-
+
+ |
+
+ [[ '%.2f' %(d['amt'] or 0) ]] [[company.currency_id.symbol]]
+ |
+
+
+ [[o.note_2]]
+
-
From e46d88687499f3b364c2d1102c0067f1c5bd6d41 Mon Sep 17 00:00:00 2001
From: "SAZ (Open ERP)" <>
Date: Thu, 23 Sep 2010 11:10:22 +0530
Subject: [PATCH 17/23] [IMP]: Improve 'Salary Register' report.
bzr revid: jni@tinyerp.com-20100923054022-86k42oek5xv7vg0y
---
.../hr_payroll/report/report_year_report.rml | 98 +++++++++----------
1 file changed, 49 insertions(+), 49 deletions(-)
diff --git a/addons/hr_payroll/report/report_year_report.rml b/addons/hr_payroll/report/report_year_report.rml
index 77a6cdfa1fb..58448de5704 100755
--- a/addons/hr_payroll/report/report_year_report.rml
+++ b/addons/hr_payroll/report/report_year_report.rml
@@ -68,19 +68,19 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -90,13 +90,13 @@
-
-
-
-
+
+
+
+
-
-
+
+
@@ -106,8 +106,8 @@
-
-
+
+
@@ -121,8 +121,8 @@
+
-
Yearly Salary Details
For [[ get_fiscalyear(data['form']['fiscalyear_id']) ]]
@@ -173,7 +173,7 @@
[[ m[11] ]]
|
- Total
+ Total([[company.currency_id.code]])
|
@@ -188,43 +188,43 @@
[[ e[0] ]]
|
- [[ formatLang(e[1]) ]]
+ [[ formatLang(e[1]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(e[2]) ]]
+ [[ formatLang(e[2]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(e[3]) ]]
+ [[ formatLang(e[3]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(e[4]) ]]
+ [[ formatLang(e[4]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(e[5]) ]]
+ [[ formatLang(e[5]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(e[6]) ]]
+ [[ formatLang(e[6]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(e[7]) ]]
+ [[ formatLang(e[7]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(e[8]) ]]
+ [[ formatLang(e[8]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(e[9]) ]]
+ [[ formatLang(e[9]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(e[10]) ]]
+ [[ formatLang(e[10]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(e[11]) ]]
+ [[ formatLang(e[11]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(e[12]) ]]
+ [[ formatLang(e[12]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(e[13]) ]]
+ [[ formatLang(e[13]) ]] [[company.currency_id.symbol]]
|
@@ -244,46 +244,46 @@
|
- Total
+ Total([[company.currency_id.code]])
|
- [[ formatLang(t[1]) ]]
+ [[ formatLang(t[1]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(t[2]) ]]
+ [[ formatLang(t[2]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(t[3]) ]]
+ [[ formatLang(t[3]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(t[4]) ]]
+ [[ formatLang(t[4]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(t[5]) ]]
+ [[ formatLang(t[5]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(t[6]) ]]
+ [[ formatLang(t[6]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(t[7]) ]]
+ [[ formatLang(t[7]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(t[8]) ]]
+ [[ formatLang(t[8]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(t[9]) ]]
+ [[ formatLang(t[9]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(t[10]) ]]
+ [[ formatLang(t[10]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(t[11]) ]]
+ [[ formatLang(t[11]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(t[12]) ]]
+ [[ formatLang(t[12]) ]] [[company.currency_id.symbol]]
|
- [[ formatLang(get_total()) ]]
+ [[ formatLang(get_total()) ]] [[company.currency_id.symbol]]
|
From 91277717cc05eb3894b1861446875798544c1f13 Mon Sep 17 00:00:00 2001
From: "rch (Open ERP)" <>
Date: Thu, 23 Sep 2010 17:10:47 +0530
Subject: [PATCH 18/23] [IMP]:Improve report ' Human Resource / Payroll
/Payment Advice'.
bzr revid: rch_open_erp-20100923114047-ksblu4f7owcqw1dp
---
addons/hr_payroll/report/report_payroll_advice.rml | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/addons/hr_payroll/report/report_payroll_advice.rml b/addons/hr_payroll/report/report_payroll_advice.rml
index 88a5b85ca5f..ff793469284 100644
--- a/addons/hr_payroll/report/report_payroll_advice.rml
+++ b/addons/hr_payroll/report/report_payroll_advice.rml
@@ -120,16 +120,18 @@
[[repeatIn(objects,'o')]]
- Payment Advice
-
-
-
|
+
+
+
+
+
+
|
@@ -174,7 +176,7 @@
|
- [[ o.name ]] for period [[ get_month(o.date)['mname'] ]]
+ Payment Advice: [[ o.name ]] for period [[ get_month(o.date)['mname'] ]]
|
@@ -336,4 +338,4 @@
-
\ No newline at end of file
+
From 7f998140f36591a2a634742461c2a8151a91d015 Mon Sep 17 00:00:00 2001
From: vra
Date: Fri, 24 Sep 2010 16:41:57 +0530
Subject: [PATCH 19/23] [IMP]account :improved overdue report.
bzr revid: vra@tinyerp.com-20100924111157-yqrkv7xg2519at57
---
addons/account/report/overdue.rml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/addons/account/report/overdue.rml b/addons/account/report/overdue.rml
index 59219a1b41a..a0748e281ac 100644
--- a/addons/account/report/overdue.rml
+++ b/addons/account/report/overdue.rml
@@ -151,13 +151,13 @@
Maturity date
|
- Due([[ company.currency_id.name ]])
+ Due
|
- Paid([[ company.currency_id.name ]])
+ Paid
|
- Maturity([[ company.currency_id.name ]])
+ Maturity
|
Li.
From 49c75feee78ae23fad12924fec92ee41d69a6e7e Mon Sep 17 00:00:00 2001
From: vra
Date: Fri, 24 Sep 2010 18:43:57 +0530
Subject: [PATCH 20/23] [FIX] account: fixes analytic balance report problem.
bzr revid: vra@tinyerp.com-20100924131357-v5sjt29lb0peebcm
---
.../account/project/report/analytic_balance.py | 16 ++++++++--------
.../account/project/report/analytic_balance.rml | 5 +----
2 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/addons/account/project/report/analytic_balance.py b/addons/account/project/report/analytic_balance.py
index 780c519c1d4..3df4fd9584b 100644
--- a/addons/account/project/report/analytic_balance.py
+++ b/addons/account/project/report/analytic_balance.py
@@ -64,7 +64,6 @@ class account_analytic_balance(report_sxw.rml_parse):
self.empty_acc = empty_acc
self.read_data = []
self.get_children(self.ids)
-
return self.read_data
def _lines_g(self, account_id, date1, date2):
@@ -104,14 +103,14 @@ class account_analytic_balance(report_sxw.rml_parse):
query_params = (tuple(ids), date1, date2)
if option == "credit" :
- self.cr.execute("SELECT -sum(amount) FROM account_analytic_line \
+ self.cr.execute("SELECT COALESCE(-sum(amount),0.0) FROM account_analytic_line \
WHERE account_id IN %s AND date>=%s AND date<=%s AND amount<0",query_params)
elif option == "debit" :
- self.cr.execute("SELECT sum(amount) FROM account_analytic_line \
+ self.cr.execute("SELECT COALESCE(sum(amount),0.0) FROM account_analytic_line \
WHERE account_id IN %s\
AND date>=%s AND date<=%s AND amount>0",query_params)
elif option == "quantity" :
- self.cr.execute("SELECT sum(unit_amount) FROM account_analytic_line \
+ self.cr.execute("SELECT COALESCE(sum(unit_amount),0.0) FROM account_analytic_line \
WHERE account_id IN %s\
AND date>=%s AND date<=%s",query_params)
return self.cr.fetchone()[0] or 0.0
@@ -132,15 +131,16 @@ class account_analytic_balance(report_sxw.rml_parse):
self.acc_sum_list = ids2
else:
ids2 = self.acc_sum_list
- query_params = (tuple(ids2), date1, date2)
+
+ query_params = (tuple(ids2), date1, date2)
if option == "debit" :
- self.cr.execute("SELECT sum(amount) FROM account_analytic_line \
+ self.cr.execute("SELECT COALESCE(sum(amount),0.0) FROM account_analytic_line \
WHERE account_id IN %s AND date>=%s AND date<=%s AND amount>0",query_params)
elif option == "credit" :
- self.cr.execute("SELECT -sum(amount) FROM account_analytic_line \
+ self.cr.execute("SELECT COALESCE(-sum(amount),0.0) FROM account_analytic_line \
WHERE account_id IN %s AND date>=%s AND date<=%s AND amount<0",query_params)
elif option == "quantity" :
- self.cr.execute("SELECT sum(unit_amount) FROM account_analytic_line \
+ self.cr.execute("SELECT COALESCE(sum(unit_amount),0.0) FROM account_analytic_line \
WHERE account_id IN %s AND date>=%s AND date<=%s",query_params)
return self.cr.fetchone()[0] or 0.0
diff --git a/addons/account/project/report/analytic_balance.rml b/addons/account/project/report/analytic_balance.rml
index cdfd0869db3..bbd7e409dc0 100644
--- a/addons/account/project/report/analytic_balance.rml
+++ b/addons/account/project/report/analytic_balance.rml
@@ -130,7 +130,7 @@
|
-
+
|
@@ -147,9 +147,6 @@
|
-
-
-
[[ repeatIn(get_objects(data['form']['empty_acc']),'o') ]]
From 218ea3854dced1ab01d7827fbdde94ee17f83b41 Mon Sep 17 00:00:00 2001
From: "uco (Open ERP)"
Date: Mon, 27 Sep 2010 13:58:04 +0530
Subject: [PATCH 21/23] [IMP] auction, mrp_repair: Code cleaning and
refactoring.
bzr revid: uco@tinyerp.com-20100927082804-15fu60d93ex33yzl
---
addons/auction/auction.py | 52 ++++++++------------------
addons/auction/wizard/auction_taken.py | 6 ---
addons/mrp_repair/mrp_repair.py | 3 +-
addons/mrp_repair/report/order.py | 2 -
4 files changed, 17 insertions(+), 46 deletions(-)
diff --git a/addons/auction/auction.py b/addons/auction/auction.py
index 1a61355f382..a1fb726339e 100644
--- a/addons/auction/auction.py
+++ b/addons/auction/auction.py
@@ -18,15 +18,10 @@
# along with this program. If not, see .
#
##############################################################################
-from mx import DateTime
from osv import fields, osv, orm
-from tools import config
from tools.translate import _
-import ir
import netsvc
-import os
import time
-import tools
#----------------------------------------------------------
# Auction Artists
@@ -70,29 +65,24 @@ class auction_dates(osv.osv):
name = [(r['id'], '['+r['auction1']+'] '+ r['name']) for r in reads]
return name
- def _get_buyer_invoice(self, cr, uid, ids, name, arg, context={}):
+ def _get_invoice(self, cr, uid, ids, name, arg, context={}):
lots_obj = self.pool.get('auction.lots')
result = {}
for data in self.browse(cr, uid, ids):
- inv_ids = []
- lots_ids = lots_obj.search(cr, uid, [('auction_id','=',data.id),('ach_inv_id','!=',False)])
+ buyer_inv_ids = []
+ seller_inv_ids = []
+ result[data.id] = {
+ 'seller_invoice_history': buyer_inv_ids,
+ 'buyer_invoice_history': seller_inv_ids,
+ }
+ lots_ids = lots_obj.search(cr, uid, [('auction_id','=',data.id)])
for lot in lots_obj.browse(cr, uid, lots_ids):
if lot.ach_inv_id:
- inv_ids.append(lot.ach_inv_id.id)
- result[data.id] = inv_ids
- return result
-
- def _get_seller_invoice(self, cr, uid, ids, name, arg, context={}):
- lots_obj = self.pool.get('auction.lots')
- lots_ids = lots_obj.search(cr, uid, [('auction_id','in',ids)])
- result = {}
- for data in self.browse(cr, uid, ids):
- inv_ids = []
- lots_ids = lots_obj.search(cr, uid, [('auction_id','=',data.id),('sel_inv_id','!=',False)])
- for lot in lots_obj.browse(cr, uid, lots_ids):
+ buyer_inv_ids.append(lot.ach_inv_id.id)
if lot.sel_inv_id:
- inv_ids.append(lot.sel_inv_id.id)
- result[data.id] = inv_ids
+ seller_inv_ids.append(lot.sel_inv_id.id)
+ result[data.id]['seller_invoice_history'] = seller_inv_ids
+ result[data.id]['buyer_invoice_history'] = buyer_inv_ids
return result
_columns = {
@@ -111,8 +101,8 @@ class auction_dates(osv.osv):
'state': fields.selection((('draft', 'Draft'), ('closed', 'Closed')), 'State', select=1, readonly=True,
help='When auction starts the state is \'Draft\'.\n At the end of auction, the state becomes \'Closed\'.'),
'account_analytic_id': fields.many2one('account.analytic.account', 'Analytic Account', required=True),
- 'buyer_invoice_history': fields.function(_get_buyer_invoice, relation='account.invoice', method=True, string="Buyer Invoice", type='many2many'),
- 'seller_invoice_history': fields.function(_get_seller_invoice, relation='account.invoice', method=True, string="Seller Invoice", type='many2many'),
+ 'buyer_invoice_history': fields.function(_get_invoice, relation='account.invoice', method=True, string="Buyer Invoice", type='many2many', multi=True),
+ 'seller_invoice_history': fields.function(_get_invoice, relation='account.invoice', method=True, string="Seller Invoice", type='many2many', multi=True),
}
_defaults = {
@@ -134,9 +124,9 @@ class auction_dates(osv.osv):
context={}
lots_obj = self.pool.get('auction.lots')
lots_ids = lots_obj.search(cr, uid, [('auction_id', 'in', ids), ('state', '=', 'draft'), ('obj_price', '>', 0)])
- new_buyer_invoice = lots_obj.lots_invoice(cr, uid, lots_ids, {}, None)
+ lots_obj.lots_invoice(cr, uid, lots_ids, {}, None)
lots_ids2 = lots_obj.search(cr, uid, [('auction_id', 'in', ids), ('obj_price', '>', 0)])
- new_seller_invoice = lots_obj.seller_trans_create(cr, uid, lots_ids2, {})
+ lots_obj.seller_trans_create(cr, uid, lots_ids2, {})
self.write(cr, uid, ids, {'state': 'closed'}) #close the auction
return True
@@ -289,7 +279,6 @@ class auction_lots(osv.osv):
lots = self.browse(cr, uid, ids, context)
pt_tax = self.pool.get('account.tax')
for lot in lots:
- total_tax = 0.0
taxes = []
for name in fields:
res[lot.id] = {name: False}
@@ -350,7 +339,6 @@ class auction_lots(osv.osv):
('account_id', '=', lot.auction_id.account_analytic_id.id),
('journal_id', '<>', lot.auction_id.journal_id.id),
('journal_id', '<>', lot.auction_id.journal_seller_id.id)])
- indir_cost = lot.bord_vnd_id.specific_cost_ids
for r in lot.bord_vnd_id.specific_cost_ids:
som += r.amount
for line in account_analytic_line_obj.browse(cr, uid, line_ids, context=context):
@@ -609,7 +597,6 @@ class auction_lots(osv.osv):
raise orm.except_orm(_('Missed buyer !'), _('The object "%s" has no buyer assigned.') % (lot.name,))
else:
partner_ref =lot.ach_uid.id
- lot_name = lot.obj_num
res = res_obj.address_get(cr, uid, [partner_ref], ['contact', 'invoice'])
contact_addr_id = res['contact']
invoice_addr_id = res['invoice']
@@ -663,16 +650,12 @@ class auction_lots(osv.osv):
inv_line_obj = self.pool.get('account.invoice.line')
wf_service = netsvc.LocalService('workflow')
for lot in self.browse(cr, uid, ids, context):
- partner_id = lot.bord_vnd_id.partner_id.id
if not lot.auction_id.id:
continue
- lot_name = lot.obj_num
if lot.bord_vnd_id.id in invoices:
inv_id = invoices[lot.bord_vnd_id.id]
else:
res = partner_obj.address_get(cr, uid, [lot.bord_vnd_id.partner_id.id], ['contact', 'invoice'])
- contact_addr_id = res['contact']
- invoice_addr_id = res['invoice']
inv = {
'name': 'Auction:' +lot.name,
'journal_id': lot.auction_id.journal_seller_id.id,
@@ -721,7 +704,6 @@ class auction_lots(osv.osv):
RETURN: id of generated invoice
"""
- dt = time.strftime('%Y-%m-%d')
inv_ref = self.pool.get('account.invoice')
res_obj = self.pool.get('res.partner')
inv_line_obj = self.pool.get('account.invoice.line')
@@ -738,8 +720,6 @@ class auction_lots(osv.osv):
add = res_obj.read(cr, uid, [lot.ach_uid.id], ['address'])[0]['address']
if not len(add):
raise orm.except_orm(_('Missed Address !'), _('The Buyer has no Invoice Address.'))
- price = lot.obj_price or 0.0
- lot_name =lot.obj_num
inv = {
'name':lot.auction_id.name or '',
'reference': lot.ach_login,
diff --git a/addons/auction/wizard/auction_taken.py b/addons/auction/wizard/auction_taken.py
index 7db905cd576..ff79000d898 100644
--- a/addons/auction/wizard/auction_taken.py
+++ b/addons/auction/wizard/auction_taken.py
@@ -19,12 +19,6 @@
#
##############################################################################
from osv import fields, osv
-from tools.translate import _
-import netsvc
-import pooler
-import time
-import tools
-import wizard
class auction_taken(osv.osv_memory):
"""
diff --git a/addons/mrp_repair/mrp_repair.py b/addons/mrp_repair/mrp_repair.py
index 9c4a11cb9e0..4fadcdce471 100644
--- a/addons/mrp_repair/mrp_repair.py
+++ b/addons/mrp_repair/mrp_repair.py
@@ -272,7 +272,6 @@ class mrp_repair(osv.osv):
@param product_id: Product id from current record.
@return: Dictionary of values.
"""
- prodlot_obj = self.pool.get('stock.production.lot')
move_obj = self.pool.get('stock.move')
data = {}
data['value'] = {
@@ -503,7 +502,7 @@ class mrp_repair(osv.osv):
return True
def wkf_repair_done(self, cr, uid, ids, *args):
- res = self.action_repair_done(cr, uid, ids)
+ self.action_repair_done(cr, uid, ids)
return True
def action_repair_done(self, cr, uid, ids, context=None):
diff --git a/addons/mrp_repair/report/order.py b/addons/mrp_repair/report/order.py
index 3257ba3df7a..3d6f9200dd8 100644
--- a/addons/mrp_repair/report/order.py
+++ b/addons/mrp_repair/report/order.py
@@ -21,8 +21,6 @@
import time
from report import report_sxw
-from osv import osv
-import pooler
class order(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
From a808490e0911e6f5340651b0b97f28657eb76796 Mon Sep 17 00:00:00 2001
From: "uco (Open ERP)"
Date: Mon, 27 Sep 2010 14:03:04 +0530
Subject: [PATCH 22/23] [IMP] point_of_sale: Code cleaning.
bzr revid: uco@tinyerp.com-20100927083304-o1is7f525eawp2cz
---
addons/point_of_sale/report/all_closed_cashbox_of_the_day.py | 3 ---
addons/point_of_sale/wizard/pos_return.py | 1 -
2 files changed, 4 deletions(-)
diff --git a/addons/point_of_sale/report/all_closed_cashbox_of_the_day.py b/addons/point_of_sale/report/all_closed_cashbox_of_the_day.py
index fce080dfd0b..8ec13ede5f5 100644
--- a/addons/point_of_sale/report/all_closed_cashbox_of_the_day.py
+++ b/addons/point_of_sale/report/all_closed_cashbox_of_the_day.py
@@ -125,10 +125,7 @@ class all_closed_cashbox_of_the_day(report_sxw.rml_parse):
return lst
def _get_net_total(self,user):
- lst = []
res={}
- total_ending_bal = 0.0
- total_starting_bal = 0.0
sql = """select sum(absl.amount) as net_total from account_bank_statement as abs
LEFT JOIN account_bank_statement_line as absl ON abs.id = absl.statement_id
where abs.state IN ('confirm','open') and abs.user_id = %d
diff --git a/addons/point_of_sale/wizard/pos_return.py b/addons/point_of_sale/wizard/pos_return.py
index 46e7fd8ca27..dfc16e0ff96 100644
--- a/addons/point_of_sale/wizard/pos_return.py
+++ b/addons/point_of_sale/wizard/pos_return.py
@@ -240,7 +240,6 @@ class add_product(osv.osv_memory):
data = data and data[0] or False
if active_id:
order_obj = self.pool.get('pos.order')
- lines_obj = self.pool.get('pos.order.line')
picking_obj = self.pool.get('stock.picking')
stock_move_obj = self.pool.get('stock.move')
property_obj= self.pool.get("ir.property")
From 079fa8494a67887adea73cdc072dd33e3e462af4 Mon Sep 17 00:00:00 2001
From: "Vir (Open ERP)"
Date: Mon, 27 Sep 2010 15:04:34 +0530
Subject: [PATCH 23/23] [IMP/MOD] stock : Extended filter option set before
group by in search view
bzr revid: vir@tinyerp.com-20100927093434-wsi78oq4vnsm4pg3
---
.../stock/report/report_stock_move_view.xml | 34 +++++++++----------
.../report/report_stock_picking_view.xml | 29 ++++++++--------
addons/stock/stock_view.xml | 16 ++++-----
3 files changed, 38 insertions(+), 41 deletions(-)
diff --git a/addons/stock/report/report_stock_move_view.xml b/addons/stock/report/report_stock_move_view.xml
index 2c8c1ad80e9..efbaaa12625 100644
--- a/addons/stock/report/report_stock_move_view.xml
+++ b/addons/stock/report/report_stock_move_view.xml
@@ -86,6 +86,15 @@
+
+
+
+
+
+
+
+
+
@@ -102,16 +111,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -187,7 +186,13 @@
-
+
+
+
+
+
+
+
@@ -200,13 +205,6 @@
-
-
-
-
-
-
-
diff --git a/addons/stock/report/report_stock_picking_view.xml b/addons/stock/report/report_stock_picking_view.xml
index 13cdd624cf2..edbd9e66b7d 100644
--- a/addons/stock/report/report_stock_picking_view.xml
+++ b/addons/stock/report/report_stock_picking_view.xml
@@ -72,6 +72,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -89,21 +103,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/addons/stock/stock_view.xml b/addons/stock/stock_view.xml
index f9fd2ed2bd2..e80e9856023 100644
--- a/addons/stock/stock_view.xml
+++ b/addons/stock/stock_view.xml
@@ -1598,6 +1598,14 @@
+
+
+
+
+
+
+
+
@@ -1612,14 +1620,6 @@
-
-
-
-
-
-
-
-
| | | | | |