Wednesday, 31 December 2014

Odoo, see fields in XML but in grey



I want kow if it's possible to see the field with this value but I want this field can't be change or can't be included a value.


For example I want to display my product id of my application, the product_id is unique. I want to see my product_id but the field must be not change (grey).



my .py
_columns = {
# Product
'clicshopping_products_id': fields.integer('Product Id', size=5, help="Id product table of ClicShopping must be unique"),
}

and my xml
<field name="clicshopping_products_id"/>


Do you have an idea.


Thank you.


No comments:

Post a Comment