HI Everybody,
I have create new model. In the form view of the model have import button.
This import button is belong Base_import.import.
How can I inherit and custom the this button. Do not change directly on base_import.
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
HI Everybody,
I have create new model. In the form view of the model have import button.
This import button is belong Base_import.import.
How can I inherit and custom the this button. Do not change directly on base_import.
Thanks
Try this one
<xpath expr="//button[@name='button_you_want_to_inherit_or_customize']" position="replace">
<button name="invoice_cancel" states="draft,proforma2,sale,open" string="Cancel Invoice" groups="account.group_account_invoice"/>
</xpath>
Reference: https://goo.gl/4Zyc9d
Inheritance in Model and Views: https://goo.gl/4Zyc9d
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.