diff --git a/addons/point_of_sale/models/pos_config.py b/addons/point_of_sale/models/pos_config.py index 8fd60d0f66288..bb550afe547b5 100644 --- a/addons/point_of_sale/models/pos_config.py +++ b/addons/point_of_sale/models/pos_config.py @@ -94,8 +94,9 @@ def _get_group_pos_manager(self): def _get_group_pos_user(self): return self.env.ref('point_of_sale.group_pos_user') - def _compute_default_customer_html(self): - return self.env['ir.qweb'].render('point_of_sale.customer_facing_display_html') + def _compute_customer_html(self): + for config in self: + config.customer_facing_display_html = self.env['ir.qweb'].render('point_of_sale.customer_facing_display_html') name = fields.Char(string='Point of Sale', index=True, required=True, help="An internal identification of the point of sale.") is_installed_account_accountant = fields.Boolean(string="Is the Full Accounting Installed", @@ -188,7 +189,7 @@ def _compute_default_customer_html(self): fiscal_position_ids = fields.Many2many('account.fiscal.position', string='Fiscal Positions', help='This is useful for restaurants with onsite and take-away services that imply specific tax rates.') default_fiscal_position_id = fields.Many2one('account.fiscal.position', string='Default Fiscal Position') default_cashbox_id = fields.Many2one('account.bank.statement.cashbox', string='Default Balance') - customer_facing_display_html = fields.Html(string='Customer facing display content', translate=True, default=_compute_default_customer_html) + customer_facing_display_html = fields.Html(string='Customer facing display content', translate=True, compute=_compute_customer_html) use_pricelist = fields.Boolean("Use a pricelist.") tax_regime = fields.Boolean("Tax Regime") tax_regime_selection = fields.Boolean("Tax Regime Selection value") diff --git a/addons/point_of_sale/static/src/css/customer_facing_display_editor_thumb.css b/addons/point_of_sale/static/src/css/customer_facing_display_editor_thumb.css deleted file mode 100644 index 0c43de6375915..0000000000000 --- a/addons/point_of_sale/static/src/css/customer_facing_display_editor_thumb.css +++ /dev/null @@ -1,3 +0,0 @@ -.oe_snippet.o_user_facing_display_snippet .oe_snippet_thumbnail_img{ - background-image: url("/point_of_sale/static/src/img/blocks/block_simple_text.png") -} diff --git a/addons/point_of_sale/views/point_of_sale.xml b/addons/point_of_sale/views/point_of_sale.xml index f3d509cc57ee0..272d592e3a6f3 100644 --- a/addons/point_of_sale/views/point_of_sale.xml +++ b/addons/point_of_sale/views/point_of_sale.xml @@ -23,12 +23,6 @@ - - diff --git a/addons/point_of_sale/views/pos_config_view.xml b/addons/point_of_sale/views/pos_config_view.xml index 68ee9c842c186..23809c269fffe 100644 --- a/addons/point_of_sale/views/pos_config_view.xml +++ b/addons/point_of_sale/views/pos_config_view.xml @@ -176,15 +176,6 @@ -
Save this configuration to see and edit the customer display
-
-
- -
-
diff --git a/addons/point_of_sale/views/pos_templates.xml b/addons/point_of_sale/views/pos_templates.xml index a4050ebd3dcb5..bc555a2ab6dea 100644 --- a/addons/point_of_sale/views/pos_templates.xml +++ b/addons/point_of_sale/views/pos_templates.xml @@ -81,41 +81,4 @@ - -