summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2019-08-12 08:26:58 +0000
committerPierre Masereel <pim@odoo.com>2019-08-12 09:03:49 +0000
commit7c5b4cbc03f2e62439a8af1928ccdca5f38316ca (patch)
tree145adbbd32282f95535025426529759edd68a55b
parentf2477cf875b02a6e66b2cc6e4f309170141c058d (diff)
[IMP] point_of_sale: customer display computation
Since the POS customer display is not anymore a stored field, we don't need to keep this override of write and create. closes odoo/odoo#35638 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
-rw-r--r--addons/point_of_sale/models/pos_config.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/addons/point_of_sale/models/pos_config.py b/addons/point_of_sale/models/pos_config.py
index a62c8334ff0..9a1a84398b3 100644
--- a/addons/point_of_sale/models/pos_config.py
+++ b/addons/point_of_sale/models/pos_config.py
@@ -380,9 +380,6 @@ class PosConfig(models.Model):
@api.model
def create(self, values):
- if values.get('is_posbox') and values.get('iface_customer_facing_display'):
- if values.get('customer_facing_display_html') and not values['customer_facing_display_html'].strip():
- values['customer_facing_display_html'] = self._compute_default_customer_html()
IrSequence = self.env['ir.sequence'].sudo()
val = {
'name': _('POS Order %s') % values['name'],
@@ -408,11 +405,6 @@ class PosConfig(models.Model):
raise UserError(_('Unable to modify this PoS Configuration because there is an open PoS Session based on it.'))
result = super(PosConfig, self).write(vals)
- config_display = self.filtered(lambda c: c.is_posbox and c.iface_customer_facing_display and not (c.customer_facing_display_html or '').strip())
- if config_display:
- super(PosConfig, config_display).write({'customer_facing_display_html': self._compute_default_customer_html()})
-
-
self.sudo()._set_fiscal_position()
self.sudo()._check_modules_to_install()
self.sudo()._check_groups_implied()