how can i add attribute to button (type object) from inherited form
<button string="Approve" name="action_approve" states="confirm" type="object" groups="hr_holidays.group_hr_holidays_user" class="oe_highlight"/>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
how can i add attribute to button (type object) from inherited form
<button string="Approve" name="action_approve" states="confirm" type="object" groups="hr_holidays.group_hr_holidays_user" class="oe_highlight"/>
Let us suppose you want to add groups attribute to your button, you will inherit the form and use xpath as below:
<xpath expr="//button[@name='action_approve']" position="attributes>
<attribute name="groups">hr_holidays.group_hr_holidays_user</attribute>
</xpath>
it produces an error
Field `can_reset` does not exist
It seems you are using a field in domain not exists in the view
Please submit your XML to check it.
i inherited 'hr_holidays.edit_holiday_new' Form .. and found this error:
Field `can_reset` does not exist
but i have no field 'can_reset' ...
this is the original button
<button string="Approve" name="action_approve" states="confirm" type="object" groups="hr_holidays.group_hr_holidays_user" class="oe_highlight"/>
how can i fix it ?
it works now
i did fatal error in model name
thanks so much Waleed
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up