Product Cost Security - Purchase
product_cost_security_purchase · OCA/product-attribute
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 19.0
Heuristic over the facts below, not an audit · How it's computed
Description
This module makes the product forms of the Purchase app work together with
product_cost_security.
Without it, users without the Product costs permission cannot open a product or a product variant when Purchase is installed, because the vendor price lines use the product cost in their context.
The default unit price of a new vendor line is still the product cost, but only for users who are allowed to see that cost. Other users get 0, as for any other new vendor line.
The module is installed automatically when both product_cost_security and
purchase are installed.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 2
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_product_product_supplier_inherit |
product.product | Inherits purchase.view_product_product_supplier_inherit | ||
view_product_supplier_inherit |
product.template | Inherits purchase.view_product_supplier_inherit |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (1)-
default_get(self, fields)@api.model