diff options
| author | Jacky (trj) <trj@odoo.com> | 2021-04-06 12:08:51 +0000 |
|---|---|---|
| committer | Jacky (trj) <trj@odoo.com> | 2021-04-08 12:41:56 +0000 |
| commit | 5ea1d31df9041ca7b25fbea6178e798e62bebca0 (patch) | |
| tree | 67c0d298fa8b3361a723bee37b37d5d22d5a4ba7 /addons/point_of_sale/models | |
| parent | 455f49fe74611849ee1ff6addc875352d1b6c386 (diff) | |
[FIX] point_of_sale: added `copy=False` in `uuid` of `pos_config`
uuid should be unique even after copying
closes odoo/odoo#65148
Related: odoo/enterprise#15996
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
Diffstat (limited to 'addons/point_of_sale/models')
| -rw-r--r-- | addons/point_of_sale/models/pos_config.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/point_of_sale/models/pos_config.py b/addons/point_of_sale/models/pos_config.py index 5bed690d113..b7deb93ec19 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 " |
