mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pms: add condition in which force_update_origin is hidden
This commit is contained in:
committed by
Darío Lodeiros
parent
2cb36f1a50
commit
1d22a5c4e9
@@ -1654,6 +1654,7 @@ class PmsReservation(models.Model):
|
|||||||
if (
|
if (
|
||||||
record.sale_channel_origin_id != record.folio_id.sale_channel_origin_id
|
record.sale_channel_origin_id != record.folio_id.sale_channel_origin_id
|
||||||
and record.folio_id
|
and record.folio_id
|
||||||
|
and isinstance(self.id, int)
|
||||||
):
|
):
|
||||||
record.is_origin_channel_check_visible = True
|
record.is_origin_channel_check_visible = True
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user