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.
I have the following code in an XML file:
<?xml version="1.0" encoding="utf-8"?>
<template id="my_po_body" inherit_id="purchase.report_purchasequotation_document">
<xpath expr="div[@class='page']" position="replace">
<div class="row mt32 mb32">
<p style="font: bold 16px Helvetica;"><strong>Shipped From:</strong></p>
<div class="col-xs-5 col-xs-offset-1">
<p style="font: bold 16px Helvetica;">Ship To:</p>
<template id="my_po_main" inherit_id="purchase.report_purchasequotation">
<xpath expr="//t" position="replace">
<t t-raw="translate_doc(doc_id, doc_model, 'partner_id.lang', 'my_module.my_po_body')"/>
When I try to print an RFQ (report output type='HTML') then Odoo says it can't find 'my_module.my_po_body'. I have tried removing 'my_module' and just using 'my_po_body' as the parameter in the translate_doc call, but then Odoo just tries to use 'website' as the module, and still can't find the view. Why can't Odoo find the first defined view?
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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: 1/19/15, 12:17 PM|
|Seen: 785 times|
|Last updated: 3/16/15, 8:10 AM|