Hello Ahmed,
Hope you're doing well.
To make the 'hide_product_information' field accessible on the Product screen, you can use the following approach:
class ResUsers(models.Model):
_inherit = 'res.users'
hide_product_information = fields.Boolean()
@api.model
def _load_pos_data_fields(self, config_id):
res = super()._load_pos_data_fields(config_id)
res += ['hide_product_information']
return res
After restarting the server, you can access the 'hide_product_information' field using:
this.pos.config.current_user_id.hide_product_information
Let me know if you need further clarification!
Thanks & Regards,
Baldev Bharvadiya