[IMP]GOLEM Family : on partner form, always visible
This commit is contained in:
parent
776371e6db
commit
189eccba41
@ -19,7 +19,7 @@
|
|||||||
'name': 'GOLEM families',
|
'name': 'GOLEM families',
|
||||||
'summary': 'GOLEM Members Families',
|
'summary': 'GOLEM Members Families',
|
||||||
'description': 'GOLEM Members Families',
|
'description': 'GOLEM Members Families',
|
||||||
'version': '10.0.2.2.3',
|
'version': '10.0.2.2.4',
|
||||||
'category': 'GOLEM',
|
'category': 'GOLEM',
|
||||||
'author': 'Fabien Bourgeois',
|
'author': 'Fabien Bourgeois',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Copyright 2017 Fabien Bourgeois <fabien@yaltik.com>
|
Copyright 2017-2018 Fabien Bourgeois <fabien@yaltik.com>
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU Affero General Public License as published by
|
it under the terms of the GNU Affero General Public License as published by
|
||||||
@ -25,6 +25,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="model">res.partner</field>
|
<field name="model">res.partner</field>
|
||||||
<field name="inherit_id" ref="base.view_partner_form" />
|
<field name="inherit_id" ref="base.view_partner_form" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
|
<field name="type" position="after">
|
||||||
|
<field name="family_id" attrs="{'invisible': [('is_company', '=', True)]}" />
|
||||||
|
<field name="family_role" attrs="{'invisible': [('is_company', '=', True)]}" />
|
||||||
|
</field>
|
||||||
<div name="button_box" position="inside">
|
<div name="button_box" position="inside">
|
||||||
<button class="oe_inline oe_stat_button" type="object"
|
<button class="oe_inline oe_stat_button" type="object"
|
||||||
name="button_family_members" icon="fa-users"
|
name="button_family_members" icon="fa-users"
|
||||||
@ -36,20 +40,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record model="ir.ui.view" id="partner_firstname_inherit_golem_family_role">
|
|
||||||
<field name="name">Partner form adaptations</field>
|
|
||||||
<field name="model">res.partner</field>
|
|
||||||
<field name="inherit_id"
|
|
||||||
ref="partner_firstname.view_partner_form_firstname" />
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<field name="lastname" position="before">
|
|
||||||
<field name="family_id"
|
|
||||||
attrs="{'invisible': [('is_company', '=', True)]}" />
|
|
||||||
<field name="family_role"
|
|
||||||
attrs="{'invisible': [('is_company', '=', True)]}" />
|
|
||||||
</field>
|
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
</odoo>
|
</odoo>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user