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:
Hello,
how to make an xml condition in base.xml to check the source model
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 -->
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
| 
            
                Enable Counters in odoo what is the use of it 
            
            
                    Diselesaikan
            
         |  | 1 Mar 25  | 2414 | |
|  | 0 Nov 24  | 2251 | ||
|  | 0 Jun 24  | 2088 | ||
|  | 1 Jun 24  | 2657 | ||
|  | 0 Okt 23  | 2715 |