diff --git a/addons/delivery/report/shipping.rml b/addons/delivery/report/shipping.rml index 80dd4ab2ff5..2c7107c2386 100644 --- a/addons/delivery/report/shipping.rml +++ b/addons/delivery/report/shipping.rml @@ -67,7 +67,6 @@ - @@ -117,16 +116,17 @@ Invoiced to [[ o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.name or '']] [[ o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.street or '']] - [[ o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.zip or '']] - [[ o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.city or '' ]] + [[ (o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.street2) or removeParentNode('para')]] + [[ o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.zip or '']] [[ o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.city or '' ]] + [[ (o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.state_id and o.sale_id.partner_invoice_id.state_id.name) or removeParentNode('para') ]] [[ o.sale_id and o.sale_id.partner_invoice_id and o.sale_id.partner_invoice_id.country_id and o.sale_id.partner_invoice_id.country_id.name or '']] [[ o.address_id and o.address_id.partner_id and o.address_id.partner_id.name or '' ]] - [[ o.address_id and o.address_id.name or '']] [[ o.address_id and o.address_id.street or '']] - [[ o.address_id and o.address_id.zip or '']] - [[ o.address_id and o.address_id.city or '']] + [[ o.address_id and o.address_id.street2 or removeParentNode('para')]] + [[ o.address_id and o.address_id.zip or '']] [[ o.address_id and o.address_id.city or '']] + [[ (o.address_id and o.address_id.state_id and o.address_id.state_id.name) or removeParentNode('para') ]] [[ o.address_id and o.address_id.country_id and o.address_id.country_id.name or '']] @@ -194,7 +194,7 @@
[[repeatIn(o.move_lines,'line')]] - + [[line.product_id.code ]] [[ line.product_id and line.product_id.name or '']] @@ -203,10 +203,7 @@ [[ (line.prodlot_id and (line.prodlot_id.name + (line.prodlot_id.ref and ('/' + line.prodlot_id.ref) or ''))) or ' ' ]] - [[ formatLang(line.product_qty) ]] - - - [[ line.product_uom and line.product_uom.name ]] + [[ formatLang(line.product_qty) ]] [[ line.product_uom and line.product_uom.name ]] diff --git a/addons/mrp/report/order.rml b/addons/mrp/report/order.rml index 35e509b9033..e1e23205cfd 100644 --- a/addons/mrp/report/order.rml +++ b/addons/mrp/report/order.rml @@ -17,12 +17,9 @@ + - - - - @@ -31,12 +28,9 @@ + - - - - @@ -127,7 +121,6 @@ - @@ -136,7 +129,6 @@ - @@ -175,7 +167,7 @@ - [[ repeatIn(objects,'o') ]] + [[repeatIn(objects,'o')]] @@ -183,7 +175,7 @@ - + Product @@ -191,12 +183,9 @@ Quantity - - Note - - + [[ o.product_id.code ]] [[ o.product_id.name ]] @@ -204,9 +193,6 @@ [[formatLang(o.product_qty) ]] [[ o.product_uom.name ]] - - [[ o.product_id.description or '' ]] - @@ -249,7 +235,7 @@ - Work Orders [[ o.workcenter_lines ==[] and removeParentNode('para')]] + Work Orders [[ o.workcenter_lines ==[] and removeParentNode('para')]] @@ -259,7 +245,7 @@ Sequence - Name [[ o.workcenter_lines ==[] and removeParentNode('blockTable')]] + Name [[ o.workcenter_lines ==[] and removeParentNode('blockTable')]] WorkCenter @@ -304,7 +290,7 @@ - + Product @@ -324,16 +310,13 @@ Products to Consume [[ o.move_lines ==[] and removeParentNode('section')]]
[[ repeatIn(o.move_lines,'line') ]] - + [[ line.product_id.code ]] [[ line.product_id.name ]] - [[ formatLang( line.product_qty) ]] - - - [[line.product_uom.name]] + [[ formatLang( line.product_qty) ]] [[ line.product_uom.name]] [[ line.location_id.name ]] @@ -349,16 +332,13 @@ Consumed Products [[ o.move_lines2 ==[] and removeParentNode('section')]]
[[ repeatIn(o.move_lines2,'line2') ]] - + [[ line2.product_id.code ]] [[ line2.product_id.name ]] - [[ formatLang( line2.product_qty) ]] - - - [[line2.product_uom.name]] + [[ formatLang( line2.product_qty) ]] [[ line2.product_uom.name]] [[ line2.location_id.name ]] diff --git a/addons/mrp/report/price.py b/addons/mrp/report/price.py index 8890ed533d7..b639edb18ea 100644 --- a/addons/mrp/report/price.py +++ b/addons/mrp/report/price.py @@ -130,7 +130,7 @@ class report_custom(report_rml): %s %s - """ % (_('Componet'), _('Componet suppliers'), _('Quantity'), _('Uom'), _('Cost Price per Uom'), _('Supplier Price per Uom')) + """ % (_('Component'), _('Component suppliers'), _('Quantity'), _('Uom'), _('Cost Price per Uom'), _('Supplier Price per Uom')) company_currency = user_pool.browse(cr, uid, uid).company_id.currency_id.id for product in product_pool.browse(cr, uid, ids, context=context): diff --git a/addons/sale/report/sale_order.rml b/addons/sale/report/sale_order.rml index fc652b0de4f..4dc61188e19 100644 --- a/addons/sale/report/sale_order.rml +++ b/addons/sale/report/sale_order.rml @@ -133,19 +133,21 @@ Shipping address : [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]] - [[ o.partner_shipping_id.title or '' ]] [[ o.partner_shipping_id.name ]] [[ o.partner_shipping_id.street ]] - [[ o.partner_shipping_id.street2 or '' ]] + [[ o.partner_shipping_id.street2 or removeParentNode('para') ]] [[ o.partner_shipping_id.zip or '' ]] [[ o.partner_shipping_id.city or '' ]] - [[ o.partner_shipping_id.state_id and o.partner_shipping_id.state_id.name or '' ]] [[ o.partner_shipping_id.country_id and o.partner_shipping_id.country_id.name or '' ]] + [[ (o.partner_shipping_id.state_id and o.partner_shipping_id.state_id.name) or removeParentNode('para') ]] + [[ (o.partner_shipping_id.country_id and o.partner_shipping_id.country_id.name) or '' ]] Invoice address : [[ o.partner_invoice_id.title or '' ]] [[ o.partner_invoice_id.name or '' ]] - [[ o.partner_invoice_id.street ]] [[ o.partner_invoice_id.street2 and (', %s' % o.partner_invoice_id.street2 or '') ]] + [[ o.partner_invoice_id.street ]] + [[ (o.partner_invoice_id.street2 and (', %s' % o.partner_invoice_id.street2)) or removeParentNode('para') ]] [[ o.partner_invoice_id.zip or '' ]] [[ o.partner_invoice_id.city or '' ]] - [[ o.partner_invoice_id.state_id and o.partner_invoice_id.state_id.name or '' ]][[ o.partner_invoice_id.country_id and o.partner_invoice_id.country_id.name or '' ]] + [[ (o.partner_invoice_id.state_id and o.partner_invoice_id.state_id.name) or removeParentNode('para') ]] + [[ o.partner_invoice_id.country_id and o.partner_invoice_id.country_id.name or '' ]] @@ -154,11 +156,10 @@ [[ o.partner_id.title or '' ]] [[ o.partner_id.name ]] - [[ o.partner_order_id.title or '' ]] [[ o.partner_order_id.name ]] [[ o.partner_order_id.street ]] - [[ o.partner_order_id.street2 or '' ]] + [[ o.partner_order_id.street2 or removeParentNode('para') ]] [[ o.partner_order_id.zip or '' ]] [[ o.partner_order_id.city or '' ]] - [[ o.partner_order_id.state_id and o.partner_order_id.state_id.name or '' ]] [[ o.partner_order_id.country_id and o.partner_order_id.country_id.name or '' ]] + [[ (o.partner_order_id.state_id and o.partner_order_id.state_id.name) or removeParentNode('para')]] [[ (o.partner_order_id.country_id and o.partner_order_id.country_id.name) or '' ]] @@ -311,7 +312,7 @@ Net Total : - [[ formatLang(o.amount_untaxed ) ]] [[ o.pricelist_id.currency_id.symbol ]] + [[ formatLang(o.amount_untaxed ) ]] [[ o.pricelist_id.currency_id. symbol ]] @@ -324,7 +325,7 @@ Taxes : - [[ formatLang(o.amount_tax ) ]] [[ o.pricelist_id.currency_id.symbol ]] + [[ formatLang(o.amount_tax ) ]] [[ o.pricelist_id.currency_id. symbol ]] @@ -337,7 +338,7 @@ Total : - [[ formatLang(o.amount_total ) ]] [[ o.pricelist_id.currency_id.symbol ]] + [[ formatLang(o.amount_total ) ]] [[ o.pricelist_id.currency_id. symbol ]] @@ -360,4 +361,4 @@ - \ No newline at end of file + diff --git a/addons/stock/report/picking.rml b/addons/stock/report/picking.rml index 35067f0b482..86d4405838c 100644 --- a/addons/stock/report/picking.rml +++ b/addons/stock/report/picking.rml @@ -128,19 +128,17 @@ [[ (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') ]] [[ picking.address_id and picking.address_id.zip or '' ]] [[ picking.address_id and picking.address_id.city or '']] - - - - - - - + [[ (picking.address_id and picking.address_id.state_id and picking.address_id.state_id.name) or removeParentNode('para') ]] + [[ (picking.address_id and picking.address_id.country_id and picking.address_id.country_id.name) or '' ]] - [[ ( 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.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.zip) or '' ]] [[ (picking.address_id and picking.address_id.city) or '' ]] [[ (picking.address_id and picking.address_id.state_id and picking.address_id.state_id.name) or '' ]] + [[ (picking.address_id and picking.address_id.street2) or removeParentNode('para') ]] + [[ (picking.address_id and picking.address_id.zip) or '' ]] [[ (picking.address_id and picking.address_id.city) or '' ]] + [[ (picking.address_id and picking.address_id.state_id and picking.address_id.state_id.name) or removeParentNode('para') ]] [[ (picking.address_id and picking.address_id.country_id and picking.address_id.country_id.name) or '' ]] @@ -195,7 +193,7 @@ [[ formatLang(picking.min_date,date_time = True) ]] - [[ 'weight' in picking._columns.keys() and picking.weight or '']] + [[ 'weight' in picking._columns.keys() and picking.weight or '']] @@ -247,7 +245,7 @@ [[ move_lines.product_uom.name ]] - [[ (move_lines.location_id and move_lines.location_id.name) or '' ]] + [[ (move_lines.location_id and move_lines.location_id.name) or '' ]] @@ -283,7 +281,7 @@ [[ move_lines.product_uom.name ]] - [[ (move_lines.location_id and move_lines.location_id.name) or '' ]] + [[ (move_lines.location_id and move_lines.location_id.name) or '' ]]