Unable to merge contacts

Description

Steps to Reproduce:

  1. Login to OpenG2P

  2. Navigate to Registry>Group

  3. Select the record

  4. Click on action>merge

  5. Add contacts to merge

  6. Click on merge contact button.

 

Actual Result: Unable to merge the contacts

Expected Result: User should be able to merge the contacts using merge feature.

 

Error log:

RPC_ERROR
Odoo Server Error
Traceback (most recent call last):
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/http.py", line 687, in dispatch
result = self._call_function(**self.params)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/http.py", line 348, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/http.py", line 916, in call
return self.method(*args, **kw)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/http.py", line 535, in response_wrap
response = f(*args, **kw)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/addons/web/controllers/main.py", line 1351, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/addons/web/controllers/main.py", line 1339, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/api.py", line 464, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/api.py", line 451, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/addons/base/wizard/base_partner_merge.py", line 654, in action_merge
self._merge(self.partner_ids.ids, self.dst_partner_id)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/addons/base/wizard/base_partner_merge.py", line 339, in _merge
self._update_reference_fields(src_partners, dst_partner)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/addons/base/wizard/base_partner_merge.py", line 225, in _update_reference_fields
records_ref = Model.sudo().search([(record.name, '=', 'res.partner,%d' % http://partner.id )])
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/models.py", line 1810, in search
res = self._search(args, offset=offset, limit=limit, order=order, count=count)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/models.py", line 4711, in _search
query.order = self._generate_order_by(order, query).replace('ORDER BY ', '')
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/models.py", line 4597, in _generate_order_by
order_by_elements = self._generate_order_by_inner(self._table, order_spec, query)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/models.py", line 4563, in _generate_order_by_inner
raise ValueError("Invalid field %r on model %r" % (order_field, self._name))
Exception

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/http.py", line 643, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/bitnami/odoo/lib/odoo-15.0.post20220810-py3.10.egg/odoo/http.py", line 301, in _handle_exception
raise exception.with_traceback(None) from new_cause
ValueError: Invalid field 'id' on model 'g2p.manager.mixin'

Environment

qa.openg2p.mosip.net

Attachments

3
  • 01 Nov 2023, 10:30 AM
  • 01 Nov 2023, 10:30 AM
  • 09 Feb 2023, 07:29 AM

Activity

Show:

Vamsi P November 7, 2023 at 11:54 AM

Able to merge contacts, Hence closing the issue.

RamakrishnaVellala November 3, 2023 at 9:54 AM

Merging contacts is working fine now

Vamsi P November 1, 2023 at 10:29 AM
Edited

Still not able to merge contacts , So bug reopened.

RamakrishnaVellala October 30, 2023 at 2:59 AM

merging contacts is now possible. in odoo addons, changes were merged.

Done

Details

Assignee

Reporter

Labels

Priority

Created February 9, 2023 at 7:29 AM
Updated November 7, 2023 at 11:54 AM
Resolved November 3, 2023 at 9:54 AM