I have added a field in the sale.order.line, which is visible in the tree view of the sale.order. But when I click to add new items the wizard pops up instead of being able to fill the data inline in the tree view. The problem is that the wizard doesn't have the field I have added in the sale.order.line. How to add the field in the sale.order.line wizard view? Another question is when does the wizard start popping up instead of the inline editable tree view?(which would be a lot better)
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
This question has been flagged
Hi,
For the order line of the sale order there is list view as well as the form view. You may have added the custom field only in the tree view, similar to adding new field to sale order line tree view you can add the same field to sale order line form view, by replacing tree in xpath by form.
Upon clicking the sale order line the opening is the form view defined for the sale order line. If you check the existing code, you can see that form.
Thanks
Another question is when does the wizard start popping up instead of the inline editable tree view?
ANS : In sale.order for order_line is the one2many field, in this field <tree editable='bottom'> it means you can edit line data in tree view itself (instead of any form view)
Same thing is overided some where else, not remember where it is exactly
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up