Skip to content

Commit ea83087

Browse files
committed
[IMP] dms_field: Set the group_ids field as required if there is no parent directory
Related to #494 (Bug 4)
1 parent c8d31ce commit ea83087

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

dms_field/views/dms_field_template_views.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@
3535
invisible="not model_id"
3636
required="1"
3737
/>
38-
<field name="group_ids" widget="many2many_tags" />
38+
<field
39+
name="group_ids"
40+
widget="many2many_tags"
41+
required="not parent_directory_id"
42+
/>
3943
</group>
4044
<notebook position="inside">
4145
<page

0 commit comments

Comments
 (0)