Is it possible to use the following?:
<field .. .. attrs="{'invisible': [('partner_id.name', '!=', False)]}">
The main question is: is the dot ('.') allowed?
We couldn't get it to work..
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Is it possible to use the following?:
<field .. .. attrs="{'invisible': [('partner_id.name', '!=', False)]}">
The main question is: is the dot ('.') allowed?
We couldn't get it to work..
Well you could not get it works, because it does not. To make such things, you need to add fields on the current model (see fields.related)
OK, you already gave an alternative solution! Thanks!
Why does a +domain+ allow the dot notation? and attrs not? Do you know why? Or where it is documented?
A related field in not set till you save. What happens if you've got a boolean and depending on the setting of the boolean you will be able to see certain fields.
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
1
mar 24
|
5610 | ||
|
2
lug 18
|
8075 | ||
|
1
mar 15
|
12010 | ||
|
0
mar 15
|
4520 | ||
|
2
set 24
|
4423 |