This commit is contained in:
eman 2024-10-09 03:18:08 +03:00
parent 1a357ec495
commit 5e2e5a947f
1 changed files with 20 additions and 30 deletions

View File

@ -422,44 +422,38 @@
</group>
<notebook>
<page string="Hobbies">
<field name="hobbies_ids" widget="one2many_list">
<tree editable="bottom" delete="0">
<field name="hobbies_attachment_ids" widget="one2many_list">
<tree editable="bottom">
<field name="name"/>
<!-- <field name="hobbies_id"/>-->
<field name="hobby_attach"/>
<field name="hobbies_id"/>
<field name="datas" string="File content"/>
<field name="expiration_date"/>
<field name="attach_status"/>
<field name="member_id" invisible="1"/>
<field name="is_required" invisible="1"/>
<field name="is_default" invisible="1"/>
</tree>
</field>
</page>
<page string="Diseases">
<field name="diseases_ids" widget="one2many_list">
<tree editable="bottom" delete="0">
<field name="diseases_attachment_ids" widget="one2many_list">
<tree editable="bottom">
<field name="name"/>
<!-- <field name="diseases_id"/>-->
<field name="disease_attach"/>
<field name="diseases_id"/>
<field name="datas" string="File content"/>
<field name="expiration_date"/>
<field name="attach_status"/>
<field name="member_id" invisible="1"/>
<field name="is_required" invisible="1"/>
<field name="is_default" invisible="1"/>
</tree>
</field>
</page>
<page string="Disabilities">
<field name="disabilities_ids" widget="one2many_list">
<tree editable="bottom" delete="0">
<field name="disabilities_attachment_ids" widget="one2many_list">
<tree editable="bottom">
<field name="name"/>
<!-- <field name="disabilities_id"/>-->
<field name="disability_attach"/>
<field name="disabilities_id"/>
<field name="datas" string="File content"/>
<field name="expiration_date"/>
<field name="attach_status"/>
<field name="member_id" invisible="1"/>
<field name="is_required" invisible="1"/>
<field name="is_default" invisible="1"/>
</tree>
</field>
</page>
@ -531,6 +525,7 @@
<field name="attachment_ids" widget="one2many_list">
<tree editable="bottom" delete="0">
<field name="name" string="Attachment Name" attrs="{'readonly':[('is_default','=',True)]}"/>
<field name="attach_id"/>
<field name="datas" string="File content"/>
<field name="expiration_date"/>
<field name="attach_status"/>
@ -541,18 +536,13 @@
</tree>
</field>
</page>
<page string="Attachment Configuration">
<group>
<group>
<!-- <field name="required_attach" attrs="{'required':[('parent.state','not in',['draft'])]}"/>-->
<field name="required_hobby_attach" attrs="{'required':[('parent.state','not in',['draft'])]}"/>
</group>
<group>
<field name="required_diseases_attach" attrs="{'required':[('parent.state','not in',['draft'])]}"/>
<field name="required_disabilities_attach" attrs="{'required':[('parent.state','not in',['draft'])]}"/>
</group>
</group>
</page>
<!-- <page string="Attachment Configuration">-->
<!-- <group>-->
<!-- <group>-->
<!--&lt;!&ndash; <field name="required_attach" attrs="{'required':[('parent.state','not in',['draft'])]}"/>&ndash;&gt;-->
<!-- </group>-->
<!-- <group-->
<!-- </page>-->
</notebook>
</sheet>
</form>