Add a condition in giving attribute value
I want to add a condition to tree to add 'create=false' attribute according to groups permission. Is it possible?
Here is my code:
My goal is <tree create="false/true"> depends on the group value.
<xpath expr="//tree" position="attributes">
PS. My actual goal is to not allow a group (group_coordinator):
to create/update data in res.partner. I have my group permissions set properly however, the user assigned to this group is still able to create/update.. And so, I think of adding the 'create' attributes in 'tree' to somehow do the trick.