|
1 | 1 | <odoo> |
| 2 | + <record model="ir.ui.view" id="coop_partner_inherited_view_form"> |
| 3 | + <field name="name">Polln Coop Form View</field> |
| 4 | + <field name="model">res.partner</field> |
| 5 | + <field name="inherit_id" ref="easy_my_coop.view_partner_form_easy_my_coop" /> |
| 6 | + <field name="priority">99</field> |
| 7 | + <field name="arch" type="xml"> |
| 8 | + <xpath expr="//button[@id='action_view_update_partner_info']/.." position="replace" /> |
| 9 | + <field name="age" position="after"> |
| 10 | + <field name="gender" /> |
| 11 | + </field> |
| 12 | + <xpath expr="//field[@name='member']/../.." position='replace' /> |
| 13 | + <page name="share" position="replace"> |
| 14 | + <page name="easy_my_coop_status" string="Coop Status"> |
| 15 | + <group> |
| 16 | + <group> |
| 17 | + <field name="member" invisible="1"/> |
| 18 | + <field name="representative" |
| 19 | + attrs="{'invisible':['|',('parent_id','=',False),('is_company','=',True)]}"/> |
| 20 | + <field name="cooperator_register_number" |
| 21 | + readonly="True" |
| 22 | + attrs="{'invisible':[('member','=',False)]}"/> |
| 23 | + <field name="company_register_number" |
| 24 | + readonly="True" |
| 25 | + attrs="{'invisible':[('is_company','=',False)]}"/> |
| 26 | + <field name="coop_candidate" |
| 27 | + groups="easy_my_coop.group_easy_my_coop_user"/> |
| 28 | + <field name="cooperator" invisible="True" |
| 29 | + groups="easy_my_coop.group_easy_my_coop_manager"/> |
| 30 | + <field name="member" |
| 31 | + groups="easy_my_coop.group_easy_my_coop_manager"/> |
| 32 | + <field name="cooperator_type" |
| 33 | + attrs="{'invisible':[('member','=',False)]}"/> |
| 34 | + <field name="effective_date" |
| 35 | + attrs="{'invisible':[('member','=',False)]}"/> |
| 36 | + </group> |
| 37 | + <group name="approvals" attrs="{'invisible':[('cooperator','=',False)]}"> |
| 38 | + <field name="internal_rules_approved"/> |
| 39 | + <field name="data_policy_approved"/> |
| 40 | + <field name="financial_risk_approved"/> |
| 41 | + <field name="generic_rules_approved"/> |
| 42 | + </group> |
| 43 | + </group> |
| 44 | + <separator string="Shares" /> |
| 45 | + <group> |
| 46 | + <field name="number_of_share"/> |
| 47 | + <field name="total_value"/> |
| 48 | + </group> |
| 49 | + <field name="share_ids"> |
| 50 | + <tree create="false"> |
| 51 | + <field name="effective_date"/> |
| 52 | + <field name="share_short_name"/> |
| 53 | + <field name="share_number" |
| 54 | + sum="Total of shares"/> |
| 55 | + <field name="share_unit_price"/> |
| 56 | + <field name="total_amount_line" |
| 57 | + sum="Total subscribed amount"/> |
| 58 | + </tree> |
| 59 | + </field> |
| 60 | + <separator string="Share Subscriptions" /> |
| 61 | + <field name="subscription_request_ids"> |
| 62 | + <tree create="false" delete="false" edit="false"> |
| 63 | + <field name="share_short_name"/> |
| 64 | + <field name="ordered_parts" |
| 65 | + sum="Total of shares"/> |
| 66 | + <field name="share_unit_price"/> |
| 67 | + <field name="subscription_amount" |
| 68 | + sum="Total subscribed amount"/> |
| 69 | + <field name="type"/> |
| 70 | + <field name="state"/> |
| 71 | + </tree> |
| 72 | + </field> |
| 73 | + </page> |
| 74 | + </page> |
| 75 | + <page name="share_subscription" position="replace" /> |
| 76 | + </field> |
| 77 | + </record> |
| 78 | + |
2 | 79 | <record model="ir.ui.view" id="coop_partner_inherited_view_form_eater"> |
3 | 80 | <field name="name">Polln Coop Form View</field> |
4 | 81 | <field name="model">res.partner</field> |
5 | 82 | <field name="inherit_id" ref="beesdoo_shift.super_coop_partner_inherited_view_form" /> |
6 | 83 | <field name="priority">99</field> |
7 | 84 | <field name="arch" type="xml"> |
| 85 | + <field name="eater" position="replace" /> |
| 86 | + <field name="parent_eater_id" position="replace" /> |
8 | 87 | <field name="is_worker" position="after" > |
9 | 88 | <field name="worker_store" readonly="0" string="Force Worker" /> |
| 89 | + <field name="eater" attrs="{'invisible': [('customer', '=', False)]}" /> |
| 90 | + <field name="parent_eater_id" attrs="{'invisible' : [('eater', '!=', 'eater')]}" readonly="0"/> |
10 | 91 | </field> |
| 92 | + <button name="temporary_exempt" position="after"> |
| 93 | + <button string="Create Subscription" |
| 94 | + name="%(easy_my_coop.action_view_create_subscription)d" |
| 95 | + type="action" |
| 96 | + context="{'default_active_id': active_id}" |
| 97 | + groups="easy_my_coop.group_easy_my_coop_user"/> |
| 98 | + <button id="action_view_update_partner_info" |
| 99 | + string="Update info" |
| 100 | + name="%(easy_my_coop.action_view_update_partner_info)d" |
| 101 | + type="action" |
| 102 | + context="{'default_active_id': active_id}" |
| 103 | + groups="easy_my_coop.group_easy_my_coop_user"/> |
| 104 | + </button> |
11 | 105 | </field> |
12 | 106 | </record> |
13 | 107 | </odoo> |
0 commit comments