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 would have 2 models of the following
_name = 'mymodule.table'
name = name = fields.Char(
table_lines = field.One2many(
_name = 'mymodule.table.line'
name = fields.Char(
data = fields.Char(
table_id = fields.Many2one(
How could I create a form which has a tree/list view of my TableLine items and able to set them in order?
I just found out that, I need to add an attribute my TableLine model.
sequence = fields.Integer(
help='Set the order by sequence'
and then in the tree view of this model
<!-- Tree view for TableLine settings -->
<record id="table_line_tree" model="ir.ui.view">
<field name="name">Table Lines</field>
<field name="arch" type="xml">
<field name="sequence" widget="handle"/>
This should do the trick.
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: 3/31/16, 11:14 PM|
|Seen: 457 times|
|Last updated: 4/1/16, 5:30 AM|