From b98e946aeae04dba833ec6f27d0368c05f040d9d Mon Sep 17 00:00:00 2001 From: "Jacky (trj)" Date: Tue, 6 Apr 2021 12:08:51 +0000 Subject: [PATCH] [FIX] point_of_sale: added `copy=False` in `uuid` of `pos_config` uuid should be unique even after copying closes odoo/odoo#71247 X-original-commit: 5ea1d31df9041ca7b25fbea6178e798e62bebca0 Related: odoo/enterprise#18520 Signed-off-by: Quentin Lejeune (qle) Signed-off-by: pimodoo --- addons/point_of_sale/models/pos_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/models/pos_config.py b/addons/point_of_sale/models/pos_config.py index f925942d50b..7491fc978e4 100644 --- a/addons/point_of_sale/models/pos_config.py +++ b/addons/point_of_sale/models/pos_config.py @@ -150,7 +150,7 @@ class PosConfig(models.Model): proxy_ip = fields.Char(string='IP Address', size=45, help='The hostname or ip address of the hardware proxy, Will be autodetected if left empty.') active = fields.Boolean(default=True) - uuid = fields.Char(readonly=True, default=lambda self: str(uuid4()), + uuid = fields.Char(readonly=True, default=lambda self: str(uuid4()), copy=False, help='A globally unique identifier for this pos configuration, used to prevent conflicts in client-generated data.') sequence_id = fields.Many2one('ir.sequence', string='Order IDs Sequence', readonly=True, help="This sequence is automatically created by Odoo but you can change it "