server-tools icon indicating copy to clipboard operation
server-tools copied to clipboard

[18.0][FIX] tracking_manager: Solved the invalid recordset issue

Open bizzappdev opened this issue 8 months ago • 1 comments

  • Steps to Reproduce:
  1. Go to Settings > Models, select any model (e.g., res.partner).
  2. Ensure 'Active' and 'Automatic Configuration' are enabled.
  3. Under Domain, change the 'Field Type' to boolean (or anything except one2many).
  4. Go to the related model (e.g., Contacts), create a new record, and try to save.
  • Issue: An attribute-related error occurs on save due to the Domain field's incompatible type.
  File "/mnt/data/odoo-addons-dir/tracking_manager/models/models.py", line 52, in _tm_notify_owner
    data[owner._name][owner.id][owner_field_name].append(
AttributeError: 'int' object has no attribute '_name'

invalid-recordset-issue-demo-2

bizzappdev avatar Apr 21 '25 10:04 bizzappdev

Hi @Kev-Roche, @sebastienbeau, some modules you are maintaining are being modified, check this out!

OCA-git-bot avatar Apr 21 '25 10:04 OCA-git-bot

@pedrobaeza can we merge?

CRogos avatar Jun 10 '25 15:06 CRogos

What a great day to merge this nice PR. Let's do it! Prepared branch 18.0-ocabot-merge-pr-3267-by-pedrobaeza-bump-patch, awaiting test results.

OCA-git-bot avatar Jun 10 '25 15:06 OCA-git-bot

Congratulations, your PR was merged at d1bc314b51048cede25a117ec1df19aae035d6fa. Thanks a lot for contributing to OCA. ❤️

OCA-git-bot avatar Jun 10 '25 15:06 OCA-git-bot