[UPD] Checkin action in popover

This commit is contained in:
Pablo
2019-01-30 18:22:00 +01:00
parent 7f797761ca
commit e0d49034cc

View File

@@ -458,10 +458,19 @@ var PMSCalendarController = AbstractController.extend({
_destroy_and_clear_popover_mark();
var x = self._rpc({
model: 'hotel.reservation',
method: '',
method: 'action_checks',
args: [ev.data.reservation_id],
}).then(function (result){
return self.do_action(result);
return self.do_action({
name: result.name,
view_type: result.view_type,
view_mode: result.view_mode,
type: result.type,
res_model: result.res_model,
views: [[false, 'form']],
domain: result.domain,
target: result.target,
});
});
});
$reservationPopover.data('bs.popover').tip().find(".btn_popover_open_invoice").on('click',