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.
version: Odoo 9
How can I add a custom field into the PDF printable of Sales Order in Odoo?
I created Scheduled delivery date in Database Structure > Model using Developer mode; like this,
Field Name = x_scheduled_date
Field Label = Scheduled Delivery
Field Type = text
It successfully displayed in UI but not in printable version PDF.
How can I simply add this into the PDF please? Next to 'Payment Term'
Please help me with the exact steps and models needed.
Thank you very much.
1- After activating the developer mode. Go to settings>Reports
2- Search for template name sale.report_saleorder > Click on Search associated QWeb views
3- Chose sale.report_saleorder_document.
4- Add your field to the report Architecture (here you must do some HTML coding)
If you have trouble to handle this, search for
<div t-if="doc.date_order" class="col-xs-3">
<strong t-if="doc.state not in ['draft','sent']">Date Ordered:</strong>
<strong t-if="doc.state in ['draft','sent']">Quotation Date:</strong>
past this lines after
<div t-if="doc.user_id.name" class="col-xs-3">
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: 10/20/16, 11:33 PM|
|Seen: 433 times|
|Last updated: 10/21/16, 4:37 AM|