changed lastname2 to midname

develop
Ahmed Aly 2017-11-24 13:24:28 +01:00
parent 4336730cb2
commit 0a7331f60d
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ values = {
"portal_delivery_id": "222222",
"delivery_firstname": "Ahmed",
"delivery_lastname": "Aly",
"delivery_lastname2": False,
"delivery_midname": False,
"delivery_street": "Zeilergasse 7-11",
"delivery_street2": False,
"delivery_zip": "1170",

View File

@ -111,7 +111,7 @@ class Partner(models.Model):
common_list = ['street', 'street2', 'zip', 'city', 'country_id', 'fax', 'phone', 'mobile',
'endkunde', 'line_ids', 'lang', 'portal_id', 'email', 'opt_out']
if self.env.context.get('sst_1', False):
common_list.extend(['firstname', 'lastname', 'lastname2', 'company', 'info_kundennr', 'info_uid'])
common_list.extend(['firstname', 'lastname', 'midname', 'company', 'info_kundennr', 'info_uid'])
return common_list
elif self.env.context.get('sst_11', False):
common_list.extend(['name', 'ref', 'partner_sector_id', 'comment', 'vat', 'property_payment_term_id',