I make some user option and I want to read it from POS screen in version 18
this is my code
class PosSession(models.Model):
_inherit = 'pos.session'
def _load_pos_data(self, data):
res = super(PosSession, self)._load_pos_data(data)
res['hide_product_information'] = self.env.user.hide_product_information
return res
and I want to read it from JavaScript level from the product screen
with this code
patch(ProductScreen.prototype, {
async onProductInfoClick(product) {
// here
}
})
how can I do this
thanks it's working