Hi there,
I'm want 2 tree views for the same model in the same form view with different displayed columns.
Both trees have the same columns displayed (product_code).
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi there,
I'm want 2 tree views for the same model in the same form view with different displayed columns.
Both trees have the same columns displayed (product_code).
Hi there,
I found a solution for the problem. It's not the best solution, but it's also not the worst.
seller_ids = fields.One2many('product.supplierinfo', 'product_tmpl_id')
seller_ids_2 = fields.One2many('product.supplierinfo', 'product_tmpl_id',default=lambda self: self.seller_ids,store=False)
@api.depends('seller_ids')
def _seller_change(self):
self.seller_ids_2 = self.seller_ids
page>
field name="seller_ids">
tree editable="bottom">
field name="price_list" readonly="1" />
/tree>
/field>
field name="seller_ids_2">
tree editable="bottom">
field name="product_code" readonly="1" />
/tree>
/field>
/page>
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
0
Aug. 24
|
990 | ||
|
2
Mai 25
|
907 | ||
|
1
Nov. 24
|
1208 | ||
|
2
März 15
|
12398 | ||
|
2
Juni 24
|
1790 |
Hi there,
here is the code.
<page>
<field name="seller_ids">
<tree editable="bottom">
<field name="price_list" readonly="1" />
</tree>
</field>
<field name="seller_ids">
<tree editable="bottom">
<field name="product_code" readonly="1" />
</tree>
</field>
</page>