[UPT]report usable in v11

This commit is contained in:
aheficent
2018-10-04 16:26:45 +02:00
committed by JasminSForgeFlow
parent 5de0f49dd0
commit f1bc4e97fc
2 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@
'in odoo', 'in odoo',
'author': "Eficent, Odoo Community Association (OCA)", 'author': "Eficent, Odoo Community Association (OCA)",
'website': 'http://www.github.com/OCA/rma', 'website': 'http://www.github.com/OCA/rma',
'depends': ['stock', 'mail'], 'depends': ['stock', 'mail', 'web'],
'demo': ['demo/stock_demo.xml', 'demo': ['demo/stock_demo.xml',
], ],
'data': ['security/rma.xml', 'data': ['security/rma.xml',

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<odoo> <odoo>
<template id="report_rma_order_line_document"> <template id="report_rma_order_line_document">
<t t-call="report.external_layout"> <t t-call="web.external_layout">
<t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})" /> <t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})" />
<div class="page"> <div class="page">
<div class="oe_structure"/> <div class="oe_structure"/>
@@ -75,7 +75,7 @@
<span t-field="doc.uom_id" groups="product.group_uom"/> <span t-field="doc.uom_id" groups="product.group_uom"/>
</td> </td>
<td class="text-right"> <td class="text-right">
<span t-field="doc.price_unit"/> <span t-field="doc.price_unit" t-options='{"widget": "monetary", "display_currency": doc.currency_id}'/>
</td> </td>
</tr> </tr>
</tbody> </tbody>
@@ -90,7 +90,7 @@
<template id="report_rma_order_line"> <template id="report_rma_order_line">
<t t-call="report.html_container"> <t t-call="web.html_container">
<t t-foreach="docs" t-as="doc"> <t t-foreach="docs" t-as="doc">
<t t-call="rma.report_rma_order_line_document" t-lang="doc.partner_id.lang"/> <t t-call="rma.report_rma_order_line_document" t-lang="doc.partner_id.lang"/>
</t> </t>