[FIX] hr_holidays: Ensure the name is mandatory in public holidays
The name field was previously optional when adding a new instance from the tree view, which in the absence of a name, 'false' is indicated in the calendar view. The field is now set as mandatory. closes odoo/odoo#134433 Task: #3469914 X-original-commit: 732f27c4398ae661ecfc1afb80e656e7c86d8d55 Signed-off-by: Sofie Gvaladze (sgv) <sgv@odoo.com>
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='name']" position="attributes">
|
||||
<attribute name="string">Name</attribute>
|
||||
<attribute name="required">1</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='resource_id']" position="attributes">
|
||||
<attribute name="invisible">1</attribute>
|
||||
|
||||
Reference in New Issue
Block a user