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.
How to make a field from Sale Order form Line Item invisible by inheriting view_order_form in my custom module?
I am following the instructions at Inheritance in Views but am having trouble.
In my custom module I have created a xml file which its content can be seen here.
I am trying to make invisible the tax_id column in the line item at the sale order form.
The custom xml file is producing no changes on the targed form view whatsoever. I have taken the following precautions:
- Restarted the server
- Updated my custom module at Settings -> Installed Modules
- Tested the xpath path parameter. It does point to the targeted field
- Hacked into the core xml file at ../openerp/server/addons/sale/sale_view.xml beforehand to make sure I was trying to alter the right form view.
I keep getting the error "ValidateError: Error occurred while validating the field(s) arch: Invalid XML for View Architecture!"
The solution could not be more trivial. Apparently you must declare dependency of those modules, or the module, which originally created the xml view you are trying to alter.
In my particular case, I just added dependency of sale, stock and procurement into my module manifest ( __openerp__.py ) and BANG! It worked beautilly. A lesson learned in the hard way though.
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/1/14, 10:09 AM|
|Seen: 1066 times|
|Last updated: 3/16/15, 8:10 AM|