Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
faircoop
FairCoopTech
FairCoopSites
invoices.freedoomcop.eu
Commits
6e831d39
Commit
6e831d39
authored
Nov 10, 2017
by
santi
Browse files
Fix the partner form
parent
2ab1bdd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
partner_custom/views/partner_view.xml
View file @
6e831d39
...
...
@@ -7,60 +7,30 @@
<field
name=
"inherit_id"
ref=
"base.view_partner_form"
/>
<field
name=
"arch"
type=
"xml"
>
<xpath
expr=
"//field[@name='website']"
position=
"after"
>
<field
name=
"vat"
/>
<field
name=
"lang"
/>
<field
name=
"betabank_id"
groups=
"account.group_account_user"
/>
<field
name=
"betabank_id"
groups=
"account.group_account_user"
/>
<field
name=
"lang"
/>
<label
for=
"vat"
/>
<div
name=
"vat_info2"
>
<field
name=
"vat"
on_change=
"vat_change(vat)"
placeholder=
"e.g. BE0477472701"
class=
"oe_inline"
/>
<button
colspan=
"2"
name=
"button_check_vat"
string=
"Check Validity"
type=
"object"
icon=
"gtk-execute"
class=
"oe_inline"
/>
<field
name=
"vat_subjected"
class=
"oe_inline"
/>
</div>
</xpath>
<xpath
expr=
"//
field[@name='user_id
']"
position=
"attributes"
>
<xpath
expr=
"//
notebook[@colspan='4
']"
position=
"attributes"
>
<attribute
name=
"groups"
>
account.group_account_user
</attribute>
</xpath>
<xpath
expr=
"//field[@name='ref']"
position=
"attributes"
>
<attribute
name=
"groups"
>
account.group_account_user
</attribute>
</xpath>
<xpath
expr=
"//group/field[@name='date']"
position=
"attributes"
>
<attribute
name=
"groups"
>
account.group_account_user
</attribute>
</xpath>
<xpath
expr=
"//group/field[@name='customer']"
position=
"attributes"
>
<attribute
name=
"groups"
>
account.group_account_user
</attribute>
</xpath>
<xpath
expr=
"//group/field[@name='supplier']"
position=
"attributes"
>
<attribute
name=
"groups"
>
account.group_account_user
</attribute>
<xpath
expr=
"//page/group/group/field[@name='lang']"
position=
"replace"
>
<div></div>
</xpath>
<xpath
expr=
"//field[@name='active']"
position=
"attributes"
>
<attribute
name=
"groups"
>
account.group_account_user
</attribute>
</xpath>
<xpath
expr=
"//page[@name='sales_purchases']"
position=
"attributes"
>
<attribute
name=
"groups"
>
account.group_account_user
</attribute>
</xpath>
</field>
</field>
</record>
<record
id=
"partner_form_view_inherit_account"
model=
"ir.ui.view"
>
<field
name=
"name"
>
partner.form.view.inherit.account
</field>
<field
name=
"model"
>
res.partner
</field>
<field
name=
"inherit_id"
ref=
"
accoun
t.view_partner_
property_
form"
/>
<field
name=
"inherit_id"
ref=
"
base_va
t.view_partner_form"
/>
<field
name=
"arch"
type=
"xml"
>
<xpath
expr=
"//page[@name='accounting']"
position=
"attributes"
>
<attribute
name=
"groups"
>
account.group_account_user
</attribute>
</xpath>
</field>
</record>
<record
id=
"partner_form_view_inherit_mail"
model=
"ir.ui.view"
>
<field
name=
"name"
>
partner.form.view.inherit.mail
</field>
<field
name=
"model"
>
res.partner
</field>
<field
name=
"inherit_id"
ref=
"mail.view_emails_partner_info_form"
/>
<field
name=
"arch"
type=
"xml"
>
<xpath
expr=
"//field[@name='notify_email']"
position=
"attributes"
>
<attribute
name=
"groups"
>
account.group_account_user
</attribute>
</xpath>
</field>
</record>
<record
id=
"partner_form_view_inherit_opt"
model=
"ir.ui.view"
>
<field
name=
"name"
>
partner.form.view.inherit.opt
</field>
<field
name=
"model"
>
res.partner
</field>
<field
name=
"inherit_id"
ref=
"email_template.res_partner_opt_out_form"
/>
<field
name=
"arch"
type=
"xml"
>
<xpath
expr=
"//field[@name='opt_out']"
position=
"attributes"
>
<attribute
name=
"groups"
>
account.group_account_user
</attribute>
<xpath
expr=
"//div[@name='vat_info']"
position=
"replace"
>
<div></div>
</xpath>
</field>
</record>
...
...
santi
@santi
mentioned in issue
#8 (closed)
·
Nov 10, 2017
mentioned in issue
#8 (closed)
mentioned in issue #8
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment