Browse Source

Merge pull request #479 from StefanRijnhart/fix/partner_contact_street/8.0/unintentional_street_write

[FIX] Unintended trigger of 'street' inverse write function
8.0
Ronald Portier 6 years ago
committed by GitHub
parent
commit
9abc300289
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      partner_street_number/__openerp__.py
  2. 2
      partner_street_number/views/res_partner.xml

2
partner_street_number/__openerp__.py

@ -21,7 +21,7 @@
{ {
"name": "Street name and number", "name": "Street name and number",
"summary": "Introduces separate fields for street name and street number.", "summary": "Introduces separate fields for street name and street number.",
"version": "8.0.0.1.0",
"version": "8.0.1.0.0",
"author": "Therp BV,Odoo Community Association (OCA)", "author": "Therp BV,Odoo Community Association (OCA)",
"website": "https://github.com/oca/partner-contact", "website": "https://github.com/oca/partner-contact",
"category": 'Tools', "category": 'Tools',

2
partner_street_number/views/res_partner.xml

@ -24,6 +24,7 @@
<xpath expr="/form/sheet//div/field[@name='street']" <xpath expr="/form/sheet//div/field[@name='street']"
position="attributes"> position="attributes">
<attribute name="invisible">1</attribute> <attribute name="invisible">1</attribute>
<attribute name="readonly">1</attribute>
</xpath> </xpath>
<xpath expr="//form[@string='Contact']/sheet/group/div/field[@name='street']" <xpath expr="//form[@string='Contact']/sheet/group/div/field[@name='street']"
@ -40,6 +41,7 @@
<xpath expr="//form[@string='Contact']/sheet/group/div/field[@name='street']" <xpath expr="//form[@string='Contact']/sheet/group/div/field[@name='street']"
position="attributes"> position="attributes">
<attribute name="invisible">1</attribute> <attribute name="invisible">1</attribute>
<attribute name="readonly">1</attribute>
</xpath> </xpath>
<xpath expr="//field[@name='child_ids']" position="attributes"> <xpath expr="//field[@name='child_ids']" position="attributes">

Loading…
Cancel
Save