mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] 'channel.hotel.reservation' object has no attribute 'action_cancel'
This commit is contained in:
@@ -211,7 +211,7 @@ class HotelReservationImporter(Component):
|
|||||||
self._generate_partner_vals(book)
|
self._generate_partner_vals(book)
|
||||||
)
|
)
|
||||||
if is_cancellation:
|
if is_cancellation:
|
||||||
binding.with_context({
|
binding.odoo_id.with_context({
|
||||||
'connector_no_export': True}).action_cancel()
|
'connector_no_export': True}).action_cancel()
|
||||||
elif binding.state == 'cancelled':
|
elif binding.state == 'cancelled':
|
||||||
binding.with_context({
|
binding.with_context({
|
||||||
|
|||||||
Reference in New Issue
Block a user