Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
3132 Переглядів

hi ,


i have to "selected fields " in the table account.invoice i want that when i select one the other value display directly the second field depend to the first

what would i do ? 

I have two fields ' selected ' in the table 'account.invoice' 'district ' , "common" , I want when I select'common' the other one is displayed directly without the select


Аватар
Відмінити

Maybe you want to enhance your chance to get an answer by using meaningful question titles, use some more words to make yourself understandable and maybe to post some code.

Найкраща відповідь

you can use onchange decorator .

its make you able to make a change to your GUI.

@api.onchange('field1') # if these fields are changed, call method
def check_change(self):
    if self.field1 == somevalue:
        self.field2=yourValue
Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
квіт. 25
4195
3
груд. 22
12278
5
квіт. 24
42933
6
квіт. 24
39986
3
бер. 24
11226