mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[UPD] Checkin action in popover
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user