[UPT]report usable in v11

This commit is contained in:
aheficent
2018-10-04 16:26:45 +02:00
committed by AaronHForgeFlow
parent ec0e64c071
commit 6c48e021f6
2 changed files with 4 additions and 4 deletions

View File

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

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<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})" />
<div class="page">
<div class="oe_structure"/>
@@ -75,7 +75,7 @@
<span t-field="doc.uom_id" groups="product.group_uom"/>
</td>
<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>
</tr>
</tbody>
@@ -90,7 +90,7 @@
<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-call="rma.report_rma_order_line_document" t-lang="doc.partner_id.lang"/>
</t>