diff --git a/addons/point_of_sale/models/pos_bill.py b/addons/point_of_sale/models/pos_bill.py index 0374a1c6dcd..6437be8e335 100644 --- a/addons/point_of_sale/models/pos_bill.py +++ b/addons/point_of_sale/models/pos_bill.py @@ -8,7 +8,7 @@ class Bill(models.Model): name = fields.Char("Name") value = fields.Float("Coin/Bill Value", required=True, digits=0) - pos_config_ids = fields.Many2many("pos.config") + pos_config_ids = fields.Many2many("pos.config", string="Point of Sales") @api.model def name_create(self, name): diff --git a/addons/pos_loyalty/models/loyalty_program.py b/addons/pos_loyalty/models/loyalty_program.py index 31c2accf274..fbef7720a1a 100644 --- a/addons/pos_loyalty/models/loyalty_program.py +++ b/addons/pos_loyalty/models/loyalty_program.py @@ -10,7 +10,7 @@ class LoyaltyProgram(models.Model): # NOTE: `pos_config_ids` satisfies an excpeptional use case: when no PoS is specified, the loyalty program is # applied to every PoS. You can access the loyalty programs of a PoS using _get_program_ids() of pos.config - pos_config_ids = fields.Many2many('pos.config', compute="_compute_pos_config_ids", store=True, readonly=False, help="Restrict publishing to those shops.") + pos_config_ids = fields.Many2many('pos.config', compute="_compute_pos_config_ids", store=True, readonly=False, string="Point of Sales", help="Restrict publishing to those shops.") pos_order_count = fields.Integer("PoS Order Count", compute='_compute_pos_order_count') pos_ok = fields.Boolean("Point of Sale", default=True) pos_report_print_id = fields.Many2one('ir.actions.report', string="Print Report", domain=[('model', '=', 'loyalty.card')], compute='_compute_pos_report_print_id', inverse='_inverse_pos_report_print_id', readonly=False,