Hello,
how to make an xml condition in base.xml to check the source model
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Using the below code you can check the source module t-if="widget.model == 'module.name'"
Example using the below code i changed the 'Create' button name in my custom module.
<!-- The Below code is Modified to change the Save button name in Custom Module -->
<button t-if="widget.is_action_enabled('create') and widget.model != 'module.name'"
type="button" class="oe_button oe_form_button_create" accesskey="C">Create</button>
<button t-if="widget.is_action_enabled('create') and widget.model == 'module.name'"
type="button" class="oe_button oe_form_button_create" accesskey="C">Add Record</button> <!-- END -->
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
1
мар. 25
|
2709 | |||
|
0
нояб. 24
|
2552 | |||
|
0
июн. 24
|
2264 | |||
|
1
июн. 24
|
2863 | |||
|
0
окт. 23
|
2942 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.