- |
-
-
-
- |
+ |
[[ o.partner_id.title or '' ]] [[ o.partner_id.name ]]
[[ o.address_invoice_id.title or '' ]] [[ o.address_invoice_id.name ]]
@@ -248,9 +245,7 @@
[[ o.address_invoice_id.zip or '' ]] [[ o.address_invoice_id.city or '' ]]
[[ o.address_invoice_id.state_id and o.address_invoice_id.state_id.name or '' ]]
[[ o.address_invoice_id.country_id and o.address_invoice_id.country_id.name or '' ]]
-
-
-
+
Tel. : [[ o.address_invoice_id.phone or removeParentNode('para') ]]
Fax : [[ o.address_invoice_id.fax or removeParentNode('para') ]]
VAT : [[ o.partner_id.vat or removeParentNode('para') ]]
@@ -264,131 +259,55 @@
Refund [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]
Supplier Refund [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]
Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]] [[ o.number ]]
-
-
-
+
- |
- Document
- |
-
- Invoice Date
- |
-
- Partner Ref.
- |
+ Document |
+ Invoice Date |
+ Partner Ref. |
- |
- [[ o.name ]]
- |
-
- [[ formatLang(o.date_invoice,date=True) ]]
- |
-
- [[ o.address_invoice_id.partner_id.ref or '' ]]
- |
+ [[ o.name ]] |
+ [[ formatLang(o.date_invoice,date=True) ]] |
+ [[ o.address_invoice_id.partner_id.ref or '' ]] |
-
-
-
-
+
+
+
- |
- Description
- |
-
- Taxes
- |
-
- Quantity
- |
-
- Unit Price
- |
-
- Disc. (%)
- |
-
- Price
- |
+ Description |
+ Taxes |
+ Quantity |
+ Unit Price |
+ Disc.(%) |
+ Price |
[[ repeatIn(o.invoice_line,'l') ]]
- |
- [[ l.name ]]
- |
-
- [[ ', '.join([ lt.description or '' for lt in l.invoice_line_tax_id ]) ]]
- |
-
- [[ formatLang(l.quantity)]]
- |
-
- [[ (l.uos_id and l.uos_id.name) or '' ]]
- |
-
- [[ formatLang(l.price_unit) ]]
- |
-
- [[ formatLang(l.discount) ]]
- |
-
- [[ formatLang(l.price_subtotal) ]]
- |
-
- [[ o.currency_id.code ]]
- |
+ [[ l.name ]] |
+ [[ ', '.join([ lt.description or '' for lt in l.invoice_line_tax_id ]) ]] |
+ [[ formatLang(l.quantity)]] |
+ [[ (l.uos_id and l.uos_id.name) or '' ]] |
+ [[ formatLang(l.price_unit) ]] |
+ [[ formatLang(l.discount) ]] |
+ [[ formatLang(l.price_subtotal) ]] |
+ [[ o.currency_id.code ]] |
- |
- [[ format(l.note or removeParentNode('tr')) ]]
-
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
+ [[ format(l.note or removeParentNode('tr')) ]] |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
@@ -397,63 +316,31 @@
- |
-
-
-
- |
-
-
-
-
- |
+ |
+ |
|
- |
- Net Total:
- |
-
- [[ formatLang(o.amount_untaxed) ]]
- |
-
- [[ o.currency_id.code ]]
- |
+ Net Total: |
+ [[ formatLang(o.amount_untaxed) ]] |
+ [[ o.currency_id.code ]] |
-
-
-
- |
- Taxes:
- |
-
- [[ formatLang(o.amount_tax) ]]
- |
-
- [[ o.currency_id.code ]]
- |
+ Taxes: |
+ [[ formatLang(o.amount_tax) ]] |
+ [[ o.currency_id.code ]] |
-
-
-
- |
- Total:
- |
-
- [[ formatLang(o.amount_total) ]]
- |
-
- [[ o.currency_id.code ]]
- |
+ Total: |
+ [[ formatLang(o.amount_total) ]] |
+ [[ o.currency_id.code ]] |
|
@@ -462,25 +349,13 @@
-
-
-
- |
- Tax
- |
-
- Base
- |
-
- Amount
- |
+ Tax |
+ Base |
+ Amount |
-
-
-
|
@@ -488,15 +363,9 @@
[[ repeatIn(o.tax_line,'t') ]]
- |
- [[ t.name ]]
- |
-
- [[ formatLang(t.base) ]]
- |
-
- [[ t.tax_code_id.notprintable and removeParentNode('blockTable') or '' ]][[ formatLang(t.amount) ]]
- |
+ [[ t.name ]] |
+ [[ formatLang(t.base) ]] |
+ [[ t.tax_code_id.notprintable and removeParentNode('blockTable') or '' ]][[ formatLang(t.amount) ]] |
@@ -505,21 +374,9 @@
- |
-
-
-
- |
-
-
-
-
- |
-
-
-
-
- |
+ |
+ |
+ |
|
@@ -527,23 +384,13 @@
- |
-
-
-
- |
-
-
-
-
- |
+ |
+ |
- |
- [[ format(o.comment or removeParentNode('blockTable')) ]]
- |
+ [[ format(o.comment or removeParentNode('blockTable')) ]] |
@@ -551,9 +398,7 @@
- |
- [[ format((o.payment_term and o.payment_term.note) or removeParentNode('blockTable')) ]]
- |
+ [[ format((o.payment_term and o.payment_term.note) or removeParentNode('blockTable')) ]] |
diff --git a/addons/account/report/partner_balance.rml b/addons/account/report/partner_balance.rml
index a096b5a2412..ff6e1214a1b 100644
--- a/addons/account/report/partner_balance.rml
+++ b/addons/account/report/partner_balance.rml
@@ -57,11 +57,10 @@
-
-
-
+
+
+
+
@@ -88,21 +87,16 @@
-
-
-
-
-
-
-
-
+
+
+
-
-
-
+
+
+
@@ -110,7 +104,7 @@
-
+
@@ -289,96 +283,42 @@
fontName="Times-Italic" leading="5" alignment="RIGHT" spaceBefore="0.0" spaceAfter="6.0"
/>
-
+
- |
- [[ setTag('tr','tr',{'style':'Line1'}) ]] Code
- |
-
- Partner name
- |
-
- Débit
- |
-
- Crédit
- |
-
- Balance
- |
-
- In dispute
- |
+ Code |
+ (Account/Partner) Name |
+ Debit |
+ Credit |
+ Balance |
+ In dispute |
- |
- [[ setTag('tr','tr',{'style':'Line2'}) ]] Grand total
- |
-
-
- |
-
- [[ formatLang(sum_debit(data)) ]]
- |
-
- [[ formatLang(sum_credit(data)) ]]
- |
-
- [[ formatLang((solde_debit(data)-solde_credit(data))) ]]
- |
-
- [[ formatLang(sum_litige(data)) ]]
- |
+ Grand total |
+ |
+ [[ formatLang(sum_debit(data)) ]] |
+ [[ formatLang(sum_credit(data)) ]] |
+ [[ formatLang((solde_debit(data)-solde_credit(data))) ]] |
+ [[ formatLang(sum_litige(data)) ]] |
-
- |
- [[ repeatIn(lines(data), 'a') ]][[ a['type']==3 and ( setTag('para','para',{'fontName':'Helvetica-Bold'})) ]] [[ a['ref'] ]] [[ a['type']==3 and a['code'] ]]
- |
-
- [[ a['type']==3 and ( setTag('tr','tr',{'style':'TrLevel0'})) ]] [[ a['type']==3 and ( setTag('para','para',{'fontName':'Helvetica-Bold'})) ]] [[ a['type']==1 and ( setTag('blockTable','blockTable',{'style':'LineLevel1'})) ]] [[ a['name'] ]]
- |
-
-
- [[ (a['type']==3 or removeParentNode('font')) and setTag('para','para',{'fontName':'Helvetica-Bold'}) ]] [[ formatLang(a['debit']) ]]
- [[ (a['type']!=3 or removeParentNode('font')) and setTag('para','para',{'fontName':'Helvetica'}) ]] [[ formatLang(a['debit']) ]]
-
- |
-
-
- [[ (a['type']==3 or removeParentNode('font')) and setTag('para','para',{'fontName':'Helvetica-Bold'}) ]] [[ formatLang(a['credit']) ]]
- [[ (a['type']!=3 or removeParentNode('font')) and setTag('para','para',{'fontName':'Helvetica'}) ]] [[ formatLang(a['credit']) ]]
-
- |
-
-
- [[ (a['type']==3 or removeParentNode('font')) and setTag('para','para',{'fontName':'Helvetica-Bold'}) ]] [[ formatLang(a['balance']) ]]
- [[ (a['type']!=3 or removeParentNode('font')) and setTag('para','para',{'fontName':'Helvetica'}) ]] [[ formatLang(a['balance']) ]]
-
- |
-
-
- [[ (a['type']==3 or removeParentNode('font')) and setTag('para','para',{'fontName':'Helvetica-Bold'}) ]] [[ formatLang(a['enlitige'] or 0.00) ]]
- [[ (a['type']!=3 or removeParentNode('font')) and setTag('para','para',{'fontName':'Helvetica'}) ]] [[ formatLang(a['enlitige'] or 0.00) ]]
-
- |
+ Balance |
+ |
+ [[ formatLang(solde_debit(data)) ]] |
+ [[ formatLang(solde_credit(data)) ]] |
+ |
+ |
+
+
+ | [[ repeatIn(lines(data), 'a') ]][[ a['type']==3 and ( setTag('para','para',{'fontName':'Helvetica-Bold'})) ]][[ a['ref'] ]] [[ a['type']==3 and a['code'] ]] |
+ [[ a['type']==3 and ( setTag('para','para',{'fontName':'Helvetica-Bold'})) ]][[ a['name'] ]] |
+ [[ a['type']==3 and ( setTag('para','para',{'fontName':'Helvetica-Bold'})) ]][[ formatLang(a['debit']) ]] |
+ [[ a['type']==3 and ( setTag('para','para',{'fontName':'Helvetica-Bold'})) ]][[ formatLang(a['credit']) ]] |
+ [[ a['type']==3 and ( setTag('para','para',{'fontName':'Helvetica-Bold'})) ]][[ formatLang(a['balance']) ]] |
+ [[ a['type']==3 and ( setTag('para','para',{'fontName':'Helvetica-Bold'})) ]][[ formatLang(a['enlitige'] or 0.00) ]] |
-
\ No newline at end of file
+
diff --git a/addons/account/report/tax_report.py b/addons/account/report/tax_report.py
index d82f9ab99bd..79e59959d12 100644
--- a/addons/account/report/tax_report.py
+++ b/addons/account/report/tax_report.py
@@ -58,7 +58,7 @@ class tax_report(rml_parse.rml_parse):
else:
return self.comma_me(new)
def _get_lines(self, based_on,period_list,company_id=False, parent=False, level=0):
- res = self._get_codes(based_on,parent,level,period_list)
+ res = self._get_codes(based_on,company_id,parent,level,period_list)
if period_list[0][2] :
res = self._add_codes(based_on,res,period_list)
@@ -157,15 +157,15 @@ class tax_report(rml_parse.rml_parse):
i+=1
return res
- def _get_codes(self, based_on, parent=False, level=0,period_list=[]):
+ def _get_codes(self,based_on, company_id, parent=False, level=0,period_list=[]):
tc = self.pool.get('account.tax.code')
- ids = tc.search(self.cr, self.uid, [('parent_id','=',parent)])
+ ids = tc.search(self.cr, self.uid, [('parent_id','=',parent),('company_id','=',company_id)])
res = []
for code in tc.browse(self.cr, self.uid, ids, {'based_on': based_on}):
res.append(('.'*2*level,code))
- res += self._get_codes(based_on, code.id, level+1)
+ res += self._get_codes(based_on, company_id, code.id, level+1)
return res
def _add_codes(self,based_on, account_list=[],period_list=[]):
diff --git a/addons/account/report/tax_report.rml b/addons/account/report/tax_report.rml
index 9cdba22c43f..eecf76f7551 100644
--- a/addons/account/report/tax_report.rml
+++ b/addons/account/report/tax_report.rml
@@ -54,10 +54,10 @@
-
-
-
-
+
+
+
+
@@ -88,7 +88,7 @@
-
+
@@ -116,61 +116,20 @@
-
-
-
-
-
-
- |
- Code
- |
-
- Debit
- |
-
- Credit
- |
-
- Tax Amount
- |
-
-
-
-
-
- [[ repeatIn(get_lines(data['form']['based_on'],data['form']['periods'],data['form']['company_id']), 'o') ]]
- |
- [[ '...'*len(o['level']) ]]
- [[o['type']==1 and ( setTag('para','para',{'fontName':'Helvetica-Bold'}))]]
-
- [[ o['code'] ]] [[ o['name'] ]]
-
- |
-
-
-
- [[ len(o['level'])>3 and removeParentNode('font') ]][[ formatLang(o['debit']) ]]
- [[ len(o['level'])<4 and removeParentNode('font') ]][[ formatLang(o['debit']) ]]
-
- |
-
- [[ len(o['level'])>3 and removeParentNode('font') ]][[ formatLang(o['credit'])]]
- [[ len(o['level'])<4 and removeParentNode('font') ]][[ formatLang(o['credit'])]]
-
-
- |
-
- [[ len(o['level'])>3 and removeParentNode('font') ]][[ formatLang(o['tax_amount']) ]]
- [[ len(o['level'])<4 and removeParentNode('font') ]][[ formatLang(o['tax_amount']) ]]
-
-
- |
-
-
-
-
-
-
+
+
+
+ | Tax Name |
+ Debit |
+ Credit |
+ Tax Amount |
+
+
+ | [[ repeatIn(get_lines(data['form']['based_on'],data['form']['periods'],data['form']['company_id']), 'o') ]][[ '...'*len(o['level']) ]] [[o['type']==1 and ( setTag('para','para',{'fontName':'Helvetica-Bold'}))]][[ o['code'] ]] [[ o['name'] ]] |
+ [[ len(o['level'])<3 and setTag('para','para',{'fontName':"Helvetica-Bold"}) ]][[ formatLang(o['debit']) ]] |
+ [[ len(o['level'])<3 and setTag('para','para',{'fontName':"Helvetica-Bold"}) ]][[ formatLang(o['credit'])]] |
+ [[ len(o['level'])<3 and setTag('para','para',{'fontName':"Helvetica-Bold"}) ]][[ formatLang(o['tax_amount']) ]] |
+
+
diff --git a/addons/account/report/third_party_ledger.py b/addons/account/report/third_party_ledger.py
index 3004beddd7e..9828fdfbd63 100644
--- a/addons/account/report/third_party_ledger.py
+++ b/addons/account/report/third_party_ledger.py
@@ -447,4 +447,8 @@ report_sxw.report_sxw('report.account.third_party_ledger', 'res.partner',
'addons/account/report/third_party_ledger.rml',parser=third_party_ledger,
header=False)
+report_sxw.report_sxw('report.account.third_party_ledger_other', 'res.partner',
+ 'addons/account/report/third_party_ledger_other.rml',parser=third_party_ledger,
+ header=False)
+
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/account/report/third_party_ledger.rml b/addons/account/report/third_party_ledger.rml
index 91a9b67d7ca..82d14a6ef94 100644
--- a/addons/account/report/third_party_ledger.rml
+++ b/addons/account/report/third_party_ledger.rml
@@ -124,117 +124,54 @@
-
-
- [[ data['form']['page_split'] == True or removeParentNode('para') ]]
- [[ repeatIn(objects, 'p') ]] [[ setLang(p.partner_id.lang) ]]
-
-
+ [[ repeatIn(objects, 'p') ]] [[ setLang(p.partner_id.lang) ]]
- |
-
- Date
- |
-
- JNRL
- |
-
- Ref.
- |
-
- Entry label
- |
-
- Debit
- |
-
- Credit
- |
-
- Balance
- |
-
-
+ | Date |
+ JNRL |
+ Ref. |
+ Entry label |
+ Debit |
+ Credit |
+ Balance |
-
+
- |
- Balance brought forward
- |
-
- [[ formatLang((sum_debit(data))) ]]
- |
-
- [[ formatLang((sum_credit(data))) ]]
- |
-
- [[ formatLang((sum_debit(data) - sum_credit(data))) ]]
- |
+ Balance brought forward |
+ [[ formatLang((sum_debit(data))) ]] |
+ [[ formatLang((sum_credit(data))) ]] |
+ [[ formatLang((sum_debit(data) - sum_credit(data))) ]] |
|
-
- [[ data['form']['page_split'] == False or removeParentNode('para') ]]
- [[ repeatIn(objects, 'p') ]]
-
- |
- [[ p.ref ]] - [[ p.name ]]
- |
-
-
- |
-
- [[ formatLang((sum_debit_partner(p,data))) ]]
- |
-
- [[ formatLang((sum_credit_partner(p,data))) ]]
- |
-
- [[ formatLang((sum_debit_partner(p,data) - sum_credit_partner(p,data))) ]]
- |
+ [[ p.ref ]] - [[ p.name ]] |
+ |
+ [[ formatLang((sum_debit_partner(p,data))) ]] |
+ [[ formatLang((sum_credit_partner(p,data))) ]] |
+ [[ formatLang((sum_debit_partner(p,data) - sum_credit_partner(p,data))) ]] |
- |
- [[ repeatIn(lines(p,data), 'line') ]][[ formatLang(line['date'],date=True) ]]
- |
-
- [[ line['code'] ]]
- |
-
- [[ line['ref'] ]] / [[ line['name'] ]]
- |
-
-
- |
-
- [[ formatLang((line['debit'])) ]]
- |
-
- [[ formatLang((line['credit'])) ]]
- |
-
- [[ formatLang((line['progress'])) ]]
- |
+ [[ repeatIn(lines(p,data), 'line') ]][[ formatLang(line['date'],date=True) ]] |
+ [[ line['code'] ]] |
+ [[ line['ref'] ]] / [[ line['name'] ]] |
+ |
+ [[ formatLang((line['debit'])) ]] |
+ [[ formatLang((line['credit'])) ]] |
+ [[ formatLang((line['progress'])) ]] |
-
|
-
-
-
-
\ No newline at end of file
diff --git a/addons/account/report/third_party_ledger_other.rml b/addons/account/report/third_party_ledger_other.rml
new file mode 100644
index 00000000000..36a208d1206
--- /dev/null
+++ b/addons/account/report/third_party_ledger_other.rml
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [[ company.name ]]
+ Third Party Ledger [[ data['form']['result_selection'] == 'customer' and '/ Débiteur' ]] [[ data['form']['result_selection'] == 'supplier' and '/ Créancier' ]] [[ data['form']['result_selection'] == 'all' and '/ Créancier et Débiteur' ]]
+
+
+
+
+
+ [[ formatLang(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()),date_time = True) ]]
+ Page
+
+
+
+
+ 1cm 27.7cm 20cm 27.7cm
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ | Date |
+ JNRL |
+ Ref. |
+ Entry label |
+ Debit |
+ Credit |
+ Balance |
+
+
+
+
+
+ | Balance brought forward |
+ [[ formatLang((sum_debit(data))) ]] |
+ [[ formatLang((sum_credit(data))) ]] |
+ [[ formatLang((sum_debit(data) - sum_credit(data))) ]] |
+
+
+ |
+
+
+
+ [[ repeatIn(objects, 'p') ]]
+
+
+ | [[ p.ref ]] - [[ p.name ]] |
+ |
+ [[ formatLang((sum_debit_partner(p,data))) ]] |
+ [[ formatLang((sum_credit_partner(p,data))) ]] |
+ [[ formatLang((sum_debit_partner(p,data) - sum_credit_partner(p,data))) ]] |
+
+
+
+
+ | [[ repeatIn(lines(p,data), 'line') ]][[ formatLang(line['date'],date=True) ]] |
+ [[ line['code'] ]] |
+ [[ line['ref'] ]] / [[ line['name'] ]] |
+ |
+ [[ formatLang((line['debit'])) ]] |
+ [[ formatLang((line['credit'])) ]] |
+ [[ formatLang((line['progress'])) ]] |
+
+
+ |
+
+
+
+
\ No newline at end of file
diff --git a/addons/account/wizard/wizard_general_ledger_report.py b/addons/account/wizard/wizard_general_ledger_report.py
index 47191fa1d2b..c03171f8e61 100644
--- a/addons/account/wizard/wizard_general_ledger_report.py
+++ b/addons/account/wizard/wizard_general_ledger_report.py
@@ -120,10 +120,10 @@ def _check_state(self, cr, uid, data, context):
if data['form']['state'] == 'bydate':
_check_date(self, cr, uid, data, context)
- data['form']['fiscalyear'] = 0
- else :
-
- data['form']['fiscalyear'] = 1
+# data['form']['fiscalyear'] = 0
+# else :
+#
+# data['form']['fiscalyear'] = 1
return data['form']
@@ -138,8 +138,8 @@ class wizard_report(wizard.interface):
fiscalyear_obj = pooler.get_pool(cr.dbname).get('account.fiscalyear')
data['form']['fiscalyear'] = fiscalyear_obj.find(cr, uid)
- periods_obj=pooler.get_pool(cr.dbname).get('account.period')
- data['form']['periods'] =periods_obj.search(cr, uid, [('fiscalyear_id','=',data['form']['fiscalyear'])])
+ #periods_obj=pooler.get_pool(cr.dbname).get('account.period')
+ #data['form']['periods'] =periods_obj.search(cr, uid, [('fiscalyear_id','=',data['form']['fiscalyear'])])
data['form']['sortbydate'] = 'sort_date'
data['form']['display_account']='bal_all'
data['form']['landscape']=True
diff --git a/addons/account/wizard/wizard_third_party_ledger.py b/addons/account/wizard/wizard_third_party_ledger.py
index 8d7a46868ed..5693b54da77 100755
--- a/addons/account/wizard/wizard_third_party_ledger.py
+++ b/addons/account/wizard/wizard_third_party_ledger.py
@@ -105,6 +105,12 @@ class wizard_report(wizard.interface):
data['form']['soldeinit'] = True
return data['form']
+ def _check(self, cr, uid, data, context):
+ if data['form']['page_split']:
+ return 'report'
+ else:
+ return 'report_other'
+
def _check_date(self, cr, uid, data, context):
sql = """
@@ -134,12 +140,21 @@ class wizard_report(wizard.interface):
states = {
'init': {
'actions': [_get_defaults],
- 'result': {'type':'form', 'arch':period_form, 'fields':period_fields, 'state':[('end','Cancel','gtk-cancel'),('report','Print','gtk-print')]}
+ 'result': {'type':'form', 'arch':period_form, 'fields':period_fields, 'state':[('end','Cancel','gtk-cancel'),('checkreport','Print','gtk-print')]}
+ },
+ 'checkreport': {
+ 'actions': [],
+ 'result': {'type':'choice','next_state':_check}
},
'report': {
'actions': [_check_state],
'result': {'type':'print', 'report':'account.third_party_ledger', 'state':'end'}
+ },
+ 'report_other': {
+ 'actions': [_check_state],
+ 'result': {'type':'print', 'report':'account.third_party_ledger_other', 'state':'end'}
}
+
}
wizard_report('account.third_party_ledger.report')
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 f9166f00104..5fabe670f81 100644
--- a/addons/account_invoice_layout/report/report_account_invoice_layout.rml
+++ b/addons/account_invoice_layout/report/report_account_invoice_layout.rml
@@ -17,16 +17,20 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -35,89 +39,88 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
[[ repeatIn(objects,'o') ]]
[[ setLang(o.partner_id.lang) ]]
-
-|
-
-
-
- |
-
-[[ o.partner_id.title or '' ]] [[ o.partner_id.name ]]
-[[ o.address_invoice_id.title or '' ]] [[ o.address_invoice_id.name ]]
-[[ o.address_invoice_id.street ]]
-[[ o.address_invoice_id.street2 or '' ]]
-[[ o.address_invoice_id.zip or '' ]] [[ o.address_invoice_id.city or '' ]]
-[[ o.address_invoice_id.state_id and o.address_invoice_id.state_id.name or '' ]]
-[[ o.address_invoice_id.country_id and o.address_invoice_id.country_id.name or '' ]]
-
-
-
-Tel. : [[ o.address_invoice_id.phone or removeParentNode('para') ]]
-Fax : [[ o.address_invoice_id.fax or removeParentNode('para') ]]
-VAT : [[ o.partner_id.vat or removeParentNode('para') ]]
- |
-
+
+ | |
+
+ [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]]
+ [[ o.address_invoice_id.title or '' ]] [[ o.address_invoice_id.name ]]
+ [[ o.address_invoice_id.street ]]
+ [[ o.address_invoice_id.street2 or '' ]]
+ [[ o.address_invoice_id.zip or '' ]] [[ o.address_invoice_id.city or '' ]]
+ [[ o.address_invoice_id.state_id and o.address_invoice_id.state_id.name or '' ]]
+ [[ o.address_invoice_id.country_id and o.address_invoice_id.country_id.name or '' ]]
+
+ Tel. : [[ o.address_invoice_id.phone or removeParentNode('para') ]]
+ Fax : [[ o.address_invoice_id.fax or removeParentNode('para') ]]
+ VAT : [[ o.partner_id.vat or removeParentNode('para') ]]
+ |
+
-
-
+
+
Invoice [[ ((o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')) or removeParentNode('para')) and '' ]] [[ o.number ]]
PRO-FORMA [[ ((o.type == 'out_invoice' and o.state == 'proforma') or removeParentNode('para')) and '' ]]
@@ -125,190 +128,142 @@
Canceled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]]
Refund [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]
Supplier Refund [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]
-
-Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]]
-[[ o.number ]]
+Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]][[ o.number ]]
+
+
-
-
+Document:[[ o.name ]]
+
+Invoice Date: [[ formatLang(o.date_invoice,date=True) ]]
+Customer Ref:[[ o.address_invoice_id.partner_id.ref or '/' ]]
+
+
-
-Document:[[ o.name ]]
-
-
-Invoice Date: [[ formatLang(o.date_invoice,date=True) ]]
-
-
-Customer Ref: [[ o.address_invoice_id.partner_id.ref or '/' ]]
-
-
-
-
-
-
-
+
-|
-Description
- |
-
-Taxes
- |
-
-Quantity
- |
-
-Unit Price
- |
-
-Disc. (%)
- |
-
-Price
- |
+Description |
+Taxes |
+Quantity |
+Unit Price |
+Disc. (%) |
+Price |
[[ repeatIn(invoice_lines(o), 'a') ]]
-
+
- |
- [[ a['type']=='text' and removeParentNode('blockTable')]]
- |
-
- [[ (a['type']=='title' or a['type']=='subtotal') and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['name'] ]]
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['tax_types'] ]]
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['quantity'] ]]
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['uos'] ]]
- |
-
-
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['price_unit'] ]]
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['discount'] ]]
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['price_subtotal'] ]]
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['currency'] ]]
- |
+ [[ a['type']=='text' and removeParentNode('blockTable')]] |
+ [[ (a['type']=='title' or a['type']=='subtotal') and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['name'] ]] |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['tax_types'] ]] |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['quantity'] ]] |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['uos'] ]] |
+ |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['price_unit'] ]] |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['discount'] ]] |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['price_subtotal'] ]] |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['currency'] ]] |
+
+
+ |
+ [[ format(a['note'] or removeParentNode('tr')) ]] |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
- |
- [[ a['type']=='text' and a['name'] or removeParentNode('blockTable') ]]
- |
-
- [[ a['type']=='text' and '' or removeParentNode('blockTable') ]]
- |
-
-
-
-
- |
- [[ a['note']=='' and removeParentNode('blockTable') ]][[ repeatIn(( a['note'] and a['note'].splitlines()) or [], 'note') ]]
- |
-
- [[ note or removeParentNode('blockTable') ]]
- |
+ [[ a['type']=='text' and a['name'] or removeParentNode('blockTable') ]] |
+ [[ a['type']=='text' and '' or removeParentNode('blockTable') ]] |
[[ a['type']!='break' and removeParentNode('pageBreak')]]
-
+
- |
- Description [[ a['type']!='break' and removeParentNode('blockTable')]]
- |
-
- Taxes
- |
-
- Quantity
- |
-
- Unit Price
- |
-
- Disc. (%)
- |
-
- Price
- |
+ Description [[ a['type']!='break' and removeParentNode('blockTable')]] |
+ Taxes |
+ Quantity |
+ Unit Price |
+ Disc. (%) |
+ Price |
-
-
+
+
+
+
+
+ |
+ |
+ |
+
+
+ |
+ |
+ |
+
+
+ |
+
+
+
+ | Total (Excl. taxes): |
+ [[ '%.2f' % o.amount_untaxed ]] [[o.currency_id.code ]] |
+
+
+ | Taxes: |
+ [[ '%.2f' % o.amount_tax ]] [[o.currency_id.code ]] |
+
+
+ | Total (Incl. taxes): |
+ [[ '%.2f' % o.amount_total ]] [[o.currency_id.code ]] |
+
+
+ |
+
+
+
-
-|
-Tax
- |
-
-Base
- |
-
-Amount
- |
-
-
-|
-[[ repeatIn(o.tax_line,'t') ]] [[ t.name ]]
- |
-
-[[ '%.2f' % t.base ]]
- |
-
-[[ '%.2f' % t.amount]]
- |
-
+
+ | Tax |
+ Base |
+ Amount |
+
+
+ | [[ repeatIn(o.tax_line,'t') ]][[ t.name ]] |
+ [[ '%.2f' % t.base ]] |
+ [[ '%.2f' % t.amount]] |
+
|
-
-
-|
-Total (excl. taxes):
- |
-
-[[ '%.2f' % o.amount_untaxed ]] [[o.currency_id.code ]]
+
+
+ |
+ |
+ |
+
+
+ |
+ |
+ |
+
+
|
-
-|
-Taxes:
- |
-
-[[ '%.2f' % o.amount_tax ]] [[o.currency_id.code ]]
- |
-
-
-|
-Total (incl. taxes):
+
+
+
- |
-
-[[ '%.2f' % o.amount_total ]] [[o.currency_id.code ]]
- |
-
-
-
- |
-
-
[[ format(o.comment) or '' ]]
[[ format(o.payment_term and o.payment_term.note) or '' ]]
diff --git a/addons/account_invoice_layout/report/special_message_invoice.rml b/addons/account_invoice_layout/report/special_message_invoice.rml
index 4878163a1b8..16deca9e70c 100644
--- a/addons/account_invoice_layout/report/special_message_invoice.rml
+++ b/addons/account_invoice_layout/report/special_message_invoice.rml
@@ -17,16 +17,20 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -35,87 +39,89 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
[[ repeatIn(objects,'o') ]]
[[ setLang(o.partner_id.lang) ]]
-
-|
-
-
-
- |
-
-[[ o.partner_id.title or '' ]] [[ o.partner_id.name ]]
-[[ o.address_invoice_id.title or '' ]] [[ o.address_invoice_id.name ]]
-[[ o.address_invoice_id.street ]]
-[[ o.address_invoice_id.street2 or '' ]]
-[[ o.address_invoice_id.zip or '' ]] [[ o.address_invoice_id.city or '' ]]
-[[ o.address_invoice_id.state_id and o.address_invoice_id.state_id.name or '' ]]
-[[ o.address_invoice_id.country_id and o.address_invoice_id.country_id.name or '' ]]
-
-
-
-Tel. : [[ o.address_invoice_id.phone or removeParentNode('para') ]]
-Fax : [[ o.address_invoice_id.fax or removeParentNode('para') ]]
-VAT : [[ o.partner_id.vat or removeParentNode('para') ]]
- |
-
+
+ | |
+
+ [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]]
+ [[ o.address_invoice_id.title or '' ]] [[ o.address_invoice_id.name ]]
+ [[ o.address_invoice_id.street ]]
+ [[ o.address_invoice_id.street2 or '' ]]
+ [[ o.address_invoice_id.zip or '' ]] [[ o.address_invoice_id.city or '' ]]
+ [[ o.address_invoice_id.state_id and o.address_invoice_id.state_id.name or '' ]]
+ [[ o.address_invoice_id.country_id and o.address_invoice_id.country_id.name or '' ]]
+
+
+
+ Tel. : [[ o.address_invoice_id.phone or removeParentNode('para') ]]
+ Fax : [[ o.address_invoice_id.fax or removeParentNode('para') ]]
+ VAT : [[ o.partner_id.vat or removeParentNode('para') ]]
+ |
+
-
+
Invoice [[ ((o.type == 'out_invoice' and (o.state == 'open' or o.state == 'paid')) or removeParentNode('para')) and '' ]] [[ o.number ]]
@@ -124,189 +130,145 @@
Canceled Invoice [[ ((o.type == 'out_invoice' and o.state == 'cancel') or removeParentNode('para')) and '' ]]
Refund [[ (o.type=='out_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]
Supplier Refund [[ (o.type=='in_refund' or removeParentNode('para')) and '' ]] [[ o.number ]]
-
-Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]]
-[[ o.number ]]
-
-
+Supplier Invoice [[ (o.type=='in_invoice' or removeParentNode('para')) and '' ]][[ o.number ]]
+
-
-Document:[[o.name]]
-
-
-Invoice Date: [[ formatLang(o.date_invoice,date=True) ]]
-
-
-Customer Ref: [[ o.address_invoice_id.partner_id.ref or '/' ]]
-
-
-
-
-
-|
-Description
- |
-
-Taxes
- |
-
-Quantity
- |
-
-Unit Price
- |
-
-Disc. (%)
- |
-
-Price
- |
-
+Document:[[o.name]]
+
+Invoice Date: [[ formatLang(o.date_invoice,date=True) ]]
+Customer Ref: [[ o.address_invoice_id.partner_id.ref or '/' ]]
+
+
+
+ | Description |
+ Taxes |
+ Quantity |
+ Unit Price |
+ Disc. (%) |
+ Price |
+
[[ repeatIn(invoice_lines(o), 'a') ]]
-
+
- |
- [[ a['type']=='text' and removeParentNode('blockTable')]]
- |
-
- [[ (a['type']=='title' or a['type']=='subtotal') and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['name'] ]]
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['tax_types'] ]]
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['quantity'] ]]
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['uos'] ]]
- |
-
-
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['price_unit'] ]]
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['discount'] ]]
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['price_subtotal'] ]]
- |
-
- [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Times-bold'})) ]][[ a['currency'] ]]
- |
+ [[ a['type']=='text' and removeParentNode('blockTable')]] |
+ [[ (a['type']=='title' or a['type']=='subtotal') and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['name'] ]] |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['tax_types'] ]] |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['quantity'] ]] |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['uos'] ]] |
+ |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['price_unit'] ]] |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['discount'] ]] |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['price_subtotal'] ]] |
+ [[ a['type']=='subtotal' and ( setTag('para','para',{'fontName':'Helvetica-bold'})) ]][[ a['currency'] ]] |
+
+
+ |
+ [[ format(a['note'] or '') ]] |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
- |
- [[ a['type']=='text' and a['name'] or removeParentNode('blockTable') ]]
- |
-
- [[ a['type']=='text' and '' or removeParentNode('blockTable') ]]
- |
-
-
-
-
- |
- [[ a['note']=='' and removeParentNode('blockTable') ]][[ repeatIn(( a['note'] and a['note'].splitlines()) or [], 'note') ]]
- |
-
- [[ note or removeParentNode('blockTable') ]]
- |
+ [[ a['type']=='text' and a['name'] or removeParentNode('blockTable') ]] |
+ [[ a['type']=='text' and '' or removeParentNode('blockTable') ]] |
[[ a['type']!='break' and removeParentNode('pageBreak')]]
-
+
- |
- Description [[ a['type']!='break' and removeParentNode('blockTable')]]
- |
-
- Taxes
- |
-
- Quantity
- |
-
- Unit Price
- |
-
- Disc. (%)
- |
-
- Price
- |
+ Description [[ a['type']!='break' and removeParentNode('blockTable')]] |
+ Taxes |
+ Quantity |
+ Unit Price |
+ Disc. (%) |
+ Price |
-
-
+
-
-
-
-Tax
+
+
+ |
+ |
+ |
+
+
+ |
+ |
+ |
+
+
|
-Base
- |
-
-Amount
- |
-
-
-|
-[[ repeatIn(o.tax_line,'t') ]] [[ t.name ]]
- |
-
-[[ '%.2f' % t.base ]]
- |
-
-[[ '%.2f' % t.amount]]
+
+
+ | Total (Excl. taxes): |
+ [[ '%.2f' % o.amount_untaxed ]] [[o.currency_id.code ]] |
+
+
+ | Taxes: |
+ [[ '%.2f' % o.amount_tax ]] [[o.currency_id.code ]] |
+
+
+ | Total (Incl. taxes): |
+ [[ '%.2f' % o.amount_total ]] [[o.currency_id.code ]] |
+
+
|
- |
-
-
+
-Total (excl. taxes):
+
+
+ | Tax |
+ Base |
+ Amount |
+
+
+ | [[ repeatIn(o.tax_line,'t') ]][[ t.name ]] |
+ [[ '%.2f' % t.base ]] |
+ [[ '%.2f' % t.amount]] |
+
+
|
-[[ '%.2f' % o.amount_untaxed ]] [[o.currency_id.code ]]
+
+
+ |
+ |
+ |
+
+
+ |
+ |
+ |
+
+
|
-
-|
-Taxes:
- |
-
-[[ '%.2f' % o.amount_tax ]] [[o.currency_id.code ]]
- |
-
-
-|
-Total (incl. taxes):
+
+
+
- |
-
-[[ '%.2f' % o.amount_total ]] [[o.currency_id.code ]]
- |
-
-
-
- |
-
-
[[ format(o.comment) or '' ]]
[[ format(o.payment_term and o.payment_term.note) or '' ]]
+
+
+
[[ repeatIn((spcl_msg(data['form']) and spcl_msg(data['form']).splitlines()) or [], 'note') ]]
[[ note or removeParentNode('para') ]]
diff --git a/addons/membership/membership_demo.xml b/addons/membership/membership_demo.xml
index dba3e44abc3..35b04539ce3 100644
--- a/addons/membership/membership_demo.xml
+++ b/addons/membership/membership_demo.xml
@@ -26,7 +26,7 @@
membership
- 0
+ Membership-0
@@ -36,7 +36,7 @@
membership account
- 1254
+ Membership-1254
|