Hello People,
i want to use read() method only in List view (tree view) to perform some custom opeartions . in form view i don't wan't to do any operations.
So how can i identify or get current view in read() method of odoo ?
Thanks!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello People,
i want to use read() method only in List view (tree view) to perform some custom opeartions . in form view i don't wan't to do any operations.
So how can i identify or get current view in read() method of odoo ?
Thanks!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
|
2
elok. 25
|
2358 | ||
|
1
heinäk. 25
|
874 | ||
|
1
elok. 25
|
1151 | ||
|
0
toukok. 25
|
1328 | ||
|
2
huhtik. 25
|
3527 |
Hi
by using fields_view_get we can identify the view_type
@api.model
def fields_view_get(self, view_id=None, view_type='form', toolbar=False, submenu=False):
res = super(your class, self).fields_view_get(view_id,
view_type, toolbar=toolbar, submenu=submenu)
return res
Thanks for the answer !
But Actually i need to check in read() method only. as i want to alter the content of field which is being displayed in listview. fields_view_get, in this method am not getting actual data of field so.