[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) <qle@odoo.com> Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user