From 6ddfabaf17d258c0c54749e663f88072e874802f Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Thu, 4 Dec 2008 12:23:34 +0530 Subject: [PATCH 01/24] mrp_repair bzr revid: mra@tinyerp.com-20081204065334-zjp08syur6t8z8e9 --- addons/mrp_repair/report/order.rml | 265 ++++++++++++++++------------- 1 file changed, 148 insertions(+), 117 deletions(-) diff --git a/addons/mrp_repair/report/order.rml b/addons/mrp_repair/report/order.rml index 223bcd38fbe..34c6902308f 100644 --- a/addons/mrp_repair/report/order.rml +++ b/addons/mrp_repair/report/order.rml @@ -70,24 +70,17 @@ - - - - - - + + + + + + - - - - - - - - - + + @@ -101,34 +94,39 @@ - - + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + @@ -166,7 +164,7 @@ - [[ repeatIn(objects,'o') ]] + [[ repeatIn(objects,'o') ]] @@ -180,12 +178,12 @@ - Invoice address :[[ o.partner_id and o.partner_id.property_payment_term.name ]] + Invoice address :[[ o.partner_id and o.partner_id.property_payment_term.name ]] [[ o.partner_invoice_id.street ]] [[ o.partner_invoice_id.street2 and (', %s' % o.partner_invoice_id.street2 or '') ]] [[ o.partner_invoice_id.zip or '' ]] [[ o.partner_invoice_id.city or '' ]] [[ o.partner_invoice_id.country_id and (', %s' % (o.partner_invoice_id.country_id and o.partner_invoice_id.country_id.name or '')) ]] - + @@ -210,94 +208,94 @@ - + - - - - [[ o.state<>'draft' and removeParentNode('para') ]]Repair Quotation N° : [[ o.name ]] - [[ o.state=='draft' and removeParentNode('para') ]]Repair Order N° : [[ o.name ]] - + [[ o.state<>'draft' and removeParentNode('para') ]]Repair Quotation N° : [[ o.name ]] + [[ o.state=='draft' and removeParentNode('para') ]]Repair Order N° : [[ o.name ]] + + + + - Product to Repair + Product to Repair - Lot Number + Lot Number - Guarantee Limit + Guarantee Limit - Printing Date + Printing Date - [[ o.product_id.name or '' ]] + [[ o.product_id.name or '' ]] - [[ o.prodlot_id.name or ' ' ]] + [[ o.prodlot_id.name or ' ' ]] - [[ time.strftime('%d/%m/%Y', time.strptime(o.guarantee_limit, '%Y-%m-%d')) ]] + [[ time.strftime('%d/%m/%Y', time.strptime(o.guarantee_limit, '%Y-%m-%d')) ]] - [[ time.strftime('%d/%m/%Y')]] + [[ time.strftime('%d/%m/%Y')]] - + - + - Description + Description - VAT + VAT - Quantity + Quantity - Unit Price + Unit Price - Price + Price
- - Operation Line(s) + + Operation Line(s) - [[ repeatIn(o.operations,'line') ]] Add [[ ((line.type == 'add') or removeParentNode('para')) and '' ]] + [[ repeatIn(o.operations,'line') ]]Add [[ ((line.type == 'add') or removeParentNode('para')) and '' ]] Remove [[ ((line.type == 'remove') or removeParentNode('para')) and '' ]] [[ line.name ]] - [[ ','.join(map( lambda x: x.name, line.tax_id)) or '0.00' ]] + [[ ','.join(map( lambda x: x.name, line.tax_id)) or '0.00' ]] - [[ line.product_uom_qty or '0.00' ]] [[ line.product_uom.name ]] + [[ line.product_uom_qty or '0.00' ]] [[ line.product_uom.name ]] [[ line.price_unit ]] @@ -308,23 +306,23 @@
- Fees Line(s) - + Fees Line(s) + - [[ repeatIn(o.fees_lines,'fees') ]] + [[ repeatIn(o.fees_lines,'fees') ]] [[ fees.name ]] - [[ ','.join(map( lambda x: x.name, fees.tax_id)) or '0.00' ]] + [[ ','.join(map( lambda x: x.name, fees.tax_id)) or '0.00' ]] - [[ fees.product_uom_qty or '0.00' ]] [[ fees.product_uom.name ]] + [[ fees.product_uom_qty or '0.00' ]] [[ fees.product_uom.name ]] [[ fees.price_unit ]] @@ -334,55 +332,90 @@ - - - - - - - + - Net Total : + + + - [[ o.amount_untaxed or '0.00' ]] + + + - [[ o.pricelist_id.currency_id.name ]] + + + + + + Net Total : + + + [[ o.amount_untaxed or '0.00' ]] + + + [[ o.pricelist_id.currency_id.name ]] + + + + + + + + + + + + + + + + + + + + Taxes: + + + [[ o.amount_tax or '0.00']] + + + [[ o.pricelist_id.currency_id.name ]] + + + + + + + + + + + + + + + + + + + + Total : + + + [[ total(o) ]] + + + [[ o.pricelist_id.currency_id.name ]] - - - - Taxes: - - - [[ o.amount_tax or '0.00']] - - - [[ o.pricelist_id.currency_id.name ]] - - - - - - - Total : - - - [[ total(o) ]] - - - [[ o.pricelist_id.currency_id.name ]] - - - - + - + @@ -392,8 +425,6 @@ - - - +
\ No newline at end of file From ca3887a6e07fd946a4f83d4eb7ed8358dff59000 Mon Sep 17 00:00:00 2001 From: Husen Daudi Date: Fri, 5 Dec 2008 10:56:39 +0530 Subject: [PATCH 02/24] Improve task view bzr revid: hda@tinyerp.com-20081205052639-1uf4wm5kmp5hvpyc --- addons/project/project_view.xml | 4 ++-- addons/project/security/ir.model.access.csv | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/project/project_view.xml b/addons/project/project_view.xml index b7ec8362408..32c7ed49c27 100644 --- a/addons/project/project_view.xml +++ b/addons/project/project_view.xml @@ -210,7 +210,7 @@