Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[17][FIX]stock_free_quantity: type in views #30

Open
wants to merge 1 commit into
base: 17.0
Choose a base branch
from

Conversation

mav-adhoc
Copy link

There was an error accessing to these views because the field 'type' was not inside the views.

@@ -2,7 +2,7 @@

{
"name": "Stock Free Quantity",
"version": "17.0.1.0.0",
"version": "17.0.1.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mav-adhoc Don't update this if you don't have migration scripts

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@rousseldenis rousseldenis added enhancement New feature or request needs review labels Jan 21, 2025
@rousseldenis rousseldenis added this to the 17.0 milestone Jan 21, 2025
@@ -77,6 +78,7 @@
decoration-warning="free_qty == 0"
decoration-bf="1"
/>
<field name="type" invisible="1" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO, this is not correct as it is defined in inherited view.

See : product_product_tree_view

And particularily : https://github.com/odoo/odoo/blob/17.0/addons/product/views/product_views.xml#L361

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently the error exists due to a view of an OCA module (stock_free_quantity), which gives the error because it says that the 'type' field does not have permissions for 'portal sale distributor'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants