Odoo 19 Cost Field Restrictions
Publicada el 2026-07-21
Descripción de la oferta
I need bullet-proof control over the standard_price field (the product “Cost” column) in our Odoo 19 Enterprise database. What has to happen • Any user who is not in the Administration Team group must see that field as read-only everywhere—form, list, kanban or any other view that exposes it. • Members of the Administration Team must keep full edit rights in the same screens. • XML view overrides should do the heavy lifting in the UI; record rules and/or access-control lists must back them up so that imports, mass edits, RPC calls or custom modules cannot sneak past the restriction. Current landscape We do run several custom modules that already extend product views and models, so the solution must slot in cleanly without breaking inherited views or python overrides. In a couple of those modules the cost still needs to be editable—but only for the authorised group—so your code should target each affected view explicitly rather than applying a blanket disable. What I expect from you 1. A small, installable custom module (or modification to an existing one) containing: – XML view inheritances that set standard_price to readonly for everyone except Administration Team. – Updated groups / ACL and record-rule definitions that mirror the same logic at model level. 2. Clear guidance on where to place the module and activate it. 3. A concise test plan proving that: – Normal users cannot edit the cost in UI or via import. – Administration Team users can edit it anywhere they currently do. – No other product fields or flows are harmed. Please keep the code clean, documented and fully compatible with Odoo 19 Enterprise conventions.
Skills
Fuente original: freelancer