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 am working on sale order. i just repace the page of
report_saleorder_document . and i added my customized page. when i tried to get install that module there are some xpath problems. I trying to digging to find out what was the real problem.at last i find out there are some modules related to sale order report.
1:- module: website_quote using xpath of sale order report -
2:- sale_stock is using
<xpath expr="//div[@name='payment_term']" position="after">
3:- website_sale is using
<xpath expr="//div[@name='total']" position="after">
these are inherit that template ,and using the xpath to adding some extra values. Is there is any way to print my own custom sales order?
Odoo v9 no more supports named attributes of Xpath (like @class='page', etc.). So, you'll need to rewrite Xpath expressions and use equivalent expressions without usage of named attributes.
Try to use indexes, like:
a)< xpath expr="//div/div",
( indexes 2 and 5 are indicating position numbers. "//div" should be second div in a parent view, accordingly "//div/div" - fifth child div of the second div in the parent view, etc... adapt it to your case)
Note: I've not tried it in v9, please report back if it'll work.
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: 12/10/15, 3:38 AM|
|Seen: 1611 times|
|Last updated: 12/10/15, 4:11 AM|