Browse Source

[FIX] base_partner_surname : Made 6.1+ compatible + code optimization

(../addons/extra-trunk rev 5790)
pull/7/head
Serpent Consulting Services 12 years ago
parent
commit
5edbc16b7d
  1. 8
      base_partner_surname/partner.py

8
base_partner_surname/partner.py

@ -20,20 +20,16 @@
##############################################################################
from osv import fields, osv
from mx import DateTime
import tools
import ir
import pooler
import time
class res_partner_address(osv.osv):
_name = 'res.partner.address'
_inherit = 'res.partner.address'
_columns = {
'first_name' : fields.char('First Name', size=128),
'last_name' : fields.char('Last Name', size=128),
'name' : fields.char('Name', size=128, readonly=True),
}
def write(self, cr, uid, ids, vals, context={}):
first_name = ''
last_name = ''

Loading…
Cancel
Save