forked from Yaltik/golem
[FIX]GOLEM Family fix on creation : partner_id cannot be required
This commit is contained in:
parent
35c52a25d5
commit
d987561be9
@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="inherit_id" ref="golem_member_minor.minor_add_form" />
|
<field name="inherit_id" ref="golem_member_minor.minor_add_form" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="legal_guardian" position="after">
|
<field name="legal_guardian" position="after">
|
||||||
<field name="partner_id" invisible="True" />
|
<field name="partner_id" invisible="True" required="False" />
|
||||||
</field>
|
</field>
|
||||||
<field name="legal_guardian" position="attributes">
|
<field name="legal_guardian" position="attributes">
|
||||||
<attribute name="domain">['&', ('family_id', '=', family_id), ('id', '!=', partner_id)]</attribute>
|
<attribute name="domain">['&', ('family_id', '=', family_id), ('id', '!=', partner_id)]</attribute>
|
||||||
|
Loading…
Reference in New Issue
Block a user