[IMP] priority on views

bzr revid: fp@openerp.com-20130929085000-p2pcmkdubqw1lfbj
This commit is contained in:
Fabien Pinckaers 2013-09-29 10:50:00 +02:00
parent 1db512092f
commit 4b5d3e4a40
3 changed files with 3 additions and 3 deletions

View File

@ -233,7 +233,7 @@ class res_partner(osv.osv, format_address):
'date': fields.date('Date', select=1),
'title': fields.many2one('res.partner.title', 'Title'),
'parent_id': fields.many2one('res.partner', 'Related Company'),
'child_ids': fields.one2many('res.partner', 'parent_id', 'Contacts', domain=[('active','=',True)]), # force "active_test" domain to bypass _search() override
'child_ids': fields.one2many('res.partner', 'parent_id', 'Contacts', domain=[('active','=',True)]), # force "active_test" domain to bypass _search() override
'ref': fields.char('Reference', size=64, select=1),
'lang': fields.selection(_lang_get, 'Language',
help="If the selected language is loaded in the system, all documents related to this contact will be printed in this language. If not, it will be English."),
@ -556,7 +556,6 @@ class res_partner(osv.osv, format_address):
if context.get('show_email') and record.email:
name = "%s <%s>" % (name, record.email)
res.append((record.id, name))
print '*', res, context
return res
def _parse_partner_name(self, text, context=None):

View File

@ -214,6 +214,7 @@
<rng:optional><rng:attribute name="name"/></rng:optional>
<rng:optional><rng:attribute name="forcecreate"/></rng:optional>
<rng:optional><rng:attribute name="context"/></rng:optional>
<rng:optional><rng:attribute name="priority"/></rng:optional>
<rng:choice>
<rng:group>
<rng:optional><rng:attribute name="inherit_id"/></rng:optional>

View File

@ -868,7 +868,7 @@ form: module.record_id""" % (xml_id,)
'id': tpl_id,
'model': 'ir.ui.view',
}
for att in ['forcecreate', 'context']:
for att in ['forcecreate', 'context', 'priority']:
if att in el.keys():
record_attrs[att] = el.attrib.pop(att)