Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
after invoice report inheritance's the report aoutput still in english. but my customer language setting is in french. Below the code.
<template id="report_invoice_document_hotel" inherit_id='account.report_invoice_document'>
<div class='page' position="replace">
i add another template for the translation.
<template id="report_invoice_hotel" inherit_id="account.report_invoice">
<t t-call="report.html_container" position="replace">
<t t-foreach="docs" t-as="o">
<t t-call="hotel.report_invoice_document_hotel" t-lang="o.partner_id.lang"/>
I oblige to to add this second template because Odoo still load the parent template(account.report_invoice_document).
It is so urgent for me!
I find the solution. My first code is correct. My problem come from the fact that the invoice report is set by default to reprint the old version of the report. I change this configuration on the report technical menu and then i regenerate the transalation and every thinks is ok.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 7/10/18, 11:58 AM|
|Seen: 225 times|
|Last updated: 8/6/18, 11:04 AM|