~therp-nl/openupgrade-server/6.0-lp1025797-dangling_references

« back to all changes in this revision

Viewing changes to bin/addons/base/res/partner/partner.py

  • Committer: Stefan Rijnhart
  • Date: 2012-05-09 12:52:49 UTC
  • mfrom: (3475.1.142 openobject-server)
  • Revision ID: stefan@therp.nl-20120509125249-llcqw330h6u9xls0
[MRG] Merged with main

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        'parent_id': fields.many2one('res.partner','Parent Partner'),
117
117
        'child_ids': fields.one2many('res.partner', 'parent_id', 'Partner Ref.'),
118
118
        'ref': fields.char('Reference', size=64, select=1),
119
 
        'lang': fields.selection(_lang_get, 'Language', size=5, help="If the selected language is loaded in the system, all documents related to this partner will be printed in this language. If not, it will be english."),
 
119
        'lang': fields.selection(_lang_get, 'Language', size=32, help="If the selected language is loaded in the system, all documents related to this partner will be printed in this language. If not, it will be english."),
120
120
        'user_id': fields.many2one('res.users', 'Salesman', help='The internal user that is in charge of communicating with this partner if any.'),
121
121
        'vat': fields.char('VAT',size=32 ,help="Value Added Tax number. Check the box if the partner is subjected to the VAT. Used by the VAT legal statement."),
122
122
        'bank_ids': fields.one2many('res.partner.bank', 'partner_id', 'Banks'),
338
338
                ids = self.search(cr, user, [('city',operator,name)] + args, limit=limit, context=context)
339
339
            if name:
340
340
                ids += self.search(cr, user, [('name',operator,name)] + args, limit=limit, context=context)
 
341
                ids += self.search(cr, user, [('street',operator,name)] + args, limit=limit, context=context)
 
342
                ids += self.search(cr, user, [('country_id',operator,name)] + args, limit=limit, context=context)
341
343
                ids += self.search(cr, user, [('partner_id',operator,name)] + args, limit=limit, context=context)
342
344
        return self.name_get(cr, user, ids, context=context)
343
345