Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Restaurant

Entity: res.config.settings

Compute Method: _compute_pos_module_pos_restaurant

View 17.0
Inputs Method Outputs
  • pos_module_pos_restaurant
  • pos_config_id
  • pos_config_id.iface_printbill
  • pos_config_id.iface_splitbill
- for res_config in self:
-             if not res_config.pos_module_pos_restaurant:
-                 res_config.update({
-                     'pos_iface_printbill': False,
-                     'pos_iface_splitbill': False,
-                 })
-             else:
-                 res_config.update({
-                     'pos_iface_printbill': res_config.pos_config_id.iface_printbill,
-                     'pos_iface_splitbill': res_config.pos_config_id.iface_splitbill,
-                 })

Back to entity