mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] pms: set possible_existing_customer_ids to false
When creating a new folio from the interface, odoo fails to assign possible_existing_customer_ids to the record. Setting it to False for the cas when there are no partner_name nor possible_customer fixes the issue.
This commit is contained in:
committed by
Darío Lodeiros
parent
4aa8814410
commit
c3ccc321b0
@@ -4,7 +4,7 @@ from freezegun import freeze_time
|
||||
|
||||
from odoo import fields
|
||||
from odoo.exceptions import ValidationError
|
||||
|
||||
from odoo.tests import Form
|
||||
from .common import TestPms
|
||||
|
||||
|
||||
@@ -1537,3 +1537,7 @@ class TestPmsFolio(TestPms):
|
||||
"sale_channel_origin_id of reservations that coincided "
|
||||
"with sale_channel_origin_id of folio de should be updated",
|
||||
)
|
||||
|
||||
def test_pms_folio_form_creation(self):
|
||||
folio_form = Form(self.env["pms.folio"])
|
||||
self.assertFalse(folio_form.possible_existing_customer_ids)
|
||||
|
||||
Reference in New Issue
Block a user