|
@ -7,6 +7,13 @@ |
|
|
<field name="target">new</field> |
|
|
<field name="target">new</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record model="ir.actions.act_window" id="action_eater_wizard"> |
|
|
|
|
|
<field name="name">New Eater</field> |
|
|
|
|
|
<field name="res_model">eater.new.wizard</field> |
|
|
|
|
|
<field name="view_mode">form</field> |
|
|
|
|
|
<field name="target">new</field> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="beesdoo_partner_form_view"> |
|
|
<record model="ir.ui.view" id="beesdoo_partner_form_view"> |
|
|
<field name="name">beesdoo.partner.form.view</field> |
|
|
<field name="name">beesdoo.partner.form.view</field> |
|
|
<field name="model">res.partner</field> |
|
|
<field name="model">res.partner</field> |
|
@ -20,12 +27,11 @@ |
|
|
default_focus="1" /> |
|
|
default_focus="1" /> |
|
|
</field> |
|
|
</field> |
|
|
<field name="website" position="after"> |
|
|
<field name="website" position="after"> |
|
|
<field name="eater" |
|
|
|
|
|
attrs="{'invisible': [('company_type', '=', 'company')]}" /> |
|
|
|
|
|
|
|
|
<field name="eater" attrs="{'invisible': [('customer', '=', False)]}" /> |
|
|
<field name="parent_eater_id" attrs="{'invisible' : [('eater', '!=', 'eater')]}" /> |
|
|
<field name="parent_eater_id" attrs="{'invisible' : [('eater', '!=', 'eater')]}" /> |
|
|
</field> |
|
|
</field> |
|
|
<xpath expr="//notebook" position="inside"> |
|
|
<xpath expr="//notebook" position="inside"> |
|
|
<page string="Member Cards" |
|
|
|
|
|
|
|
|
<page string="Member Card" |
|
|
attrs="{'invisible': ['|', ('customer', '=', False), ('eater', '!=', 'worker_eater')]}"> |
|
|
attrs="{'invisible': ['|', ('customer', '=', False), ('eater', '!=', 'worker_eater')]}"> |
|
|
<separator string="Printing" /> |
|
|
<separator string="Printing" /> |
|
|
<group> |
|
|
<group> |
|
@ -34,6 +40,10 @@ |
|
|
</group> |
|
|
</group> |
|
|
<separator string="Eaters" /> |
|
|
<separator string="Eaters" /> |
|
|
<field name="child_eater_ids" widget="many2many_tags" /> |
|
|
<field name="child_eater_ids" widget="many2many_tags" /> |
|
|
|
|
|
<group> |
|
|
|
|
|
<button string="New Eater" name="%(action_eater_wizard)d" |
|
|
|
|
|
type="action" /> |
|
|
|
|
|
</group> |
|
|
<separator string="Cards" /> |
|
|
<separator string="Cards" /> |
|
|
<field string="Cards" name="member_card_ids"> |
|
|
<field string="Cards" name="member_card_ids"> |
|
|
<tree editable="bottom"> |
|
|
<tree editable="bottom"> |
|
@ -52,21 +62,28 @@ |
|
|
</page> |
|
|
</page> |
|
|
</xpath> |
|
|
</xpath> |
|
|
<field name="barcode" position="attributes"> |
|
|
<field name="barcode" position="attributes"> |
|
|
<attribute name="attrs">{'invisible' : [('eater', '!=', 'worker_eater')]}</attribute> |
|
|
|
|
|
|
|
|
<attribute name="attrs">{'invisible' : [('eater', '!=', |
|
|
|
|
|
'worker_eater')]} |
|
|
|
|
|
</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"> |
|
|
|
|
|
<attribute name="groups" /> |
|
|
|
|
|
</button> |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
<!-- S022 : By default a supplier should be a company --> |
|
|
<!-- S022 : By default a supplier should be a company --> |
|
|
<record id="base.action_partner_supplier_form" model="ir.actions.act_window"> |
|
|
<record id="base.action_partner_supplier_form" model="ir.actions.act_window"> |
|
|
<field name="context">{ 'search_default_supplier': 1, |
|
|
|
|
|
|
|
|
<field name="context">{ |
|
|
|
|
|
'search_default_supplier': 1, |
|
|
'default_customer': 0, |
|
|
'default_customer': 0, |
|
|
'default_supplier': 1, |
|
|
'default_supplier': 1, |
|
|
'default_is_company' : True, |
|
|
'default_is_company' : True, |
|
|
'default_company_type' : 'company', } |
|
|
|
|
|
|
|
|
'default_company_type' : 'company', |
|
|
|
|
|
} |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|
</odoo> |
|
|
</odoo> |