Skip to content
Xavier Brochard edited this page Oct 29, 2021 · 1 revision

Conflict:

          for k, v in ADDRESS_FORMAT_LAYOUTS.items():
              if k in fmt:
                  doc = etree.fromstring(arch)
 +                view_has_field_use_parent_address = (
 +                    doc.find('.//field[@name="use_parent_address"]') is not None)
                  for node in doc.xpath("//div[@class='address_format']"):
                      tree = etree.fromstring(v % {'city': _('City'), 'zip': _('ZIP'), 'state': _('State')})
++<<<<<<< HEAD
 +                    for childnode in tree.getchildren():
 +                        if view_has_field_use_parent_address and childnode.tag == 'field':
 +                            childnode.set(
 +                                'attrs', "{'readonly': [('use_parent_address','=',True)]}")
 +                        modifiers = {}
 +                        orm.transfer_node_to_modifiers(childnode, modifiers)
 +                        orm.transfer_modifiers_to_node(modifiers, childnode)
++=======
+                     for child in node.xpath("//field"):
+                         if child.attrib.get('modifiers'):
+                             for field in tree.xpath("//field[@name='%s']" % child.attrib.get('name')):
+                                 field.attrib['modifiers'] = child.attrib.get('modifiers')
++>>>>>>> odoo/8.0
                      node.getparent().replace(node, tree)
                  arch = etree.tostring(doc)
                  break

resolved by

git checkout --theirs openerp/addons/base/res/res_partner.py

Committed as https://github.com/OCA/OCB/commit/63bf8a0 by @hbrunn