Merge pull request #469 from expsa/transaction_dev

Update entity.xml
This commit is contained in:
zainab2097 2024-08-01 12:54:25 +03:00 committed by GitHub
commit fc1ad82699
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@
domain="[('type','in',['employee'])]"/>
<field name="child_ids" attrs="{'invisible': [('type', '!=', 'employee')]}"
widget="many2many_tags" domain="[('type', 'in', ['unit'])]"/>
<field name="image" attrs="{'invisible': [('type', '!=', 'employee')]} widget="image" options="{'max_width': 200, 'max_height': 200}"/>
<field name="image" attrs="{'invisible': [('type', '!=', 'employee')]}" widget="image" options="{'max_width': 200, 'max_height': 200}"/>
</group>
<group>
<field name="name" force_save ="1" attrs="{'readonly': [('type','=','employee')],'required':[('type','!=','employee')]}"/>