Skip to content
Snippets Groups Projects
Commit 94f18c37 authored by Jacky (trj)'s avatar Jacky (trj)
Browse files

[FIX] point_of_sale: added `copy=False` in `uuid` of `pos_config`


uuid should be unique even after copying

closes odoo/odoo#65319

Related: odoo/enterprise#16052
Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
parent 11ae04ec
Branches
Tags
No related merge requests found
......@@ -152,7 +152,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 "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment