|
- [[ repeatIn(o.planning_user_ids , 'u') ]] [[ formatLang(u.user_id.name ]]
+ [[ repeatIn(o.planning_user_ids , 'u') ]] [[ u.user_id.name ]]
|
[[ formatLang(u.plan_tasks) ]]
From 2f273455e3d666fffd52eed28aa0b3dc93bbc685 Mon Sep 17 00:00:00 2001
From: apa-tiny
Date: Thu, 16 Sep 2010 14:00:44 +0530
Subject: [PATCH 04/14] account tqax code
bzr revid: apa@tinyerp.com-20100916083044-kiino11qtsawkf2c
---
addons/account/report/account_tax_code.rml | 179 ++++++++++-----------
1 file changed, 85 insertions(+), 94 deletions(-)
diff --git a/addons/account/report/account_tax_code.rml b/addons/account/report/account_tax_code.rml
index 35205440993..9c495dd4834 100644
--- a/addons/account/report/account_tax_code.rml
+++ b/addons/account/report/account_tax_code.rml
@@ -1,32 +1,8 @@
-
+
-
-
-
-
-
-
-
- [[ company.name ]]
- Accounting Entries-[[ company.currency_id.name ]]
-
-
-
-
-
- [[ formatLang(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()),date_time = True) ]]
- Page
-
-
-
-
- 1cm 27.7cm 20cm 27.7cm
-
-
-
-
+
@@ -34,28 +10,20 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -71,19 +39,19 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
-
+
+
-
@@ -95,59 +63,82 @@
-
+
+
-
- [[ repeatIn(objects, 'o') ]]
-
-
-
-
+ [[ repeatIn(objects, 'o') ]]
+
- | [[ o.company_id.name ]] |
- |
- Accounting Entries-[[ o.company_id.currency_id.name ]] |
+
+ Accounting Entries-[[ company.currency_id.name ]]
+ |
-
-
-
- [[ o.name ]]
-
-
-
-
-
-
- | Date |
- Voucher Nb |
- Account Number |
- Third party (Country) |
- Entry label |
- Debit |
- Credit |
-
-
- | [[ repeatIn(get_line(o),'line') ]][[ not line and removeParentNode('tr') ]][[ formatLang(line['date'],date=True) ]] |
- [[ line['ref'] ]] |
- [[ line['acode'] ]] |
- [[ line['pname'] ]]([[ line['country'] ]] ) |
- [[ line['name'] ]] |
- [[ formatLang(line['debit']) ]] |
- [[ formatLang(line['credit']) ]] |
-
-
-
-
+
+
+
+ |
+ Date
+ |
+
+ Voucher No
+ |
+
+ A/c Code
+ |
+
+ Third Party (Country)
+ |
+
+ Entry Label
+ |
+
+ Debit([[ company.currency_id.name ]])
+ |
+
+ Credit([[ company.currency_id.name ]])
+ |
+
+
+
+ [[ repeatIn(get_line(o),'line') ]]
+
+
+ |
+ [[ not line and removeParentNode('blockTable') ]] [[ formatLang(line['date'],date=True) ]]
+ |
+
+ [[ line['ref'] ]]
+ |
+
+ [[ line['acode'] ]]
+ |
+
+ [[ line['pname'] ]] ([[ line['country'] ]] )
+ |
+
+ [[ line['name'] ]]
+ |
+
+ [[ formatLang(line['debit']) ]] [[ company.currency_id.symbol]]
+ |
+
+ [[ formatLang(line['credit']) ]] [[ company.currency_id.symbol]]
+ |
+
+
+
+
+
+
-
-
+
\ No newline at end of file
From ecce13766871e9180bfd88e34deca1e6470bb52d Mon Sep 17 00:00:00 2001
From: apa-tiny
Date: Thu, 16 Sep 2010 14:18:16 +0530
Subject: [PATCH 05/14] Picking List
bzr revid: apa@tinyerp.com-20100916084816-xcmumrde4oyqx65y
---
addons/stock/report/picking.rml | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/addons/stock/report/picking.rml b/addons/stock/report/picking.rml
index 0cf3111781a..317180c7209 100644
--- a/addons/stock/report/picking.rml
+++ b/addons/stock/report/picking.rml
@@ -1,6 +1,6 @@
-
+
@@ -124,6 +124,7 @@
|
+ Shipping Address :
[[ (picking.address_id and picking.address_id.partner_id and picking.address_id.partner_id.title) or '' ]] [[ picking.address_id and picking.address_id.partner_id and picking.address_id.partner_id.name ]]
[[ picking.address_id and picking.address_id.street or '' ]]
[[ (picking.address_id and picking.address_id.street2) or removeParentNode('para') ]]
@@ -132,6 +133,7 @@
[[ (picking.address_id and picking.address_id.country_id and picking.address_id.country_id.name) or '' ]]
|
+ Contact Address :
[[ picking.address_id and picking.address_id.title or '' ]] [[ picking.address_id and picking.address_id.name or '' ]]
[[ picking.address_id and picking.address_id.street or '' ]]
[[ (picking.address_id and picking.address_id.street2) or removeParentNode('para') ]]
@@ -147,9 +149,6 @@
-
-
-
@@ -160,9 +159,6 @@
-
-
-
From 4a0e8149cbfac01e1d360cbbddf3548d2414fb1b Mon Sep 17 00:00:00 2001
From: "rch (Open ERP)" <>
Date: Thu, 16 Sep 2010 14:27:42 +0530
Subject: [PATCH 06/14] [IMP]: Solve date formate problem in report 'Human
Resource / Reporting /Holidays/Leaves By Department'.
bzr revid: rch_open_erp-20100916085742-89wsk1fvo1ypl74q
---
addons/hr_holidays/report/holidays_summary_report.py | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/addons/hr_holidays/report/holidays_summary_report.py b/addons/hr_holidays/report/holidays_summary_report.py
index a551e3a0a5d..a14970b31e5 100644
--- a/addons/hr_holidays/report/holidays_summary_report.py
+++ b/addons/hr_holidays/report/holidays_summary_report.py
@@ -87,7 +87,8 @@ class report_custom(report_rml):
depts=[]
emp_id={}
# done={}
-
+ rpt_obj = pooler.get_pool(cr.dbname).get('hr.holidays')
+ rml_obj=report_sxw.rml_parse(cr, uid, rpt_obj._name,context)
cr.execute("SELECT name FROM res_company")
res=cr.fetchone()[0]
date_xml=[]
@@ -113,8 +114,8 @@ class report_custom(report_rml):
else:
type="Confirmed and Validated"
holiday_type=('confirm','validate')
- date_xml.append('%s\n'% (som))
- date_xml.append('%s\n' %(eom))
+ date_xml.append('%s\n'% (str(rml_obj.formatLang(som.strftime("%Y-%m-%d"),date=True))))
+ date_xml.append('%s\n' %(str(rml_obj.formatLang(eom.strftime("%Y-%m-%d"),date=True))))
date_xml.append('%s'%(type))
# date_xml=[]
@@ -229,8 +230,6 @@ class report_custom(report_rml):
emp_xml += emp_create_xml(self, cr, uid, 0, holiday_type, row_id, item['id'], item['name'], som, eom)
row_id = row_id +1
- rpt_obj = pooler.get_pool(cr.dbname).get('hr.holidays')
- rml_obj=report_sxw.rml_parse(cr, uid, rpt_obj._name,context)
header_xml = '''
%s
From 7922c3b73f5b418a475189e5ae447421fcb80135 Mon Sep 17 00:00:00 2001
From: "rch (Open ERP)" <>
Date: Thu, 16 Sep 2010 14:57:52 +0530
Subject: [PATCH 07/14] [IMP]: Solve date format problem in report 'Human
Resource / Reporting /Timesheet /Timesheet Profit'.
bzr revid: rch_open_erp-20100916092752-8x6lcpfgbe5m2f2x
---
.../hr_timesheet_invoice/report/account_analytic_profit.rml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/addons/hr_timesheet_invoice/report/account_analytic_profit.rml b/addons/hr_timesheet_invoice/report/account_analytic_profit.rml
index 0e6a12030f2..3cb4b150395 100644
--- a/addons/hr_timesheet_invoice/report/account_analytic_profit.rml
+++ b/addons/hr_timesheet_invoice/report/account_analytic_profit.rml
@@ -157,10 +157,12 @@
|
- [[ data['form']['date_from'] ]]
+ [[ formatLang (data['form']['date_from'],date=True)
+]]
|
- [[ data['form']['date_to'] ]]
+ [[ formatLang (data['form']['date_to'],date=True)
+ ]]
|
[[ company.currency_id.name ]]
From 05898a20d4ed921b0cc79f3a4ca55729e37592f7 Mon Sep 17 00:00:00 2001
From: "saz(OpenERP)" <>
Date: Thu, 16 Sep 2010 17:18:35 +0530
Subject: [PATCH 08/14] Accounting/Balance Sheet Report/ Print Balance Sheet
Report * need to change report format. like Account Balance * wrong date
format
bzr revid: apa@tinyerp.com-20100916114835-fxnoewvsdheta90s
---
.../report/account_report_bs.rml | 141 ++++++++++++------
1 file changed, 96 insertions(+), 45 deletions(-)
diff --git a/addons/account_reporting/report/account_report_bs.rml b/addons/account_reporting/report/account_report_bs.rml
index 59caba5ab76..b33ebb4bcc8 100644
--- a/addons/account_reporting/report/account_report_bs.rml
+++ b/addons/account_reporting/report/account_report_bs.rml
@@ -10,14 +10,52 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -25,7 +63,7 @@
-
+
@@ -41,26 +79,32 @@
-
-
+
+
+
-
+
-
+
+
-
+
+
+
+
+
@@ -69,63 +113,49 @@
-
-
- |
- [[ company.name ]]
- |
-
-
-
-
- |
-
- Currency: [[ company.currency_id.name ]]
- |
-
-
- Printing date: [[ time.strftime('%Y-%m-%d') ]] at [[ time.strftime('%H:%M:%S') ]]
[[repeatIn(objects,'o') ]]
-
+
+
+
+
|
-
-
-
- |
-
- [[ setTag('font','font',{'face':o.font_style,'color':o.color_font.name,'backColor':o.color_back.name}) ]] [[o.name]]
- |
-
-
-
-
+ Account Balance
|
-
+
+
+
+
|
- Code
+ Company Name
|
- Account Name
+ Printing date
|
- Balance
+ Currency
+ |
+
+ Name
|
-
-
+
+
|
- [[ repeatIn(lines(data['form'],object=o), 'a') ]][[ setTag('font','font',{'face':o.font_style,'color':o.color_font.name,'backColor':o.color_back.name}) ]] [[ a['code'] ]]
+ [[ company.name ]]
|
- [[ '..'*(a['level']-1) ]][[ setTag('font','font',{'face':o.font_style,'color':o.color_font.name,'backColor':o.color_back.name}) ]] [[ a['name'] ]]
+ [[ formatLang(time.strftime('%Y-%m-%d %H:%M:%S'), date_time = True) ]]
|
- [[ setTag('font','font',{'face':o.font_style,'color':o.color_font.name,'backColor':o.color_back.name}) ]][[ '%.2f'% a['balance'] ]]
+ [[ company.currency_id.name ]]
+ |
+
+ [[ setTag('font','font',{'face':o.font_style,'color':o.color_font.name,'backColor':o.color_back.name}) ]] [[o.name]]
|
@@ -135,6 +165,27 @@
+
+
+ |
+ Code
+ |
+
+ Account Name
+ |
+
+ Balance([[company.currency_id.code]])
+ |
+
+
+ |
+ [[ repeatIn(lines(data['form']), 'a') ]][[ (a['level']>4 and setTag('para','para',{'fontName':"Helvetica"})) or removeParentNode('font') ]][[ a['code'] or removeParentNode('tr')]]
+ |
+ [[ (a['level']>4 and setTag('para','para',{'fontName':"Helvetica"})) or removeParentNode('font') ]][[ '..'*(a['level']-1) ]][[ a['name'] ]] |
+
+ [[ (a['level']>4 and setTag('para','para',{'fontName':"Helvetica"})) or removeParentNode('font') ]][[ formatLang(a['balance']) ]] [[company.currency_id.symbol]]
+ |
+
+
-
From 96b3dc9cb7ec4b90af44a057659aa2512f8ff64d Mon Sep 17 00:00:00 2001
From: apa-tiny
Date: Thu, 16 Sep 2010 17:35:21 +0530
Subject: [PATCH 09/14] [mrp]:Product Cost Structure:use formatLang function
for changes date and amount according to lang.
bzr revid: apa@tinyerp.com-20100916120521-215fcw96iz7f1zqt
---
addons/mrp/report/price.py | 82 +++++++++++++++++---------------------
1 file changed, 37 insertions(+), 45 deletions(-)
diff --git a/addons/mrp/report/price.py b/addons/mrp/report/price.py
index 762d1e4b2a6..38e65e0446f 100644
--- a/addons/mrp/report/price.py
+++ b/addons/mrp/report/price.py
@@ -23,7 +23,9 @@ import ir
import pooler
from report.interface import report_rml
from report.interface import toxml
-
+from tools import to_xml
+from report import report_sxw
+from datetime import datetime
from tools.translate import _
@@ -38,6 +40,9 @@ class report_custom(report_rml):
workcenter_pool = pool.get('mrp.workcenter')
user_pool = pool.get('res.users')
bom_pool = pool.get('mrp.bom')
+ rml_obj=report_sxw.rml_parse(cr, uid, product_pool._name,context)
+ rml_obj.localcontext.update({'lang':context.get('lang',False)})
+ company_currency = user_pool.browse(cr, uid, uid).company_id.currency_id
def process_bom(bom, currency_id, factor=1):
xml = ''
sum = 0
@@ -55,7 +60,7 @@ class report_custom(report_rml):
main_sp_name = "%s\r\n" %(prod.seller_id.name)
price = supplier_info_pool.price_get(cr, uid, prod.seller_id.id, prod.id, number*prod_qtty)[prod.seller_id.id]
price = product_uom_pool._compute_price(cr, uid, prod.uom_id.id, price, to_uom_id=product_uom.id)
- main_sp_price = '%.2f\r\n' %(price)
+ main_sp_price = """"""+rml_obj.formatLang(price)+' '+ company_currency.symbol+"""\r\n"""
sum += prod_qtty*price
std_price = product_uom_pool._compute_price(cr, uid, prod.uom_id.id, prod.standard_price, to_uom_id=product_uom.id)
main_strd_price = str(std_price) + '\r\n'
@@ -64,13 +69,12 @@ class report_custom(report_rml):
sellers += '- '+ seller_id.name.name +'\r\n'
price = supplier_info_pool.price_get(cr, uid, seller_id.name.id, prod.id, number*prod_qtty)[seller_id.name.id]
price = product_uom_pool._compute_price(cr, uid, prod.uom_id.id, price, to_uom_id=product_uom.id)
- sellers_price += """%.2f\r\n"""%(price)
- xml += """ %s
- %s
- %.2f
- %s
- %.2f
- %s'"""%(prod_name,main_sp_name + sellers ,prod_qtty, product_uom.name,float(main_strd_price),main_sp_price + sellers_price)
+ sellers_price += """"""+rml_obj.formatLang(price) +' '+ company_currency.symbol +"""\r\n"""
+ xml += """ """+ prod_name +"""
+ """+ main_sp_name + sellers + """
+ """+ rml_obj.formatLang(prod_qtty) +' '+ product_uom.name +"""
+ """+ rml_obj.formatLang(float(main_strd_price)) +' '+ company_currency.symbol +"""
+ """ + main_sp_price + sellers_price + """'"""
xml += ' '
return xml, sum, sum_strd
@@ -83,10 +87,9 @@ class report_custom(report_rml):
xml = ''
xml += "" + workcenter.name + ''
xml += ""
- xml += ""
- xml += """%.2f"""%(cost_cycle)
- xml += """%.2f"""%(cost_hour)
- xml += """%.2f"""%(cost_hour + cost_cycle)
+ xml += """"""+rml_obj.formatLang(cost_cycle)+' '+ company_currency.symbol + """"""
+ xml += """"""+rml_obj.formatLang(cost_hour)+' '+ company_currency.symbol + """"""
+ xml += """"""+rml_obj.formatLang(cost_hour + cost_cycle)+' '+ company_currency.symbol + """"""
xml += ' '
return xml, total
@@ -95,13 +98,13 @@ class report_custom(report_rml):
xml = ''
config_start = """
- %s
+ """ + to_xml(rml_obj.formatLang(datetime.now().strftime('%Y-%m-%d %H:%M:%S'),date_time=True)) + """
%s
210.00mm,297.00mm
595.27
841.88
- 55.00mm,55.00mm, 20.00mm, 22.00mm, 22.00mm, 25.00mm
- """ % (time.strftime('%m/%d/%Y %H:%M'),user_pool.browse(cr, uid, uid).company_id.name)
+ 55.00mm,58.00mm,29.00mm,29.00mm,29.00mm
+ """ % (user_pool.browse(cr, uid, uid).company_id.name)
config_stop = """
Generated by OpenERP
@@ -111,14 +114,13 @@ class report_custom(report_rml):
%s
-
%s
%s
%s
- """ % (_('Work Center name'), _('Cycles Cost'), _('Hourly Cost'),_('Work Cost'))
+ """ % (_('Work Center name'), _('Cycles Cost')+'('+company_currency.code+')', _('Hourly Cost')+'('+company_currency.code+')',_('Work Cost')+'('+company_currency.code+')')
prod_header = """
%s
@@ -126,11 +128,9 @@ class report_custom(report_rml):
%s
%s
%s
- %s
- """ % (_('Component'), _('Component suppliers'), _('Quantity'), _('Uom'), _('Cost Price per Uom'), _('Supplier Price per Uom'))
+ """ % (_('Component'), _('Component suppliers'), _('Quantity'),_('Cost Price per Uom')+'('+company_currency.code+')', _('Supplier Price per Uom')+'('+company_currency.code+')')
- company_currency = user_pool.browse(cr, uid, uid).company_id.currency_id.id
for product in product_pool.browse(cr, uid, ids, context=context):
bom_id = bom_pool._bom_find(cr, uid, product.id, product.uom_id.id)
title = "%s" %(_("Cost Structure"))
@@ -145,16 +145,14 @@ class report_custom(report_rml):
-
-
-
- -
"""
xml += """
- %s %s %s %s :
-
+ """ + _('Total Cost ') + _('of ') + str(number) +' '+ product.uom_id.name +'('+company_currency.code+')'+ """:
- %.2f
- %.2f
- '"""%(_('Total Cost'), _('of'), str(number), product.uom_id.name, total_strd, total)
+ """+ rml_obj.formatLang(total_strd) +' '+ company_currency.symbol + """
+ """+ rml_obj.formatLang(total) +' '+ company_currency.symbol + """
+ '"""
else:
bom = bom_pool.browse(cr, uid, bom_id, context=context)
factor = number * product.uom_id.factor / bom.product_uom.factor
@@ -169,20 +167,19 @@ class report_custom(report_rml):
}
xml_tmp = ''
for sub_bom in (sub_boms and sub_boms[0]) or [parent_bom]:
- txt, sum, sum_strd = process_bom(sub_bom, company_currency)
+ txt, sum, sum_strd = process_bom(sub_bom, company_currency.id)
xml_tmp += txt
total += sum
total_strd += sum_strd
xml += "" + xml_tmp + ''
xml += """
- %s %s %s %s :
-
+ """ + _('Cost ') + _('of ') + str(number) +' '+ product.uom_id.name +'(' + company_currency.code +')'+ """:
- %.2f
- %.2f
- '"""%(_('Cost'), _('of'), str(number), product.uom_id.name, total_strd, total)
+ """+ rml_obj.formatLang(total_strd) +' '+ company_currency.symbol + """
+ """+ rml_obj.formatLang(total) +' '+ company_currency.symbol + """
+ '"""
total2 = 0
xml_tmp = ''
@@ -194,27 +191,22 @@ class report_custom(report_rml):
xml += workcenter_header
xml += "" + xml_tmp + ''
xml += """
- %s %s %s %s :
+ """ + _('Work Cost ') + _('of ') + str(number) +' '+ product.uom_id.name +'('+company_currency.code+')'+""":
-
- %.2f
- '"""%(_('Work Cost'), _('of'), str(number), product.uom_id.name, total2)
+ """+ rml_obj.formatLang(total2) +' '+ company_currency.symbol +"""
+ '"""
xml += """
- %s %s %s %s :
-
+ """ + _('Total Cost ') + _('of ') + str(number) +' '+ product.uom_id.name +'('+company_currency.code+')'+ """:
- %.2f
- %.2f
- '"""%(_('Total Cost'), _('of'), str(number), product.uom_id.name, total_strd+total2, total+total2)
+ """+ rml_obj.formatLang(total_strd+total2) +' '+ company_currency.symbol + """
+ """+ rml_obj.formatLang(total+total2) +' '+ company_currency.symbol + """
+ '"""
xml = '' + config_start + config_stop + xml + ''
return xml
report_custom('report.product.price', 'product.product', '', 'addons/mrp/report/price.xsl')
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
-
From d5b204646a6794e0cacce48daa805470893648e7 Mon Sep 17 00:00:00 2001
From: "rch (Open ERP)" <>
Date: Thu, 16 Sep 2010 18:05:25 +0530
Subject: [PATCH 10/14] [IMP]: Improve report 'Human Resource / Payroll /
Payroll Register / Print Statement' for without payslip lines.
bzr revid: rch_open_erp-20100916123525-ket8i65jaaw73y7q
---
addons/hr_payroll/report/payroll_register.rml | 91 +++++++++++--------
1 file changed, 51 insertions(+), 40 deletions(-)
diff --git a/addons/hr_payroll/report/payroll_register.rml b/addons/hr_payroll/report/payroll_register.rml
index 178695d2d9c..d7df0ada7cc 100644
--- a/addons/hr_payroll/report/payroll_register.rml
+++ b/addons/hr_payroll/report/payroll_register.rml
@@ -22,7 +22,7 @@
-
+
@@ -34,7 +34,7 @@
-
+
@@ -65,6 +65,7 @@
+
@@ -131,11 +132,11 @@
-
-
-
-
+
+
+
+
|
#
@@ -163,14 +164,18 @@
|
-
+
+
+
+
+
+ [[repeatIn(o.line_ids, 'l')]]
+
|
[[ get_no() ]]
|
- [[ repeatIn(o.line_ids, 'l') ]]
- [[add_line(l)]]
[[ l.employee_id.name ]]
|
@@ -193,40 +198,46 @@
|
-
-
- |
-
-
-
- |
-
- Total SAL([[ company.currency_id.code]])
- |
-
- [[formatLang(get_basic())]][[ company.currency_id.symbol]]
- |
-
- [[formatLang(get_other())]] [[ company.currency_id.symbol]]
- |
-
- [[formatLang(get_allow())]] [[ company.currency_id.symbol]]
- |
-
- [[formatLang(get_grows())]] [[ company.currency_id.symbol]]
- |
-
- [[formatLang(get_deduct())]] [[ company.currency_id.symbol]]
- |
-
- [[formatLang(get_net())]] [[ company.currency_id.symbol]]
- |
-
-
-
+
+
+
+ |
+
+
+
+ |
+
+ Total SAL([[ company.currency_id.code]])
+ |
+
+ [[formatLang(get_basic())]][[ company.currency_id.symbol]]
+ |
+
+ [[formatLang(get_other())]] [[ company.currency_id.symbol]]
+ |
+
+ [[formatLang(get_allow())]] [[ company.currency_id.symbol]]
+ |
+
+ [[formatLang(get_grows())]] [[ company.currency_id.symbol]]
+ |
+
+ [[formatLang(get_deduct())]] [[ company.currency_id.symbol]]
+ |
+
+ [[formatLang(get_net())]] [[ company.currency_id.symbol]]
+ |
+
+
+
+
+
+
+
+
|
From 09b85eee5fca42d1b2d42fbbaf8888a3bb053e2a Mon Sep 17 00:00:00 2001
From: apa-tiny
Date: Thu, 16 Sep 2010 18:41:07 +0530
Subject: [PATCH 11/14] Overdue Payment
bzr revid: apa@tinyerp.com-20100916131107-b4zhut2h0z77n4p4
---
addons/account/report/overdue.rml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/addons/account/report/overdue.rml b/addons/account/report/overdue.rml
index 5f461cd9768..fad5c27ec79 100644
--- a/addons/account/report/overdue.rml
+++ b/addons/account/report/overdue.rml
@@ -187,7 +187,7 @@
[[ (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 ]]
|
- [[ formatLang((line['date_maturity'] < time.strftime('%Y-%m-%d'))) and (line['debit'] - line['credit']) ]] [[ company.currency_id.symbol ]]
+ [[ formatLang((line['date_maturity'] < time.strftime('%Y-%m-%d'))) and formatLang(line['debit'] - line['credit']) ]] [[ company.currency_id.symbol ]]
|
[[ line['blocked'] and 'X' or '' ]]
From 4d037f59ed86f09522977109f47e24d18f36b8e6 Mon Sep 17 00:00:00 2001
From: apa-tiny
Date: Thu, 16 Sep 2010 18:46:15 +0530
Subject: [PATCH 12/14] Cost stucture
bzr revid: apa@tinyerp.com-20100916131615-qpla5kyakld3xvbq
---
addons/mrp/report/price.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/addons/mrp/report/price.py b/addons/mrp/report/price.py
index 38e65e0446f..3a6ab81a308 100644
--- a/addons/mrp/report/price.py
+++ b/addons/mrp/report/price.py
@@ -150,8 +150,8 @@ class report_custom(report_rml):
""" + _('Total Cost ') + _('of ') + str(number) +' '+ product.uom_id.name +'('+company_currency.code+')'+ """:
- """+ rml_obj.formatLang(total_strd) +' '+ company_currency.symbol + """
- """+ rml_obj.formatLang(total) +' '+ company_currency.symbol + """
+ """+ rml_obj.formatLang(total_strd) +' '+ company_currency.symbol + """
+ """+ rml_obj.formatLang(total) +' '+ company_currency.symbol + """
'"""
else:
bom = bom_pool.browse(cr, uid, bom_id, context=context)
From 4dd8d1b9580c56309e31a601037872b71132057d Mon Sep 17 00:00:00 2001
From: "rch (Open ERP)" <>
Date: Fri, 17 Sep 2010 15:13:34 +0530
Subject: [PATCH 13/14] [IMP]: Improve 'Human Resource / Reporting /Payroll
/Employee Salary Statment' report.
bzr revid: rch_open_erp-20100917094334-p0p2rng3mvhfihqg
---
.../report/report_employees_detail.rml | 78 ++++++++++---------
1 file changed, 40 insertions(+), 38 deletions(-)
diff --git a/addons/hr_payroll/report/report_employees_detail.rml b/addons/hr_payroll/report/report_employees_detail.rml
index 8a9689b45c6..3b032af3409 100644
--- a/addons/hr_payroll/report/report_employees_detail.rml
+++ b/addons/hr_payroll/report/report_employees_detail.rml
@@ -172,19 +172,19 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
@@ -194,13 +194,13 @@
-
-
-
-
+
+
+
+
-
-
+
+
@@ -210,8 +210,8 @@
-
-
+
+
@@ -225,10 +225,10 @@
+
-
- [[ repeatIn(get_employee(data['form']), 'o') ]]
+ [[ repeatIn(get_employee(data['form']), 'o') ]] [[ get_employee_detail(o) ]]
Employees Salary Details
For [[ get_fiscalyear(data['form']['fiscalyear_id']) ]]
@@ -284,7 +284,7 @@
Designation
|
- [[ o.contract_ids and o.contract_ids[0].function.name or '' ]]
+ [[ o.contract_ids and o.contract_ids[0].job_id.name or '' ]]
|
Phone No.
@@ -355,7 +355,9 @@
- [[ get_employee_detail(o) ]]
+
+
+
Allowances with Basic:
[[ repeatIn(get_allow(),'e1') ]]
@@ -528,43 +530,43 @@
[[ get_monthly_total()[0] ]]
|
- [[ formatLang(get_monthly_total()[1]) ]]
+ [[ formatLang(get_monthly_total()[1]) ]][[ company.currency_id.symbol ]]
|
- [[ formatLang(get_monthly_total()[2]) ]]
+ [[ formatLang(get_monthly_total()[2]) ]][[ company.currency_id.symbol ]]
|
- [[ formatLang(get_monthly_total()[3]) ]]
+ [[ formatLang(get_monthly_total()[3]) ]][[ company.currency_id.symbol ]]
|
- [[ formatLang(get_monthly_total()[4]) ]]
+ [[ formatLang(get_monthly_total()[4]) ]][[ company.currency_id.symbol ]]
|
- [[ formatLang(get_monthly_total()[5]) ]]
+ [[ formatLang(get_monthly_total()[5]) ]][[ company.currency_id.symbol ]]
|
- [[ formatLang(get_monthly_total()[6]) ]]
+ [[ formatLang(get_monthly_total()[6]) ]][[ company.currency_id.symbol ]]
|
- [[ formatLang(get_monthly_total()[7]) ]]
+ [[ formatLang(get_monthly_total()[7]) ]][[ company.currency_id.symbol ]]
|
- [[ formatLang(get_monthly_total()[8]) ]]
+ [[ formatLang(get_monthly_total()[8]) ]][[ company.currency_id.symbol ]]
|
- [[ formatLang(get_monthly_total()[9]) ]]
+ [[ formatLang(get_monthly_total()[9]) ]][[ company.currency_id.symbol ]]
|
- [[ formatLang(get_monthly_total()[10]) ]]
+ [[ formatLang(get_monthly_total()[10]) ]][[ company.currency_id.symbol ]]
|
- [[ formatLang(get_monthly_total()[11]) ]]
+ [[ formatLang(get_monthly_total()[11]) ]][[ company.currency_id.symbol ]]
|
- [[ formatLang(get_monthly_total()[12]) ]]
+ [[ formatLang(get_monthly_total()[12]) ]][[ company.currency_id.symbol ]]
|
- [[ formatLang(get_total()) ]]
+ [[ formatLang(get_total()) ]][[ company.currency_id.symbol ]]
|
@@ -579,4 +581,4 @@
-
+
\ No newline at end of file
From 561797f1bad8988531d9ff893f6638c0bbcbe660 Mon Sep 17 00:00:00 2001
From: "rch (Open ERP)" <>
Date: Fri, 17 Sep 2010 15:56:37 +0530
Subject: [PATCH 14/14] [IMP]: Improve 'Point Of Sale / Daily Operations /Pos
Line' report. Add currency symbol.
bzr revid: rch_open_erp-20100917102637-hr0tbxe8aw1febgm
---
addons/point_of_sale/report/pos_lines.rml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/addons/point_of_sale/report/pos_lines.rml b/addons/point_of_sale/report/pos_lines.rml
index 0cc1c43520a..28f240c1070 100644
--- a/addons/point_of_sale/report/pos_lines.rml
+++ b/addons/point_of_sale/report/pos_lines.rml
@@ -186,13 +186,13 @@
[[ formatLang(l.qty) ]]
|
- [[ formatLang(l.price_unit) ]]
+ [[ formatLang(l.price_unit) ]][[o.pricelist_id.currency_id. symbol ]]
|
[[ formatLang(l.discount) ]]
|
- [[ formatLang(l.price_subtotal) ]]
+ [[ formatLang(l.price_subtotal) ]][[o.pricelist_id.currency_id. symbol ]]
|
@@ -223,7 +223,7 @@
Net Total
|
- [[ formatLang(o.amount_total) ]] [[o.pricelist_id.currency_id.code ]]
+ [[ formatLang(o.amount_total) ]] [[o.pricelist_id.currency_id.symbol ]]
|
@@ -251,7 +251,7 @@
Taxes
|
- [[ formatLang(o.amount_tax) ]] [[o.pricelist_id.currency_id.code ]]
+ [[ formatLang(o.amount_tax) ]] [[o.pricelist_id.currency_id. symbol ]]
|
@@ -279,7 +279,7 @@
Total
|
- [[ formatLang(o.amount_total + o.amount_tax) ]] [[o.pricelist_id.currency_id.code ]]
+ [[ formatLang(o.amount_total + o.amount_tax) ]] [[o.pricelist_id.currency_id. symbol ]]
|
| | |