|
@ -21,21 +21,29 @@ |
|
|
<field name="arch" type="xml"> |
|
|
<field name="arch" type="xml"> |
|
|
<field name="name" position="replace"> |
|
|
<field name="name" position="replace"> |
|
|
<field name="name" class="oe_read_only" /> |
|
|
<field name="name" class="oe_read_only" /> |
|
|
<field name="first_name" placeholder="First Name" class="oe_edit_only" |
|
|
|
|
|
|
|
|
<field name="first_name" placeholder="First Name" |
|
|
|
|
|
class="oe_edit_only" |
|
|
attrs="{'invisible' : [('company_type', '=', 'company')]}" /> |
|
|
attrs="{'invisible' : [('company_type', '=', 'company')]}" /> |
|
|
<field name="last_name" placeholder="Last Name" class="oe_edit_only" |
|
|
|
|
|
default_focus="1" /> |
|
|
|
|
|
|
|
|
<field name="last_name" placeholder="Last Name" |
|
|
|
|
|
class="oe_edit_only" default_focus="1" /> |
|
|
|
|
|
</field> |
|
|
|
|
|
<field name="type" position="before"> |
|
|
|
|
|
<field name="cooperator_type" /> |
|
|
</field> |
|
|
</field> |
|
|
<field name="website" position="after"> |
|
|
<field name="website" position="after"> |
|
|
<field name="cooperator_type"/> |
|
|
|
|
|
<field name="eater" attrs="{'invisible': [('customer', '=', False)]}" /> |
|
|
|
|
|
<field name="parent_eater_id" attrs="{'invisible' : [('eater', '!=', 'eater')]}" /> |
|
|
|
|
|
|
|
|
<field name="eater" |
|
|
|
|
|
attrs="{'invisible': [('customer', '=', False)]}" /> |
|
|
|
|
|
<field name="parent_eater_id" |
|
|
|
|
|
attrs="{'invisible' : [('eater', '!=', 'eater')]}" /> |
|
|
</field> |
|
|
</field> |
|
|
<xpath expr="//notebook/page[1]" position="attributes"> |
|
|
<xpath expr="//notebook/page[1]" position="attributes"> |
|
|
<attribute name="attrs">{'invisible': [('cooperator_type', '=', 'share_a')]}</attribute> |
|
|
|
|
|
|
|
|
<attribute name="attrs">{'invisible': |
|
|
|
|
|
[('cooperator_type', '=', 'share_a')]}</attribute> |
|
|
</xpath> |
|
|
</xpath> |
|
|
<xpath expr="//notebook" position="inside"> |
|
|
<xpath expr="//notebook" position="inside"> |
|
|
<page string="Worker information" attrs="{'invisible': [('cooperator_type', '!=', 'share_a')]}" name="work"> |
|
|
|
|
|
|
|
|
<page string="Worker information" |
|
|
|
|
|
attrs="{'invisible': [('cooperator_type', '!=', 'share_a')]}" |
|
|
|
|
|
name="work"> |
|
|
<group name="info_session" /> |
|
|
<group name="info_session" /> |
|
|
</page> |
|
|
</page> |
|
|
<page string="Member Card" |
|
|
<page string="Member Card" |
|
@ -48,7 +56,8 @@ |
|
|
</group> |
|
|
</group> |
|
|
<separator string="Eaters" /> |
|
|
<separator string="Eaters" /> |
|
|
<field name="child_eater_ids" widget="many2many_tags" |
|
|
<field name="child_eater_ids" widget="many2many_tags" |
|
|
options="{'no_create': True}" context="{'default_eater' : 'eater', 'default_customer' : True}" /> |
|
|
|
|
|
|
|
|
options="{'no_create': True}" |
|
|
|
|
|
context="{'default_eater' : 'eater', 'default_customer' : True}" /> |
|
|
<group> |
|
|
<group> |
|
|
<button string="New Eater" name="%(action_eater_wizard)d" |
|
|
<button string="New Eater" name="%(action_eater_wizard)d" |
|
|
type="action" /> |
|
|
type="action" /> |
|
@ -65,26 +74,28 @@ |
|
|
</tree> |
|
|
</tree> |
|
|
</field> |
|
|
</field> |
|
|
<group> |
|
|
<group> |
|
|
<button string="New Card" name="%(action_membercard_wizard)d" |
|
|
|
|
|
type="action" /> |
|
|
|
|
|
|
|
|
<button string="New Card" |
|
|
|
|
|
name="%(action_membercard_wizard)d" type="action" /> |
|
|
</group> |
|
|
</group> |
|
|
</page> |
|
|
</page> |
|
|
|
|
|
|
|
|
</xpath> |
|
|
</xpath> |
|
|
<field name="barcode" position="attributes"> |
|
|
<field name="barcode" position="attributes"> |
|
|
<attribute name="attrs">{'invisible' : [('eater', '!=', |
|
|
|
|
|
|
|
|
<attribute name="attrs">{'invisible' : [('eater', |
|
|
|
|
|
'!=', |
|
|
'worker_eater')]} |
|
|
'worker_eater')]} |
|
|
</attribute> |
|
|
</attribute> |
|
|
</field> |
|
|
</field> |
|
|
<field name="barcode" position="after"> |
|
|
<field name="barcode" position="after"> |
|
|
<field name="parent_barcode" attrs="{'invisible' : [('eater', '!=', 'eater')]}" /> |
|
|
|
|
|
|
|
|
<field name="parent_barcode" |
|
|
|
|
|
attrs="{'invisible' : [('eater', '!=', 'eater')]}" /> |
|
|
</field> |
|
|
</field> |
|
|
<button name="toggle_active" position="attributes"> |
|
|
<button name="toggle_active" position="attributes"> |
|
|
<attribute name="groups" /> |
|
|
<attribute name="groups" /> |
|
|
</button> |
|
|
</button> |
|
|
<!-- Temporary fix for the partner_view --> |
|
|
<!-- Temporary fix for the partner_view --> |
|
|
<xpath expr="//field[@name='customer']" position='before'> |
|
|
<xpath expr="//field[@name='customer']" position='before'> |
|
|
<field name="is_company" invisible="True"/> |
|
|
|
|
|
|
|
|
<field name="is_company" invisible="True" /> |
|
|
</xpath> |
|
|
</xpath> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|