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

Hello everyone again,

I have another request for help here, if you guys can lend a hand....
Basically I have a button that connects between two views 'Receipts' and 'Subcontrating Delivery', what I want, and I have not yet figured out how, is that when I am inside the 'Receipts' view the name that appears on the button is for example "OUTsub" and when I am in the 'Subcontrating Delivery' view it appears "IN", just an example...
How do I create this condition in the xml, can anyone give me a hand? 
This is my XML with the necessary settings
Thanks



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

Thank you very much for your help! :)

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

Hi

Try the code below,

<button name='<action_name' string="OUTsub" attrs="{'invisible':<condition>}"/>


<button name='<action_name' string="IN" attrs="{'invisible':<condition>}"/>

Hope it helps

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
лип. 23
2532
1
черв. 23
1824
1
черв. 23
3094
2
серп. 23
2155
1
черв. 23
2373