Browse Source

[FIX] cooperator menu

pull/29/head
robin.keunen 5 years ago
parent
commit
46e12219dc
  1. 2
      easy_my_coop/demo/coop.xml
  2. 12
      easy_my_coop/views/res_partner_view.xml

2
easy_my_coop/demo/coop.xml

@ -14,6 +14,7 @@
<field name="city">Namur (Loyers)</field> <field name="city">Namur (Loyers)</field>
<field name="zip">5101</field> <field name="zip">5101</field>
<field name="country_id" ref="base.be"/> <field name="country_id" ref="base.be"/>
<field name="member" eval="True"/>
</record> </record>
<record id="bank_account_virginie_demo" model="res.partner.bank"> <record id="bank_account_virginie_demo" model="res.partner.bank">
@ -31,6 +32,7 @@
<field name="city">Namur (Loyers)</field> <field name="city">Namur (Loyers)</field>
<field name="zip">5101</field> <field name="zip">5101</field>
<field name="country_id" ref="base.be"/> <field name="country_id" ref="base.be"/>
<field name="member" eval="True"/>
</record> </record>
<record id="bank_account_houssine_demo" model="res.partner.bank"> <record id="bank_account_houssine_demo" model="res.partner.bank">

12
easy_my_coop/views/res_partner_view.xml

@ -1,4 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2019 Coop IT Easy
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo> <odoo>
<data> <data>
<record id="view_partner_form_easy_my_coop" model="ir.ui.view"> <record id="view_partner_form_easy_my_coop" model="ir.ui.view">
@ -93,14 +97,12 @@
</record> </record>
<record id="action_partner_cooperator_form" model="ir.actions.act_window"> <record id="action_partner_cooperator_form" model="ir.actions.act_window">
<field name="name">Cooperator</field>
<field name="type">ir.actions.act_window</field>
<field name="name">Cooperators</field>
<field name="res_model">res.partner</field> <field name="res_model">res.partner</field>
<field name="view_type">form</field> <field name="view_type">form</field>
<field name="view_mode">kanban,tree,form</field> <field name="view_mode">kanban,tree,form</field>
<field name="domain">[('cooperator','=',True),('member','=',True),('old_member','=',False)]</field>
<field name="domain">['|', ('cooperator','=',True), '|', ('member','=',True),('old_member','=', True)]</field>
<field name="context">{'default_cooperator':1, 'search_default_cooperator':1}</field> <field name="context">{'default_cooperator':1, 'search_default_cooperator':1}</field>
<field name="filter" eval="True"/>
<field name="help" type="html"> <field name="help" type="html">
<p class="oe_view_nocontent_create"> <p class="oe_view_nocontent_create">
Click to add a contact in your address book. Click to add a contact in your address book.

Loading…
Cancel
Save