[ADD]GOLEM Member Partner view with tree and search modification
This commit is contained in:
parent
1eedf82ae7
commit
6792e72fbc
@ -31,6 +31,7 @@ class ResPartner(models.Model):
|
|||||||
|
|
||||||
member_id = fields.One2many('golem.member', 'partner_id', 'GOLEM Member',
|
member_id = fields.One2many('golem.member', 'partner_id', 'GOLEM Member',
|
||||||
readonly=True)
|
readonly=True)
|
||||||
|
member_number = fields.Char('Member number', related='member_id.number')
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def create_golem_member(self):
|
def create_golem_member(self):
|
||||||
|
@ -41,8 +41,28 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- Trees -->
|
<!-- Trees -->
|
||||||
|
<record model="ir.ui.view" id="member_add">
|
||||||
|
<field name="name">Add member number to tree</field>
|
||||||
|
<field name="model">res.partner</field>
|
||||||
|
<field name="inherit_id" ref="base.view_partner_tree" />
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<field name="display_name" position="before">
|
||||||
|
<field name="member_number" />
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<!-- Searches -->
|
<!-- Searches -->
|
||||||
|
<record model="ir.ui.view" id="member_number_search">
|
||||||
|
<field name="name">Partner GOLEM Member Number search</field>
|
||||||
|
<field name="model">res.partner</field>
|
||||||
|
<field name="inherit_id" ref="base.view_res_partner_filter" />
|
||||||
|
<field name="arch" type="xml">
|
||||||
|
<field name="name" position="after">
|
||||||
|
<field name="member_number" />
|
||||||
|
</field>
|
||||||
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
</openerp>
|
</openerp>
|
||||||
|
Loading…
Reference in New Issue
Block a user