Dear All,
I need help to resolve , i'm adding a new contact within a customer's company, after i save it in (base.view_partner_form) by the save button at above, it raised a following error :
Error:
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/usr/lib/python3/dist-packages/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 915, in __call__
return self.method(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1339, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/web/controllers/main.py", line 1331, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 387, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/usr/lib/python3/dist-packages/odoo/api.py", line 374, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/usr/lib/python3/dist-packages/odoo/addons/base_vat/models/res_partner.py", line 529, in write
return super(ResPartner, self).write(values)
File "/usr/lib/python3/dist-packages/odoo/addons/snailmail/models/res_partner.py", line 24, in write
return super(ResPartner, self).write(vals)
File "/usr/lib/python3/dist-packages/odoo/addons/partner_autocomplete/models/res_partner.py", line 197, in write
res = super(ResPartner, self).write(values)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/res_partner.py", line 528, in write
result = result and super(Partner, self).write(vals)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_activity.py", line 726, in write
return super(MailActivityMixin, self).write(vals)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 323, in write
result = super(MailThread, self).write(values)
File "/usr/lib/python3/dist-packages/odoo/addons/website/models/mixins.py", line 165, in write
return super(WebsitePublishedMixin, self).write(values)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3618, in write
field.write(self, vals[fname])
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 2904, in write
return self.write_batch([(records, value)])
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 2925, in write_batch
return self.write_real(records_commands_list, create)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 3098, in write_real
flush()
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 3062, in flush
comodel.create(to_create)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 317, in _model_create_single
return self.browse().concat(*(create(self, vals) for vals in arg))
File "/usr/lib/python3/dist-packages/odoo/api.py", line 317, in
return self.browse().concat(*(create(self, vals) for vals in arg))
File "/usr/lib/python3/dist-packages/odoo/addons/base_vat/models/res_partner.py", line 523, in create
return super(ResPartner, self).create(values)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 335, in _model_create_multi
return create(self, [arg])
File "/usr/lib/python3/dist-packages/odoo/addons/account/models/partner.py", line 509, in create
return super().create(vals_list)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/addons/partner_autocomplete/models/res_partner.py", line 183, in create
partners = super(ResPartner, self).create(vals_list)
File "", line 2, in create
File "/usr/lib/python3/dist-packages/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/res_partner.py", line 550, in create
partner._fields_sync(vals)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/res_partner.py", line 444, in _fields_sync
self._commercial_sync_from_company()
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/res_partner.py", line 424, in _commercial_sync_from_company
self.write(sync_vals)
File "/usr/lib/python3/dist-packages/odoo/addons/base_vat/models/res_partner.py", line 529, in write
return super(ResPartner, self).write(values)
File "/usr/lib/python3/dist-packages/odoo/addons/snailmail/models/res_partner.py", line 24, in write
return super(ResPartner, self).write(vals)
File "/usr/lib/python3/dist-packages/odoo/addons/partner_autocomplete/models/res_partner.py", line 197, in write
res = super(ResPartner, self).write(values)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/res_partner.py", line 528, in write
result = result and super(Partner, self).write(vals)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_activity.py", line 726, in write
return super(MailActivityMixin, self).write(vals)
File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 323, in write
result = super(MailThread, self).write(values)
File "/usr/lib/python3/dist-packages/odoo/addons/website/models/mixins.py", line 165, in write
return super(WebsitePublishedMixin, self).write(values)
File "/usr/lib/python3/dist-packages/odoo/models.py", line 3645, in write
fields[0].determine_inverse(real_recs)
File "/usr/lib/python3/dist-packages/odoo/fields.py", line 1154, in determine_inverse
getattr(records, self.inverse)()
File "/usr/lib/python3/dist-packages/odoo/addons/product/models/res_partner.py", line 32, in _inverse_product_pricelist
actual = self.env['ir.property'].get('property_product_pricelist', 'res.partner', 'res.partner,%s' % partner.id)
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_property.py", line 180, in get
return p.get_by_record()
File "/usr/lib/python3/dist-packages/odoo/addons/base/models/ir_property.py", line 160, in get_by_record
model, resource_id = self.value_reference.split(',')
ValueError: not enough values to unpack (expected 2, got 1)