Skip to content

Conversation

@fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Mar 10, 2025

Steps to reproduce

  • Install repair,web_studio
  • Go to repair
  • Open any record
  • Open studio
  • Switch to the misceallaneous tab
  • Click on the Operation Type field
  • Add the "Technical / Receive notifications in Odoo" group in "Allow visibility to groups"
TypeError: Cannot read properties of undefined (reading '0')
  at PropertiesField._getSeparatorFoldKey

Cause of the issue

Since the user doesn't have that group, the field picking_type_id will no be available.

repair_properties = fields.Properties(
    'Properties',
    definition='picking_type_id.repair_properties_definition'
)

That field is needed as it's the definition field for the repair_properties field.

Solution

When postprocessing views, we already add some fields that are needed by others. We can do the same for properties fields.

opw-4594796

Forward-Port-Of: #200197

Steps to reproduce
==================

- Install repair,web_studio
- Go to repair
- Open any record
- Open studio
- Switch to the misceallaneous tab
- Click on the Operation Type field
- Add the "Technical / Receive notifications in Odoo" group in
  "Allow visibility to groups"

```
TypeError: Cannot read properties of undefined (reading '0')
  at PropertiesField._getSeparatorFoldKey
```

Cause of the issue
==================

Since the user doesn't have that group, the field `picking_type_id` will no be available.

```py
repair_properties = fields.Properties(
    'Properties',
    definition='picking_type_id.repair_properties_definition'
)
```

That field is needed as it's the definition field for the
repair_properties field.

Solution
========

When postprocessing views, we already add some fields that are needed by
others. We can do the same for properties fields.

opw-4594796

X-original-commit: 4ce50ea
@robodoo
Copy link
Contributor

robodoo commented Mar 10, 2025

Pull request status dashboard

@fw-bot
Copy link
Contributor Author

fw-bot commented Mar 10, 2025

This PR targets saas-18.2 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Mar 10, 2025
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Mar 10, 2025
robodoo pushed a commit that referenced this pull request Mar 10, 2025
Steps to reproduce
==================

- Install repair,web_studio
- Go to repair
- Open any record
- Open studio
- Switch to the misceallaneous tab
- Click on the Operation Type field
- Add the "Technical / Receive notifications in Odoo" group in
  "Allow visibility to groups"

```
TypeError: Cannot read properties of undefined (reading '0')
  at PropertiesField._getSeparatorFoldKey
```

Cause of the issue
==================

Since the user doesn't have that group, the field `picking_type_id` will no be available.

```py
repair_properties = fields.Properties(
    'Properties',
    definition='picking_type_id.repair_properties_definition'
)
```

That field is needed as it's the definition field for the
repair_properties field.

Solution
========

When postprocessing views, we already add some fields that are needed by
others. We can do the same for properties fields.

opw-4594796

closes #200896

X-original-commit: 4ce50ea
Signed-off-by: Rémy Voet (ryv) <ryv@odoo.com>
Signed-off-by: Hubert Van De Walle <huvw@odoo.com>
@robodoo robodoo closed this Mar 10, 2025
@fw-bot fw-bot deleted the saas-18.2-18.0-opw-4594796-huvw-421365-fw branch March 17, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

forwardport This PR was created by @fw-bot OE the report is linked to a support ticket (opw-...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants