|
[[ move_g['code'] ]]
@@ -188,7 +208,7 @@
[[ formatLang(move_g['debit'])]]
|
- [[ formatLang(move_g['credit']) ]]
+ [[ formatLang(move_g['credit']) ]]
|
[[ formatLang(move_g['balance'])]] [[ company.currency_id.symbol ]]
@@ -202,21 +222,13 @@
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/addons/account/project/report/cost_ledger.rml b/addons/account/project/report/cost_ledger.rml
index a59e95724d0..90ff16be217 100644
--- a/addons/account/project/report/cost_ledger.rml
+++ b/addons/account/project/report/cost_ledger.rml
@@ -1,8 +1,8 @@
-
-
+
+
-
+
@@ -120,7 +120,29 @@
-
+
+
+
+
+ |
+ Date/Code
+ |
+
+ J.C. /Move name
+ |
+
+ Debit
+ |
+
+ Credit
+ |
+
+ Balance
+ |
+
+
+
+
|
@@ -137,7 +159,7 @@
|
-
+
|
Period from
@@ -150,7 +172,7 @@
|
-
+
[[ formatLang(data['form']['date1'],date = True) ]]
@@ -166,7 +188,7 @@
-
+
|
Date/Code
@@ -181,11 +203,11 @@
Credit
|
- Balance
+ Balance
|
-
+
Total:
@@ -208,7 +230,7 @@
[[ repeatIn(objects,'o') ]]
-
+
[[ o.code ]]
@@ -229,7 +251,7 @@
[[ repeatIn(lines_g(o.id,data['form']['date1'],data['form']['date2']),'move_g') ]]
-
+
[[ move_g['code'] ]]
@@ -250,7 +272,7 @@
[[ repeatIn(lines_a(move_g['id'],o.id,data['form']['date1'],data['form']['date2']),'move_a') ]]
-
+
[[ formatLang(move_a['date'],date = True) ]]
@@ -278,5 +300,6 @@
+
\ No newline at end of file
diff --git a/addons/account/project/report/inverted_analytic_balance.rml b/addons/account/project/report/inverted_analytic_balance.rml
index 6de2e28d46e..25a79aa63f9 100644
--- a/addons/account/project/report/inverted_analytic_balance.rml
+++ b/addons/account/project/report/inverted_analytic_balance.rml
@@ -87,6 +87,31 @@
+
+
+
+
+ |
+ Code
+ |
+
+ Name
+ |
+
+ Debit
+ |
+
+ Credit
+ |
+
+ Balance
+ |
+
+ Quantity
+ |
+
+
+
@@ -199,5 +224,6 @@
+
\ No newline at end of file
diff --git a/addons/account/project/report/quantity_cost_ledger.rml b/addons/account/project/report/quantity_cost_ledger.rml
index 68e391223b4..8d83b9512ab 100644
--- a/addons/account/project/report/quantity_cost_ledger.rml
+++ b/addons/account/project/report/quantity_cost_ledger.rml
@@ -1,8 +1,8 @@
-
-
+
+
-
+
@@ -117,7 +117,26 @@
-
+
+
+
+
+ |
+ Code/Date
+ |
+
+ J.C./Move name
+ |
+
+ Quantity
+ |
+
+ Total
+ |
+
+
+
+
|
@@ -134,7 +153,7 @@
|
-
+
|
Period from
@@ -147,7 +166,7 @@
|
-
+
[[ formatLang(data['form']['date1'],date = True) ]]
@@ -166,7 +185,7 @@
-
+
|
Code/Date
@@ -175,14 +194,14 @@
J.C./Move name
|
- Quantity
+ Quantity
|
Total
|
-
+
|
Total:
@@ -203,8 +222,8 @@
|
- [[ repeatIn(objects,'o') ]]
-
+ [[ repeatIn(objects,'o') ]]
+
|
[[ o.code ]]
@@ -221,8 +240,8 @@
|
- [[ repeatIn(lines_g(o.id,data['form']['date1'],data['form']['date2'],data['form']['journal']),'move_g') ]]
-
+ [[ repeatIn(lines_g(o.id,data['form']['date1'],data['form']['date2'],data['form']['journal']),'move_g') ]]
+
|
[[ move_g['code'] ]]
@@ -235,7 +254,7 @@
|
-
+
[[ repeatIn(lines_a(move_g['id'],o.id,data['form']['date1'],data['form']['date2'],data['form']['journal']),'move_a') ]]
@@ -257,5 +276,6 @@
+
\ No newline at end of file
diff --git a/addons/account/report/account_aged_partner_balance.py b/addons/account/report/account_aged_partner_balance.py
index 879560a5b4a..b99070330f7 100644
--- a/addons/account/report/account_aged_partner_balance.py
+++ b/addons/account/report/account_aged_partner_balance.py
@@ -20,12 +20,10 @@
##############################################################################
import time
-
-import rml_parse
from report import report_sxw
from common_report_header import common_report_header
-class aged_trial_report(rml_parse.rml_parse, common_report_header):
+class aged_trial_report(report_sxw.rml_parse, common_report_header):
def __init__(self, cr, uid, name, context):
super(aged_trial_report, self).__init__(cr, uid, name, context=context)
diff --git a/addons/account/report/account_aged_partner_balance.rml b/addons/account/report/account_aged_partner_balance.rml
index 8b8336d1c06..cbc4688c368 100644
--- a/addons/account/report/account_aged_partner_balance.rml
+++ b/addons/account/report/account_aged_partner_balance.rml
@@ -1,6 +1,6 @@
-
-
+
+
@@ -107,7 +107,7 @@
|
|
- Aged Trial balance |
+ Aged Trial Balance |
|
diff --git a/addons/account/report/account_balance.py b/addons/account/report/account_balance.py
index 5a6c7700b9d..f9697710f8f 100644
--- a/addons/account/report/account_balance.py
+++ b/addons/account/report/account_balance.py
@@ -20,7 +20,6 @@
##############################################################################
import time
-
from report import report_sxw
from common_report_header import common_report_header
diff --git a/addons/account/report/account_balance.rml b/addons/account/report/account_balance.rml
index 277d568330c..7c9aa13da2e 100644
--- a/addons/account/report/account_balance.rml
+++ b/addons/account/report/account_balance.rml
@@ -1,6 +1,6 @@
-
-
+
+
@@ -18,7 +18,7 @@
-
+
@@ -148,11 +148,11 @@
-
+
-
+
@@ -189,7 +189,7 @@
-
+
@@ -283,7 +283,7 @@
-
+
| Code |
Account |
diff --git a/addons/account/report/account_balance_landscape.py b/addons/account/report/account_balance_landscape.py
index 6ec7ec7c10e..8576850ff5e 100644
--- a/addons/account/report/account_balance_landscape.py
+++ b/addons/account/report/account_balance_landscape.py
@@ -22,7 +22,6 @@
import time
import locale
from report import report_sxw
-import rml_parse
parents = {
'tr':1,
@@ -31,7 +30,7 @@ parents = {
'section': 0
}
-class account_balance_landscape(rml_parse.rml_parse):
+class account_balance_landscape(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(account_balance_landscape, self).__init__(cr, uid, name, context=context)
self.flag=1
diff --git a/addons/account/report/account_balance_landscape.rml b/addons/account/report/account_balance_landscape.rml
index 1f695eb36a8..d8e4881bbbe 100644
--- a/addons/account/report/account_balance_landscape.rml
+++ b/addons/account/report/account_balance_landscape.rml
@@ -1,6 +1,6 @@
-
-
+
+
diff --git a/addons/account/report/account_balance_landscape_old_backup.rml b/addons/account/report/account_balance_landscape_old_backup.rml
index cd7e9edc860..6790082f8dd 100755
--- a/addons/account/report/account_balance_landscape_old_backup.rml
+++ b/addons/account/report/account_balance_landscape_old_backup.rml
@@ -1,6 +1,6 @@
-
-
+
+
@@ -80,7 +80,7 @@
- Account balance
+ Account Balance
|
diff --git a/addons/account/report/account_balance_old_backup.rml b/addons/account/report/account_balance_old_backup.rml
index 1d40e58cbfb..cf67cb6bc3d 100755
--- a/addons/account/report/account_balance_old_backup.rml
+++ b/addons/account/report/account_balance_old_backup.rml
@@ -1,6 +1,6 @@
-
-
+
+
diff --git a/addons/account/report/account_balance_sheet.py b/addons/account/report/account_balance_sheet.py
index 4d3e06dee05..b6f39fbbebd 100644
--- a/addons/account/report/account_balance_sheet.py
+++ b/addons/account/report/account_balance_sheet.py
@@ -22,13 +22,12 @@
import time
import pooler
-import rml_parse
from report import report_sxw
from account.report import account_profit_loss
from common_report_header import common_report_header
from tools.translate import _
-class report_balancesheet_horizontal(rml_parse.rml_parse, common_report_header):
+class report_balancesheet_horizontal(report_sxw.rml_parse, common_report_header):
def __init__(self, cr, uid, name, context=None):
super(report_balancesheet_horizontal, self).__init__(cr, uid, name, context=context)
self.obj_pl = account_profit_loss.report_pl_account_horizontal(cr, uid, name, context=context)
diff --git a/addons/account/report/account_balance_sheet.rml b/addons/account/report/account_balance_sheet.rml
index 076de7bdcd4..74b3bf81190 100644
--- a/addons/account/report/account_balance_sheet.rml
+++ b/addons/account/report/account_balance_sheet.rml
@@ -1,6 +1,6 @@
-
-
+
+
@@ -35,19 +35,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
@@ -230,7 +218,7 @@
|
-
+
Balance:
diff --git a/addons/account/report/account_balance_sheet_horizontal.rml b/addons/account/report/account_balance_sheet_horizontal.rml
index bde0d2786d0..7bfaeb9f33e 100644
--- a/addons/account/report/account_balance_sheet_horizontal.rml
+++ b/addons/account/report/account_balance_sheet_horizontal.rml
@@ -1,6 +1,6 @@
-
-
+
+
diff --git a/addons/account/report/account_central_journal.py b/addons/account/report/account_central_journal.py
index 6ab5b38d03d..d3113b63133 100644
--- a/addons/account/report/account_central_journal.py
+++ b/addons/account/report/account_central_journal.py
@@ -20,7 +20,6 @@
##############################################################################
import time
-
from report import report_sxw
from common_report_header import common_report_header
#
diff --git a/addons/account/report/account_central_journal.rml b/addons/account/report/account_central_journal.rml
index 28cb68fcce3..320a38370a2 100644
--- a/addons/account/report/account_central_journal.rml
+++ b/addons/account/report/account_central_journal.rml
@@ -1,6 +1,6 @@
-
-
+
+
@@ -274,7 +274,7 @@
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
| A/C No. |
Account Name |
@@ -283,7 +283,7 @@
Balance |
- [[ display_currency(data) or removeParentNode('blockTable') ]]
+ [[ display_currency(data) or removeParentNode('blockTable') ]]
| A/C No. |
Account Name |
@@ -293,7 +293,7 @@
Currency |
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
| Total: |
|
@@ -302,7 +302,7 @@
[[ 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 ]] |
- [[ display_currency(data) or removeParentNode('blockTable') ]]
+ [[ display_currency(data) or removeParentNode('blockTable') ]]
| Total: |
|
@@ -314,7 +314,7 @@
[[ repeatIn(lines(o.period_id.id,o.journal_id.id),'line') ]]
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
| [[ line['code'] ]] |
[[ line['name'] ]] |
@@ -323,7 +323,7 @@
[[ formatLang(line['credit']-line['debit']) ]] [[ company.currency_id.symbol ]] |
- [[ display_currency(data) or removeParentNode('blockTable') ]]
+ [[ display_currency(data) or removeParentNode('blockTable') ]]
| [[ line['code'] ]] |
[[ line['name'] ]] |
diff --git a/addons/account/report/account_general_journal.py b/addons/account/report/account_general_journal.py
index 4a20ac9ebc4..9eb81157dba 100644
--- a/addons/account/report/account_general_journal.py
+++ b/addons/account/report/account_general_journal.py
@@ -20,7 +20,6 @@
##############################################################################
import time
-
from common_report_header import common_report_header
from report import report_sxw
diff --git a/addons/account/report/account_general_journal.rml b/addons/account/report/account_general_journal.rml
index f41302408c5..a98eda3fff3 100644
--- a/addons/account/report/account_general_journal.rml
+++ b/addons/account/report/account_general_journal.rml
@@ -1,6 +1,6 @@
-
-
+
+
diff --git a/addons/account/report/account_general_ledger.py b/addons/account/report/account_general_ledger.py
index 434f9f800cd..6ccfb9343a2 100644
--- a/addons/account/report/account_general_ledger.py
+++ b/addons/account/report/account_general_ledger.py
@@ -28,12 +28,10 @@
##############################################################################
import time
-
from report import report_sxw
from common_report_header import common_report_header
-import rml_parse
-class general_ledger(rml_parse.rml_parse, common_report_header):
+class general_ledger(report_sxw.rml_parse, common_report_header):
_name = 'report.account.general.ledger'
def set_context(self, objects, data, ids, report_type=None):
@@ -88,9 +86,20 @@ class general_ledger(rml_parse.rml_parse, common_report_header):
'get_start_date':self._get_start_date,
'get_end_date':self._get_end_date,
'get_target_move': self._get_target_move,
+ 'strip_name': self._strip_name,
})
self.context = context
+ def _ellipsis(self, orig_str, maxlen=100, ellipsis='...'):
+ maxlen = maxlen - len(ellipsis)
+ if maxlen <= 0:
+ maxlen = 1
+ new_str = orig_str[:maxlen]
+ return new_str
+
+ def _strip_name(self, name, maxlen=50):
+ return self._ellipsis(name, maxlen, ' ...')
+
def _sum_currency_amount_account(self, account):
self.cr.execute('SELECT sum(l.amount_currency) AS tot_currency \
FROM account_move_line l \
diff --git a/addons/account/report/account_general_ledger.rml b/addons/account/report/account_general_ledger.rml
index 917ffa214d8..2a3bfda8e48 100644
--- a/addons/account/report/account_general_ledger.rml
+++ b/addons/account/report/account_general_ledger.rml
@@ -1,6 +1,6 @@
-
-
+
+
@@ -177,6 +177,34 @@
+
+
+ [[data['form']['amount_currency'] == False or removeParentNode('blockTable')]]
+
+ | Date |
+ Partner |
+ Ref |
+ Move |
+ Entry Label |
+ Debit |
+ Credit |
+ Balance |
+
+
+ [[ data['form']['amount_currency'] == True or removeParentNode('blockTable') ]]
+
+ | Date |
+ Partner |
+ Ref |
+ Move |
+ Entry Label |
+ Debit |
+ Credit |
+ Balance |
+ Currency |
+
+
+
|
@@ -334,9 +362,10 @@
| [[ formatLang(line['debit']) ]] |
[[ formatLang(line['credit']) ]] |
[[ formatLang(line['progress']) ]] [[ company.currency_id.symbol ]] |
- [[ (line['currency_id']==None or line['amount_currency']==None) and removeParentNode('font') ]] [[ formatLang(line['amount_currency'])]] [[ line['currency_code'] or '']] |
+ [[ (line.has_key('currency_id') and line['currency_id']==None or line['amount_currency']==None) and removeParentNode('font') ]] [[ formatLang(line['amount_currency'])]] [[ 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 75dc04c507b..430bde219e1 100644
--- a/addons/account/report/account_general_ledger_landscape.rml
+++ b/addons/account/report/account_general_ledger_landscape.rml
@@ -1,6 +1,6 @@
-
-
+
+
@@ -140,7 +140,7 @@
-
+
@@ -178,6 +178,38 @@
+
+
+ [[data['form']['amount_currency'] == True or removeParentNode('blockTable')]]
+
+ | Date |
+ JNRL |
+ Partner |
+ Ref |
+ Move |
+ Entry Label |
+ Counterpart |
+ Debit |
+ Credit |
+ Balance |
+ Currency |
+
+
+ [[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]
+
+ | Date |
+ JNRL |
+ Partner |
+ Ref |
+ Move |
+ Entry Label |
+ Counterpart |
+ Debit |
+ Credit |
+ Balance |
+
+
+
|
@@ -295,16 +327,16 @@
| [[ formatLang(line['debit'], digits=get_digits(dp='Account')) ]] |
[[ formatLang(line['credit'], digits=get_digits(dp='Account')) ]] |
[[ formatLang(line['progress'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]] |
- [[ (line['currency_id']==None or line['amount_currency']==None) and removeParentNode('font') ]] [[ formatLang(line['amount_currency'])]] [[ line['currency_code'] or '']] |
+ [[ (line.has_key('currency_id') and line['currency_id']==None or line['amount_currency']==None) and removeParentNode('font') ]] [[ formatLang(line['amount_currency'])]] [[ line['currency_code'] or '']] |
- [[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]
+ [[ data['form']['amount_currency'] == False or removeParentNode('blockTable') ]]
- | Date |
- JNRL |
+ Date |
+ JNRL |
Partner |
Ref |
Move |
@@ -320,10 +352,10 @@
[[ repeatIn(get_children_accounts(a), 'o') ]]
- [[data['form']['amount_currency'] == False or removeParentNode('blockTable')]]
+ [[data['form']['amount_currency'] == False or removeParentNode('blockTable')]]
-
+
| [[ '..'*(o.level-1) ]][[ o.code ]] [[ o.name ]] |
|
@@ -362,5 +394,6 @@
+
diff --git a/addons/account/report/account_journal.py b/addons/account/report/account_journal.py
index 2a699b20f84..82af01cdb0b 100644
--- a/addons/account/report/account_journal.py
+++ b/addons/account/report/account_journal.py
@@ -20,7 +20,6 @@
##############################################################################
import time
-
from common_report_header import common_report_header
from report import report_sxw
diff --git a/addons/account/report/account_journal.rml b/addons/account/report/account_journal.rml
index ba343f389b9..cb37b4e83f5 100644
--- a/addons/account/report/account_journal.rml
+++ b/addons/account/report/account_journal.rml
@@ -1,6 +1,6 @@
-
-
+
+
diff --git a/addons/account/report/account_partner_balance.rml b/addons/account/report/account_partner_balance.rml
index 19eef489507..6425d6a4db6 100644
--- a/addons/account/report/account_partner_balance.rml
+++ b/addons/account/report/account_partner_balance.rml
@@ -1,6 +1,6 @@
-
-
+
+
@@ -227,7 +227,7 @@
-
+
| Code |
(Account/Partner) Name |
diff --git a/addons/account/report/account_partner_ledger.py b/addons/account/report/account_partner_ledger.py
index 06475311bf3..e66c3a9d523 100644
--- a/addons/account/report/account_partner_ledger.py
+++ b/addons/account/report/account_partner_ledger.py
@@ -21,12 +21,10 @@
import time
import re
-
-import rml_parse
from report import report_sxw
from common_report_header import common_report_header
-class third_party_ledger(rml_parse.rml_parse, common_report_header):
+class third_party_ledger(report_sxw.rml_parse, common_report_header):
def __init__(self, cr, uid, name, context=None):
super(third_party_ledger, self).__init__(cr, uid, name, context=context)
diff --git a/addons/account/report/account_partner_ledger.rml b/addons/account/report/account_partner_ledger.rml
index 139d9bb16cd..b3a8e9f7fdc 100644
--- a/addons/account/report/account_partner_ledger.rml
+++ b/addons/account/report/account_partner_ledger.rml
@@ -1,6 +1,6 @@
-
-
+
+
@@ -175,6 +175,68 @@
+
+
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+
+ |
+ Date
+ |
+
+ JNRL
+ |
+
+ Ref.
+ |
+
+ Account
+ |
+
+ Entry Label
+ |
+
+ Debit
+ |
+
+ Credit
+ |
+
+ Balance
+ |
+
+
+ [[ display_currency(data) == True or removeParentNode('blockTable') ]]
+
+ |
+ Date
+ |
+
+ JNRL
+ |
+
+ Ref.
+ |
+
+ Account
+ |
+
+ Entry Label
+ |
+
+ Debit
+ |
+
+ Credit
+ |
+
+ Balance
+ |
+
+ Currency
+ |
+
+
+
@@ -277,7 +339,7 @@
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
Date
@@ -311,20 +373,20 @@
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
|
[[ p.ref ]] - [[ p.name ]]
|
- [[ formatLang((sum_debit_partner(p))) ]]
+ [[ formatLang((sum_debit_partner(p))) ]]
|
- [[ formatLang((sum_credit_partner(p))) ]]
+ [[ formatLang((sum_credit_partner(p))) ]]
|
- [[ formatLang((sum_debit_partner(p) - sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((sum_debit_partner(p) - sum_credit_partner(p))) ]] [[ company.currency_id.symbol ]]
|
@@ -347,7 +409,7 @@
[[ repeatIn(lines(p), 'line') ]]
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
[[ formatLang(line['date'],date=True) ]]
@@ -499,5 +561,6 @@
+
diff --git a/addons/account/report/account_partner_ledger_other.rml b/addons/account/report/account_partner_ledger_other.rml
index 644077eec84..c3315dde64d 100644
--- a/addons/account/report/account_partner_ledger_other.rml
+++ b/addons/account/report/account_partner_ledger_other.rml
@@ -1,6 +1,6 @@
-
-
+
+
@@ -331,6 +331,68 @@
+
+
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+
+ |
+ Date
+ |
+
+ JNRL
+ |
+
+ Ref.
+ |
+
+ Account
+ |
+
+ Entry Label
+ |
+
+ Debit
+ |
+
+ Credit
+ |
+
+ Balance
+ |
+
+
+ [[ display_currency(data) == True or removeParentNode('blockTable') ]]
+
+ |
+ Date
+ |
+
+ JNRL
+ |
+
+ Ref.
+ |
+
+ Account
+ |
+
+ Entry Label
+ |
+
+ Debit
+ |
+
+ Credit
+ |
+
+ Balance
+ |
+
+ Currency
+ |
+
+
+
@@ -432,7 +494,7 @@
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
Date
@@ -462,7 +524,7 @@
[[ repeatIn(objects, 'p') ]] [[ setLang(p.lang) ]]
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
@@ -495,7 +557,7 @@
[[ repeatIn(lines(p), 'line') ]]
- [[ display_currency(data) == False or removeParentNode('blockTable') ]]
+ [[ display_currency(data) == False or removeParentNode('blockTable') ]]
[[ formatLang(line['date'],date=True) ]]
@@ -636,5 +698,6 @@
+
diff --git a/addons/account/report/account_print_invoice.rml b/addons/account/report/account_print_invoice.rml
index 87f3bb770ba..c6057627b32 100644
--- a/addons/account/report/account_print_invoice.rml
+++ b/addons/account/report/account_print_invoice.rml
@@ -194,7 +194,7 @@
-
+
Description
@@ -218,7 +218,7 @@
[[ repeatIn(o.invoice_line,'l') ]]
-
+
|
[[ l.name ]]
@@ -271,7 +271,7 @@
|
-
+
@@ -315,7 +315,7 @@
-
+
Tax [[ o.tax_line==[] and removeParentNode('blockTable') ]]
@@ -335,7 +335,7 @@
[[ repeatIn(o.tax_line,'t') ]]
-
+
[[ t.name ]]
diff --git a/addons/account/report/account_print_overdue.rml b/addons/account/report/account_print_overdue.rml
index 81a9f072b51..61533a2966c 100644
--- a/addons/account/report/account_print_overdue.rml
+++ b/addons/account/report/account_print_overdue.rml
@@ -1,5 +1,5 @@
-
+
diff --git a/addons/account/report/account_profit_horizontal.rml b/addons/account/report/account_profit_horizontal.rml
index 89cbc4f8502..c7c4a94bcd7 100644
--- a/addons/account/report/account_profit_horizontal.rml
+++ b/addons/account/report/account_profit_horizontal.rml
@@ -1,6 +1,6 @@
-
-
+
+
diff --git a/addons/account/report/account_profit_loss.py b/addons/account/report/account_profit_loss.py
index 0bfaea7a570..117f9e351fb 100644
--- a/addons/account/report/account_profit_loss.py
+++ b/addons/account/report/account_profit_loss.py
@@ -19,14 +19,12 @@
##############################################################################
import time
-
import pooler
-import rml_parse
from report import report_sxw
from common_report_header import common_report_header
from tools.translate import _
-class report_pl_account_horizontal(rml_parse.rml_parse, common_report_header):
+class report_pl_account_horizontal(report_sxw.rml_parse, common_report_header):
def __init__(self, cr, uid, name, context=None):
super(report_pl_account_horizontal, self).__init__(cr, uid, name, context=context)
diff --git a/addons/account/report/account_profit_loss.rml b/addons/account/report/account_profit_loss.rml
index c371ab4c638..33e69d02e96 100644
--- a/addons/account/report/account_profit_loss.rml
+++ b/addons/account/report/account_profit_loss.rml
@@ -1,5 +1,5 @@
-
+
@@ -238,7 +238,7 @@
|
- Total:([[ get_currency(data) ]])
+ Total:
|
[[ formatLang(abs(sum_dr())) ]] [[ company.currency_id.symbol ]]
diff --git a/addons/account/report/account_tax_code.py b/addons/account/report/account_tax_code.py
index 42bbe305381..86d3128cfe7 100644
--- a/addons/account/report/account_tax_code.py
+++ b/addons/account/report/account_tax_code.py
@@ -21,8 +21,6 @@
##############################################################################
import time
-
-import rml_parse
from report import report_sxw
def _get_country(record):
@@ -44,7 +42,7 @@ def _record_to_report_line(record):
'country': _get_country(record)
}
-class account_tax_code_report(rml_parse.rml_parse):
+class account_tax_code_report(report_sxw.rml_parse):
def __init__(self, cr, uid, name, context):
super(account_tax_code_report, self).__init__(cr, uid, name, context=context)
self.localcontext.update({
diff --git a/addons/account/report/account_tax_code.rml b/addons/account/report/account_tax_code.rml
index 82297022fb4..7489ac72a39 100644
--- a/addons/account/report/account_tax_code.rml
+++ b/addons/account/report/account_tax_code.rml
@@ -1,6 +1,6 @@
-
-
+
+
diff --git a/addons/account/report/account_tax_report.py b/addons/account/report/account_tax_report.py
index 4361448790c..a3bdc1a75f6 100644
--- a/addons/account/report/account_tax_report.py
+++ b/addons/account/report/account_tax_report.py
@@ -21,11 +21,10 @@
import time
-import rml_parse
from common_report_header import common_report_header
from report import report_sxw
-class tax_report(rml_parse.rml_parse, common_report_header):
+class tax_report(report_sxw.rml_parse, common_report_header):
_name = 'report.account.vat.declaration'
def set_context(self, objects, data, ids, report_type=None):
@@ -61,7 +60,6 @@ class tax_report(rml_parse.rml_parse, common_report_header):
'get_basedon': self._get_basedon,
})
-
def _get_basedon(self, form):
return form['form']['based_on']
diff --git a/addons/account/report/account_tax_report.rml b/addons/account/report/account_tax_report.rml
index 41790ea6f07..de4aa415fef 100644
--- a/addons/account/report/account_tax_report.rml
+++ b/addons/account/report/account_tax_report.rml
@@ -1,38 +1,11 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
- [[ company.name ]]
- Tax Report
-
-
-
- [[ formatLang(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()),date_time = True) ]]
- Page
-
-
-
-
- 1cm 27.7cm 20cm 27.7cm
-
-
-
-
+
diff --git a/addons/account/report/account_voucher_print.py b/addons/account/report/account_voucher_print.py
index a174a6ad680..912e0794a9c 100644
--- a/addons/account/report/account_voucher_print.py
+++ b/addons/account/report/account_voucher_print.py
@@ -21,7 +21,6 @@
##############################################################################
import time
-
from report import report_sxw
from tools import amount_to_text_en
diff --git a/addons/account/report/rml_parse.py b/addons/account/report/rml_parse.py
deleted file mode 100644
index cf33d1c6ae0..00000000000
--- a/addons/account/report/rml_parse.py
+++ /dev/null
@@ -1,148 +0,0 @@
-# -*- coding: utf-8 -*-
-##############################################################################
-#
-# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2010 Tiny SPRL ().
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Affero General Public License as
-# published by the Free Software Foundation, either version 3 of the
-# License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see .
-#
-##############################################################################
-
-import time
-
-import re
-import sys
-
-from report import report_sxw
-
-class rml_parse(report_sxw.rml_parse):
- def __init__(self, cr, uid, name, context):
- super(rml_parse, self).__init__(cr, uid, name, context=context)
- self.localcontext.update({
- 'comma_me': self.comma_me,
- 'format_date': self._get_and_change_date_format_for_swiss,
- 'strip_name': self._strip_name,
- 'explode_name': self._explode_name,
- })
-
- def comma_me(self,amount):
- #print "#" + str(amount) + "#"
- if not amount:
- amount = 0.0
- if type(amount) is float:
- amount = str('%.2f'%amount)
- else:
- amount = str(amount)
- if (amount == '0'):
- return ' '
- orig = amount
- new = re.sub("^(-?\d+)(\d{3})", "\g<1>'\g<2>", amount)
- if orig == new:
- return new
- else:
- return self.comma_me(new)
- def _ellipsis(self, string, maxlen=100, ellipsis = '...'):
- ellipsis = ellipsis or ''
- try:
- return string[:maxlen - len(ellipsis) ] + (ellipsis, '')[len(string) < maxlen]
- except:
- return False
- def _strip_name(self, name, maxlen=50):
- return self._ellipsis(name, maxlen, '...')
-
- def _get_and_change_date_format_for_swiss(self,date_to_format):
- date_formatted=''
- if date_to_format:
- date_formatted = strptime(date_to_format,'%Y-%m-%d').strftime('%d.%m.%Y')
- return date_formatted
-
- def _explode_name(self,chaine,length):
- # We will test if the size is less then account
- full_string = ''
- if (len(str(chaine)) <= length):
- return chaine
- #
- else:
- chaine = unicode(chaine,'utf8').encode('iso-8859-1')
- rup = 0
- for carac in chaine:
- rup = rup + 1
- if rup == length:
- full_string = full_string + '\n'
- full_string = full_string + carac
- rup = 0
- else:
- full_string = full_string + carac
-
- return full_string
-
- def makeAscii(self,str):
- try:
- Stringer = str.encode("utf-8")
- except UnicodeDecodeError:
- try:
- Stringer = str.encode("utf-16")
- except UnicodeDecodeError:
- print "UTF_16 Error"
- Stringer = str
- else:
- return Stringer
- else:
- return Stringer
- return Stringer
- def explode_this(self,chaine,length):
- chaine = chaine.rstrip()
- ast = list(chaine)
- i = length
- while i <= len(ast):
- ast.insert(i,'\n')
- i = i + length
- chaine = str("".join(ast))
- return chaine
- def repair_string(self, chaine):
- ast = list(chaine)
- UnicodeAst = []
- i = 0
- while i < len(ast):
- elem = ast[i]
- try:
- elem.encode("utf-8")
- except UnicodeDecodeError:
- to_reencode = elem + ast[i+1]
- print str(to_reencode)
- Good_char = to_reencode.decode('utf-8')
- UnicodeAst.append(Good_char)
- i += i +2
- else:
- UnicodeAst.append(elem)
- i += i + 1
-
-
- return "".join(UnicodeAst)
-
- def ReencodeAscii(self,str):
- print sys.stdin.encoding
- try:
- Stringer = str.decode("ascii")
- except UnicodeEncodeError:
- print "REENCODING ERROR"
- return str.encode("ascii")
- except UnicodeDecodeError:
- print "DECODING ERROR"
- return str.encode("ascii")
-
- else:
- return Stringer
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
diff --git a/addons/account/test/account_report.yml b/addons/account/test/account_report.yml
index 9fcd976a235..0e0ddfb3e99 100644
--- a/addons/account/test/account_report.yml
+++ b/addons/account/test/account_report.yml
@@ -16,7 +16,7 @@
-
!python {model: account.invoice}: |
import netsvc, tools, os
- (data, format) = netsvc.LocalService('report.account.invoice').create(cr, uid, [ref('test_invoice_1')], {}, {})
+ (data, format) = netsvc.LocalService('report.account.invoice').create(cr, uid, [ref('account.account_invoice_customer0')], {}, {})
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'account-invoice.'+format), 'wb+').write(data)
@@ -38,41 +38,6 @@
if tools.config['test_report_directory']:
file(os.path.join(tools.config['test_report_directory'], 'account-voucher-report.'+format), 'wb+').write(data)
--
- Demo data for Account tax code
--
- !record {model: account.tax.code, id: account_tax_code_0}:
- name : Tax Code Test
- sign : 10.00
--
- Print Tax Code entries report
--
- !python {model: account.tax.code}: |
- import netsvc, tools, os
- (data, format) = netsvc.LocalService('report.account.tax.code.entries').create(cr, uid, [ref('account_tax_code_0')], {}, {})
- if tools.config['test_report_directory']:
- file(os.path.join(tools.config['test_report_directory'], 'account-tax-code-entries.'+format), 'wb+').write(data)
-
-
--
- Print Vat Declaration Report
--
- !python {model: account.tax.code}: |
- import netsvc, tools, os
- data_dict = {'model': 'ir.ui.menu', 'form': {'based_on': 'invoices','company_id':ref('base.main_company'),'periods':[]}}
- (data, format) = netsvc.LocalService('report.account.vat.declaration').create(cr, uid, [ref("account_move_0")], data_dict, {})
- if tools.config['test_report_directory']:
- file(os.path.join(tools.config['test_report_directory'], 'account-vat-declaration.'+format), 'wb+').write(data)
-
--
- In order to test the PDF reports defined on an invoice, we will print an invoice
--
- !python {model: account.invoice}: |
- import netsvc, tools, os
- (data, format) = netsvc.LocalService('report.account.invoice').create(cr, uid, [ref('test_invoice_1')], {}, {})
- if tools.config['test_report_directory']:
- file(os.path.join(tools.config['test_report_directory'], 'account-invoice.'+format), 'wb+').write(data)
-
-
Print the Aged Partner Balance Report
-
diff --git a/addons/account_analytic_plans/report/crossovered_analytic.rml b/addons/account_analytic_plans/report/crossovered_analytic.rml
index 1abde7093b8..0292522206d 100644
--- a/addons/account_analytic_plans/report/crossovered_analytic.rml
+++ b/addons/account_analytic_plans/report/crossovered_analytic.rml
@@ -133,6 +133,28 @@
+
+
+
+
+ |
+ Account Name
+ |
+
+ Code
+ |
+
+ Quantity
+ |
+
+ Amount
+ |
+
+ Percentage
+ |
+
+
+
@@ -277,5 +299,6 @@
+
\ No newline at end of file
diff --git a/addons/account_budget/report/analytic_account_budget_report.rml b/addons/account_budget/report/analytic_account_budget_report.rml
index 10b54482ae7..a8b957f52a5 100644
--- a/addons/account_budget/report/analytic_account_budget_report.rml
+++ b/addons/account_budget/report/analytic_account_budget_report.rml
@@ -1,8 +1,8 @@
-
+
-
+
@@ -10,30 +10,41 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
@@ -69,7 +80,7 @@
-
+
@@ -78,7 +89,7 @@
-
+
@@ -87,86 +98,111 @@
+
- [[repeatIn(objects,'o')]]
-
-
- |
- Analytic Budget
- |
-
-
-
-
- |
- Currency: [[ company.currency_id.name ]]
- |
-
- Printed at: [[ formatLang(time.strftime('%Y-%m-%d'),date=True) ]] at [[ time.strftime('%H:%M:%S')]]
- |
-
-
- |
- Analysis from [[ formatLang(data['form']['date_from'],date=True) ]] to [[ formatLang(data['form']['date_to'],date=True) ]]
- |
-
- Analytic Account : [[ o.name ]]
- |
-
-
-
-
-
-
-
-
-
+
+
+
|
Description
|
- Theoretical Amt
+ Theoretical Amt
|
- Planned Amt
+ Planned Amt
|
- Practical Amt
+ Practical Amt
|
- Perc(%)
+ Perc(%)
+ |
+
+
+
+ [[repeatIn(objects,'o')]]
+ Analytic Budget
+
+
+
+
+
+ |
+ Analysis from
+ |
+
+ Analytic Account
+ |
+
+ Currency
+ |
+
+
+
+
+ |
+ [[ formatLang(data['form']['date_from'],date=True) ]] to [[ formatLang(data['form']['date_to'],date=True) ]]
+ |
+
+ [[ o.name ]]
+ |
+
+ [[ company.currency_id.name ]]
+ |
+
+
+
+
+
+
+
+ |
+ Description
+ |
+
+ Theoretical Amt
+ |
+
+ Planned Amt
+ |
+
+ Practical Amt
+ |
+
+ Perc(%)
|
[[ repeatIn(funct(o,data['form']),'a') ]]
-
+
|
- [['.....' *(a['status']-1) ]] [[ (a['status']==1 and (setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ a['name'] ]]
+ [['.....' *(a['status']-1) ]] [[ (a['status']==1 and (setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ a['name'] ]]
|
- [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['theo']) ]] [[ company.currency_id.symbol ]]
+ [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['theo']) ]] [[ company.currency_id.symbol ]]
|
- [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['pln']) ]] [[ company.currency_id.symbol ]]
+ [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['pln']) ]] [[ company.currency_id.symbol ]]
|
- [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['prac']) ]] [[ company.currency_id.symbol ]]
+ [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['prac']) ]] [[ company.currency_id.symbol ]]
|
- [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['perc']) ]]%
+ [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['perc']) ]]%
|
-
+
|
- [[ repeatIn(funct_total(data['form']),'b') ]] Total:
+ [[ repeatIn(funct_total(data['form']),'b') ]] Total:
|
[[ formatLang(b['tot_theo']) ]] [[ company.currency_id.symbol ]]
@@ -178,12 +214,13 @@
[[ formatLang(b['tot_prac']) ]] [[ company.currency_id.symbol ]]
|
- [[ formatLang(b['tot_perc']) ]]%
+ [[ formatLang(b['tot_perc']) ]]%
|
+
-
+
\ No newline at end of file
diff --git a/addons/account_budget/report/crossovered_budget_report.rml b/addons/account_budget/report/crossovered_budget_report.rml
index 0533042822a..ef45c1bd2a6 100644
--- a/addons/account_budget/report/crossovered_budget_report.rml
+++ b/addons/account_budget/report/crossovered_budget_report.rml
@@ -1,8 +1,8 @@
-
-
+
+
-
+
@@ -10,28 +10,41 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
@@ -67,16 +80,16 @@
-
+
-
+
-
-
+
+
@@ -90,38 +103,40 @@
[[ repeatIn(objects,'o') ]]
-
+ Budget
+
+
+
+
|
- Budget
+ Analysis from
+ |
+
+ Budget
+ |
+
+ Currency
|
-
+
|
- Currency: [[ company.currency_id.name ]]
+ [[ formatLang(data['form']['date_from'],date=True) ]] to [[ formatLang(data['form']['date_to'],date=True) ]]
|
- Printed at: [[ formatLang(time.strftime('%Y-%m-%d'),date=True) ]] at [[ time.strftime('%H:%M:%S')]]
- |
-
-
- |
- Analysis from [[ formatLang(data['form']['date_from'],date=True) ]] to [[ formatLang(data['form']['date_to'],date=True) ]]
+ [[ o.name ]]
|
- Budget : [[ o.name ]]
+ [[ company.currency_id.name ]]
|
-
-
-
-
+
|
Description
@@ -136,36 +151,36 @@
Practical Amt
|
- Perc(%)
+ Perc(%)
|
[[ repeatIn(funct(o,data['form']),'a') ]]
-
+
|
- [['.....' *(a['status']-1) ]][[ (a['status']==1 and (setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ a['name'] ]]
+ [['.....' *(a['status']-1) ]][[ (a['status']==1 and (setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ a['name'] ]]
|
- [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['theo'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
+ [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['theo'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
|
- [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['pln'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
+ [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['pln'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
|
- [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['prac'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
+ [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['prac'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
|
- [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['perc'], digits=2) ]]%
+ [[ (a['status']==1 and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]] [[ formatLang(a['perc'],digits=2) ]]%
|
-
+
|
- [[ repeatIn(funct_total(data['form']),'b') ]]Total:
+ [[ repeatIn(funct_total(data['form']),'b') ]] Total :
|
[[ formatLang(b['tot_theo'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
@@ -177,7 +192,7 @@
[[ formatLang(b['tot_prac'], digits=get_digits(dp='Account')) ]] [[ company.currency_id.symbol ]]
|
- [[ formatLang(b['tot_perc'], digits=2) ]]%
+ [[ formatLang(b['tot_perc'],digits=2) ]]%
|
@@ -185,4 +200,4 @@
-
+
\ No newline at end of file
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 df7c25f3de8..1eac32853e5 100644
--- a/addons/account_invoice_layout/report/report_account_invoice_layout.rml
+++ b/addons/account_invoice_layout/report/report_account_invoice_layout.rml
@@ -60,7 +60,6 @@
-
@@ -245,7 +244,7 @@
-
+
Description / Taxes
@@ -266,7 +265,7 @@
[[ repeatIn(invoice_lines(o), 'a') ]]
-
+
|
[[ a['type']=='text' and removeParentNode('blockTable')]]
@@ -275,10 +274,7 @@
[[ ((a['type']=='title' or a['type']=='subtotal') and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]][[ a['name'] ]] [[ a['type']=='article' and ('/ (' + a['tax_types'] + ')' ) ]]
|
- [[ (a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]][[ a['quantity'] ]]
- |
-
- [[ a['uos'] ]]
+ [[ (a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]][[ a['quantity'] ]] [[ a['uos'] ]]
|
[[ (a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]][[ a['price_unit'] ]]
@@ -322,11 +318,6 @@
|
-
-
-
-
- |
@@ -344,8 +335,8 @@
|
- [[ a['type']!='break' and removeParentNode('pageBreak')]]
-
+ [[ a['type']!='break' and removeParentNode('pageBreak')]]
+
|
Description / Taxes [[ a['type']!='break' and removeParentNode('blockTable')]]
@@ -365,7 +356,7 @@
|
-
+
|
@@ -380,7 +371,7 @@
|
-
+
|
@@ -395,7 +386,7 @@
|
-
+
@@ -416,7 +407,7 @@
-
+
Tax [[ o.tax_line==[] and removeParentNode('blockTable') ]]
@@ -436,7 +427,7 @@
[[ repeatIn(o.tax_line,'t') ]]
-
+
[[ t.name ]]
diff --git a/addons/account_invoice_layout/report/special_message_invoice.rml b/addons/account_invoice_layout/report/special_message_invoice.rml
index 2925b3526b8..282dce2d988 100644
--- a/addons/account_invoice_layout/report/special_message_invoice.rml
+++ b/addons/account_invoice_layout/report/special_message_invoice.rml
@@ -60,7 +60,6 @@
-
@@ -249,7 +248,7 @@
-
+
Description / Taxes
@@ -270,7 +269,7 @@
[[ repeatIn(invoice_lines(o), 'a') ]]
-
+
|
[[ a['type']=='text' and removeParentNode('blockTable')]]
@@ -279,10 +278,7 @@
[[ ((a['type']=='title' or a['type']=='subtotal') and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]][[ a['name'] ]] [[ a['type']=='article' and ('/ (' + a['tax_types'] +' )' ) ]]
|
- [[ (a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]][[ a['quantity'] ]]
- |
-
- [[ a['uos'] ]]
+ [[ (a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]][[ a['quantity'] ]] [[ a['uos'] ]]
|
[[ (a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'}))) or removeParentNode('font') ]][[ a['price_unit'] ]]
@@ -326,11 +322,6 @@
|
-
-
-
-
- |
@@ -348,8 +339,8 @@
|
- [[ a['type']!='break' and removeParentNode('pageBreak')]]
-
+ [[ a['type']!='break' and removeParentNode('pageBreak')]]
+
|
Description / Taxes [[ a['type']!='break' and removeParentNode('blockTable')]]
@@ -369,7 +360,7 @@
|
-
+
|
@@ -384,7 +375,7 @@
|
-
+
|
@@ -399,7 +390,7 @@
|
-
+
@@ -420,7 +411,7 @@
-
+
|
Tax [[ o.tax_line==[] and removeParentNode('blockTable') ]]
@@ -440,7 +431,7 @@
[[ repeatIn(o.tax_line,'t') ]]
-
+ | | | | | | | | | | | | | | | | | | | | | | | | | | |