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

base_tier_validation: Missing field "need_validation" in form-embedded lists

Open houzefa-abba opened this issue 1 year ago • 2 comments

Hi here is an issue when a model plugged to base_tier_validation is displayed as a list in another form: when clicking a record in such a list, the view crashes:

Error: Missing field string information for the field 'need_validation' from the 'res.partner' model

An easy way to test this is from a partner-contact runboat:

  • open contacts, switch to list view
  • select 2 contacts > Action > Merge (standard Odoo feature)
  • in the merge wizard, click on a partner

➔ Screenshot: Screenshot at 2024-02-14 17-39-21

This isn't specific to that model nor to that wizard; I can also reproduce from a sale-workflow runboat in a more convoluted way:

  • create a quotation, sell a product tracked via serial number (eg "Drawer")
  • open that serial number (lot) form within Inventory
  • edit view to remove invisibility condition on the sale_order_ids field
  • click on a sales order

➔ Screenshot: Screenshot at 2024-02-14 17-40-19

houzefa-abba avatar Feb 14 '24 16:02 houzefa-abba