mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] pos_pms_link: README && model domain
This commit is contained in:
32
pos_pms_link/README.rst
Normal file
32
pos_pms_link/README.rst
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
POS PMS LINK
|
||||||
|
=======================
|
||||||
|
|
||||||
|
**Table of contents**
|
||||||
|
|
||||||
|
.. contents::
|
||||||
|
:local:
|
||||||
|
|
||||||
|
POS PMS LINK
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
Settings
|
||||||
|
--------
|
||||||
|
|
||||||
|
- PMS Service product needs to be avaible in pos (available_in_pos = True) to add it from pms.service.line.
|
||||||
|
- On pos.config you can mark pay_on_reservation = True to be able to pay with reservations. After that select a pos.payment.method that will be used after selecting the reservation.
|
||||||
|
|
||||||
|
|
||||||
|
Add reservation services to pos.order
|
||||||
|
-------------------------------------
|
||||||
|
|
||||||
|
- While on a pos.order click on the 'Reservation' button. A modal will open, select the desired reservation and the lines will be added as pos.order.lines.
|
||||||
|
- Only the lines of the service with the current date will be added.
|
||||||
|
- This will only add the quantity of the lines that is not already linked to another pos.order.line.
|
||||||
|
|
||||||
|
Pay pos.order on pms.reservation
|
||||||
|
--------------------------------
|
||||||
|
|
||||||
|
- if pay_on_reservation is active on pos.config, the payment screen will show the payment method: 'Reservation'.
|
||||||
|
- Click on it and the reservation modal will open, select the resired reservation, the pos.order will be validated and you will be shown the bill printing screen.
|
||||||
|
- This will add the payment method selected in the pos.config.
|
||||||
|
- pos.order.lines will be added as pms.service.lines in the reservation.
|
||||||
@@ -277,8 +277,7 @@ odoo.define('pos_pms_link.models', function (require) {
|
|||||||
model: 'pms.reservation',
|
model: 'pms.reservation',
|
||||||
fields: ['name', 'id', 'state', 'service_ids', 'partner_name', 'adults', 'children'],
|
fields: ['name', 'id', 'state', 'service_ids', 'partner_name', 'adults', 'children'],
|
||||||
domain: function(self){
|
domain: function(self){
|
||||||
/* return [['state', '=', 'onboard']]; */
|
return [['state', '=', 'onboard']];
|
||||||
return [];
|
|
||||||
},
|
},
|
||||||
loaded: function(self, reservations) {
|
loaded: function(self, reservations) {
|
||||||
self.reservations = reservations;
|
self.reservations = reservations;
|
||||||
|
|||||||
Reference in New Issue
Block a user