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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions stock_free_quantity/views/product_template_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
decoration-danger="free_qty < 0"
decoration-bf="1"
/>
<field name="type" invisible="1" />
</field>
</field>
</record>
Expand All @@ -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'.

</field>
</field>
</record>
Expand Down
Loading