Skip to content

Commit

Permalink
[FIX] price_security: make lst_pice readonly on product.product
Browse files Browse the repository at this point in the history
  • Loading branch information
vib-adhoc committed Feb 13, 2023
1 parent aca664b commit 8cb23bf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion price_security/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Price Security',
'version': "15.0.1.3.0",
'version': "15.0.1.4.0",
'category': 'Sales Management',
'author': 'ADHOC SA, Odoo Community Association (OCA)',
'website': 'http://www.adhoc.com.ar/',
Expand Down
13 changes: 13 additions & 0 deletions price_security/views/product_product_views.xml
Expand Up @@ -59,4 +59,17 @@
</field>
</record>

<!-- Solo ver: precio de venta: lst price en readonly -->
<record id="view_product_product_only_view_sale_price_form" model="ir.ui.view">
<field name="name">View Only sale price product form</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="groups_id" eval="[(6, 0, [ref('group_restrict_prices')])]"/>
<field name="arch" type="xml">
<field name="lst_price" position="attributes">
<attribute name="readonly">1</attribute>
</field>
</field>
</record>

</odoo>

0 comments on commit 8cb23bf

Please sign in to comment.