Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] [14.0] [IMP] PMS API REST #51

Merged
merged 601 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
601 commits
Select commit Hold shift + click to select a range
3acf627
[RFC]pms_apie_rest: return folio transactions
DarioLodeiros Feb 4, 2023
36c5c9b
[IMP]pms_api_rest: ignore overbooking reservations in calendar
DarioLodeiros Feb 4, 2023
b907c61
[IMP]pms_api_rest: compare float field values changes with round
DarioLodeiros Feb 5, 2023
56fb8b5
[IMP]pms_api_rest: improvement search by document partners
DarioLodeiros Feb 5, 2023
cb20473
[FIX]pms_api_rest: fix filter ield pms_api_transaction_type
DarioLodeiros Feb 6, 2023
8c6fc25
[IMP]pms_api_rest: added GET service for reservation messages
braisab Feb 7, 2023
1c18f64
[IMP]pms_api_rest: get_folio_reservation_messages reformated to get f…
braisab Feb 9, 2023
b615690
[IMP] pms_api_rest: add get service for invoices
saralb9 Feb 13, 2023
d1940d0
[IMP] pms_api_rest: add filters in invoices list
saralb9 Feb 16, 2023
02d58fb
[IMP] pms_api_rest: add amount total in invoices service
saralb9 Feb 23, 2023
88cb47a
[IMP] pms_api_rest: change domain and filter in get invoices and add …
saralb9 Mar 6, 2023
3ca58f3
[FIX]pms_api_rest: fix import odoo.odoo
DarioLodeiros Mar 6, 2023
5378ddb
[IMP] pms_api_rest: add property on domain in get_invoices
saralb9 Mar 8, 2023
138c1b6
[IMP]pms_api_rest: use active_test context to avoid get archived rooms
DarioLodeiros Mar 21, 2023
f005eb3
[IMP]pms_api_rest: use author name first (mail if not name) in messag…
DarioLodeiros Mar 21, 2023
3261f63
[IMP] pms_api_rest: add language in folio services
saralb9 Mar 23, 2023
d070ee4
[IMP] pms_api_rest: add language in property services
saralb9 Mar 24, 2023
e778e2d
[IMP] pms_api_rest: add language in folio patch
saralb9 Mar 27, 2023
d5cbd63
[ADD]pms_api_rest: avails service and datamodel
DarioLodeiros Dec 24, 2022
7a85788
[FIX] pms-api_rest: add avail datamodel & service to inits
miguelpadin Dec 30, 2022
ff891bf
[IMP] pms_api_rest: board service id @ service's service (datamodel &…
miguelpadin Jan 11, 2023
2ee660e
[IMP] pms_api_rest: children 0 if None @ folio & reservation service
miguelpadin Jan 11, 2023
4a71d7d
[IMP] pms-api_rest: update checkin & checkout @ update reservation se…
miguelpadin Jan 19, 2023
9497582
[FIX] pms-api_rest: fix precommit
miguelpadin Jan 19, 2023
c49d46b
[WIP] pms-api-rest: wip PATCH/POST services problem
miguelpadin Mar 14, 2023
0fe04db
[IMP] pms-api-rest: skip generate bs lines
miguelpadin Apr 3, 2023
3ce4016
[IMP]pms_api_rest: user validator back config in login service
DarioLodeiros Apr 5, 2023
a78a893
[IMP]pms_api_rest: add context avoid_availability_check in swap reser…
DarioLodeiros Apr 6, 2023
191245b
[DEL] empty file init in root
DarioLodeiros Apr 6, 2023
afdb0e6
[IMP]pms_api_rest: swap reservations calendar workflow
DarioLodeiros Apr 19, 2023
c320645
[IMP]pms_api_rest: force compute default board service un POST reserv…
DarioLodeiros May 19, 2023
3ab23ca
[IMP]pms_api_rest: Set channel manager api servicer base
DarioLodeiros Jun 19, 2023
052b694
[IMP]pms_api_rest: Prepare board_servide folio post to external clients
DarioLodeiros Jun 26, 2023
61ff74b
[IMP]pms_api_rest: added reselling field in reservation line datamode…
braisab Apr 19, 2023
9f733bd
[IMP]pms_api_rest: Avoid set number invoice updated draft invoices
DarioLodeiros Jul 2, 2023
6d934e6
[WIP]pms_api_rest: external clients API
DarioLodeiros Jul 11, 2023
091387b
[IMP] pms_api_rest: number of unassigned reserv. service notification
miguelpadin Apr 18, 2023
4c38656
[IMP]pms_api_rest: added firstCheckin and createDate fields in folio …
braisab Apr 25, 2023
4980215
[IMP]pms_api_rest: added defaultCode field in room type class datamodel
braisab May 10, 2023
66cb8b6
[IMP] pms_api_rest: add fields in get_folios
saralb9 Apr 27, 2023
4cb7bf4
[IMP]pms-api-rest: filter folio by state and limit/offset
braisab Apr 27, 2023
8a6b0a3
[IMP] pms_api_rest: add fields in reservations on get_folios
saralb9 May 24, 2023
f823802
[IMP] pms_api_rest: filter out reservations in get_folios
saralb9 May 25, 2023
a733822
[IMP] pms_api_rest: add fields in get_folio_reservations
saralb9 May 29, 2023
cb83a8d
[IMP]pms_api_rest: added to_assign in fetch_folio_reservations
braisab May 29, 2023
392322e
[IMP]pms-api_rest: added nights and numServices to reservation datamodel
braisab May 29, 2023
64e4692
[IMP]pms_api_rest: added user services and datamodel fields
braisab May 12, 2023
d3b19e8
[REF]pms_api_rest: is_new_interface_app_user change in write_user
braisab May 15, 2023
49029c0
[IMP]pms_api_rest: added service to change userr password
braisab May 16, 2023
160ff21
[IMP]pms_api_rest: added services to reset user password
braisab May 22, 2023
c1f8d37
[IMP]pms-api-rest: url field changed to url param in send reset mail …
braisab May 23, 2023
8ae01a6
[IMP]pms_api_rest: added mail template to reset paswword
braisab May 29, 2023
892dc7b
[IMP] pms_api_rest: amenities in room name
miguelpadin May 29, 2023
8f799fd
[FIX] Import odoo.odoo pms_user_service
DarioLodeiros May 31, 2023
1349288
[FIX] pms-api-rest: fix login service else none when no email
miguelpadin May 31, 2023
31f3591
[IMP] pms_api_rest: add sale channel icon in datamodel and service
saralb9 Jun 1, 2023
3088cd8
[IMP] pms_api_rest: add filter in get_folios
saralb9 Jun 7, 2023
1d6bbe5
[IMP][DEMO] pms_api_rest: add fields in reservation datamodel
saralb9 Jun 19, 2023
412daf4
[IMP][DEMO] pms_api_rest: add fields in reservation datamodel and rmv…
saralb9 Jun 19, 2023
4dda1c0
[REF]pms_api_rest: changed search domain operator like to ilike
braisab Jun 21, 2023
5311474
[IMP]pms_api_rest: service calendar performance improvement
DarioLodeiros Jun 11, 2023
ddfb02e
[IMP] pms-api-rest: improvement performance planning
miguelpadin Jun 15, 2023
615fdd4
[IMP] pms-api-rest: old & new planning service
miguelpadin Jun 19, 2023
cf0656d
[imp] pms-api-rest: add fields capacity & room_type_class_id to plann…
miguelpadin Jun 19, 2023
fb0e8f6
[FIX] pms-api-rest: fix field folio pending amount @ planning service
miguelpadin Jun 20, 2023
6186f70
[IMP] pms-api-rest: add planning calendar headers service
miguelpadin Jun 26, 2023
4846f68
[FIX] ms-api-rest: add default code field to amenity service payload
miguelpadin Jun 26, 2023
5106d78
[FIX] pms-api-rest: round daily billing headers
miguelpadin Jun 28, 2023
b6df063
[FIX] pms-api-rest: old calendar reselling False if is None
miguelpadin Jun 28, 2023
5728758
[IMP] pms-api-rest: add restrictions to calendar service
miguelpadin Jul 11, 2023
78cbf04
[IMP]pms-api-rest: added isReselling field to reservation datamodel
braisab Jul 12, 2023
5e73982
[IMP] pms-api-rest: order by sequence and filter by active @ calendar…
miguelpadin Jul 13, 2023
14d3b4a
[FIX] pms-pwa: add amenity in room name as a field in calendar service
miguelpadin Jul 13, 2023
f4aa53f
[FIX] pms-pwa: change field name by default code @ room service in a…
miguelpadin Jul 13, 2023
e2df55c
[IMP] pms-api-rest: param for daily pricelists-services & new plannig…
miguelpadin Jul 19, 2023
256733e
[IMP] pms-api-rest: add free rooms by type @ calendar pricelist and r…
miguelpadin Jul 21, 2023
c09fbce
[REF] pms-api-rest: maxAvail -> maxAvailability @ calendar service
miguelpadin Jul 24, 2023
f4f6cef
[IMP]pms_api_rest: keep line data in post reservation with reservatio…
DarioLodeiros Jul 25, 2023
d68328c
[FIX] pms-api-rest: fix param property in sql pricelist calendar & fi…
miguelpadin Jul 26, 2023
08700bf
[FIX] pms-api-rest: remove unnecessary query from subquery for free r…
miguelpadin Jul 26, 2023
9197d79
[FIX] pms-api-rest: fix order by sequence @ calendar pricelist items
miguelpadin Jul 28, 2023
67471b0
[FIX]14.0-pms_api_rest: format date in refund service
braisab Jul 28, 2023
0ba575a
WIP
miguelpadin Aug 7, 2023
dcf6be0
[IMP] pms-api-rest: add min price to room type service
miguelpadin Aug 8, 2023
0ce3319
[IMP]pms_api_rest: added get address by display_name service
braisab Jul 20, 2023
d768d48
[FIX]pms_api_rest: get invoice with multi folios in list
DarioLodeiros Aug 13, 2023
8985a64
[ADD]pms_api_rest: POST/PATCH folio payments
DarioLodeiros Aug 13, 2023
9e816cb
[ADD]pms_api_rest: add otas parameter in get agency service
DarioLodeiros Aug 14, 2023
88e6f5d
[ADD]pms_api_rest: add transaction in folio POST/PATCH
DarioLodeiros Aug 14, 2023
3693b1d
[IMP]14.0-pms_api_rest: added residence state name in checkin partner…
braisab Sep 15, 2023
fcefec5
[IMP]pms_api_rest: added check vat service and ref get partner by doc…
braisab Sep 21, 2023
ee3cffc
[IMP]pms_api_rest: new field code in document types datamodel
braisab Sep 21, 2023
ce5a1ae
[IMP]pms_api_rest: added user language to countries and segmentations
braisab Sep 21, 2023
d1a8010
[IMP]pms_api_rest: if segmentationId equal to 0 it is deleted
braisab Sep 21, 2023
2c9429c
[FIX] pms-api-rest: fix service av. plan rules & pricelist items with…
miguelpadin Aug 17, 2023
a1a15fe
FIX] pms-api-rest: fix post->patch @ service batch changes in av. pla…
miguelpadin Aug 18, 2023
ec7fd23
[IMP] pms-api-rest: demo data for property image hotel, icon room typ…
miguelpadin Sep 6, 2023
9895ad9
[IMP] pms-api-rest: add authorImageUrl to folio % reservation message…
miguelpadin Sep 7, 2023
8b51454
[REF] pms-api-rest: pms_api_rest_utils manage images from field to url
miguelpadin Sep 8, 2023
0e7f47f
[FIX] pms-api-rest: fix issues @ endpoint routers for create massive …
miguelpadin Oct 9, 2023
cc0c0dc
[ADD]pms_api_rest: cash flow by turns
DarioLodeiros Oct 16, 2023
cb2a5ff
[ADD] pms_api_rest: add dashboard service
saralb9 Jul 26, 2023
6fd82a5
[IMP] pms_api_rest: get_reservations in pms_dashboard_service
saralb9 Sep 1, 2023
6c14973
[IMP] pms_api_rest: get_pending_checkin_reservations & get_pending_ch…
saralb9 Sep 5, 2023
b538b65
[IMP] pms_api_rest: improve dashboard_service with sql statements
saralb9 Sep 6, 2023
ef3bcc5
[FIX] pms_api_rest: fix parameters in occupandy sql statement and nam…
saralb9 Sep 7, 2023
011415a
[IMP] pms-api-rest: add userFirstName to login service
miguelpadin Sep 11, 2023
a2529f2
[IMP] pms_api_rest: change input_param to receive only one date and a…
saralb9 Sep 20, 2023
7572dab
[IMP] pms-api-rest: service dashboard state rooms (free/out/oc)
miguelpadin Sep 27, 2023
4ececc7
[FIX] pms-api-rest: change endpoint state-rooms & fix naming firstnam…
miguelpadin Sep 28, 2023
c81d267
[IMP] pms-api-rest: dashboard services for graphs
miguelpadin Oct 9, 2023
4d91b32
[ADD] pms_api_rest: add rss_post service, datamodel and add feed_rss …
saralb9 Oct 17, 2023
e68841e
[FIX]pms_api_rest: message dates in users timezone instead of UTC
braisab Oct 20, 2023
ed87b40
[IMP] pms_api_rest: fix login service when user hasn´t firstname
saralb9 Oct 18, 2023
1914621
[IMP] pms_api_rest: fix last folios service when there aren´t reserva…
saralb9 Oct 18, 2023
334d3f4
[IMP]pms_api_rest: reset-password public auth PATCH by POST
DarioLodeiros Oct 26, 2023
375f67d
[IMP] pms-api-rest: fix property, feeds, folio & dashboard services 4…
miguelpadin Nov 7, 2023
2979491
[IMP]14.0-pms_api_rest: domain for transaction type filters
braisab Oct 24, 2023
857572f
[IMP]pms_api_rest: changes in partners, partner invoices and partner …
braisab Oct 10, 2023
8c51c83
[IMP]pms_api_rest: added partners housed now, last week and last mont…
braisab Oct 13, 2023
bc5b75f
[FIX]14.0-pms_api_rest: fix pre-commit
braisab Dec 19, 2023
4e4862d
[FIX] pms-api-rest: swap createHour -> createDate @ folio short info …
miguelpadin Dec 20, 2023
4419f6f
[FIX] pms-api-rest: createHour field @ PmsFolioShortInfo (datamodel)
miguelpadin Dec 22, 2023
fe597fe
[FIX]14.0-pms_api_rest: write reservation_vals in reservation service…
braisab Dec 22, 2023
3a1eb2a
[FIX]pms_api_rest: model product.template
DarioLodeiros Dec 23, 2023
29d91d5
[FIX] pms_api_rest: filter last received reservations 'normal' - dash…
miguelpadin Jan 8, 2024
f1d3756
[IMP] pms-api-rest: add image url in user service
miguelpadin Jan 8, 2024
689b63f
[IMP]pms_api_rest: compute boardservice default included in pricelist
DarioLodeiros Jan 23, 2024
0fb7255
[IMP]pms_api_rest: avoid send innecesary pwd param in tokens payload
DarioLodeiros Jan 26, 2024
990afc1
[IMP] pms-api-rest: add field 'createdBy' to folio & reservation service
miguelpadin Feb 6, 2024
43dcfce
[IMP]14.0-pms_api_rest: added new folio filters in get_folios
braisab Feb 5, 2024
21e997c
[IMP] pms-api-rest: adapt services & datamodels (folio, reservation, …
miguelpadin Jan 24, 2024
79a1b95
[IMP]14.0-pms_api_rest: segmentations are filtered by the is_used_in_…
braisab Dec 26, 2023
b55edb2
[IMP] pms_api_rest: add reservation wizard state service
saralb9 Oct 30, 2023
abcbc5e
[IMP] pms_api_rest: wizard state service done
saralb9 Nov 10, 2023
7e982a4
[IMP]14.0-pms_api_rest: added blocked field in reservation datamodel
braisab Feb 2, 2024
eb674f3
[ADD]14.0-pms_ocr_regula: module to connect the OCR regula with the pms
braisab Dec 28, 2023
956674e
[IMP]14.0-pms_api_rest: added document fields to get_partners service
braisab Feb 1, 2024
5d9fa18
[FIX] pms-api-rest: list folios including out now
miguelpadin Feb 15, 2024
2e24acf
[IMP] pms-api-rest: add reservation type to folio/x/reservations service
miguelpadin Feb 15, 2024
1aa2237
[IMP]pms_api_rest: added document support number to get_partners service
braisab Feb 14, 2024
d543317
[FIX] pms-api-rest: fix dashboard state rooms service
miguelpadin Feb 22, 2024
6d1c5ea
[IMP]pms_api_rest: PUT external app search folio by ilike external_re…
DarioLodeiros Feb 21, 2024
80f7173
[IMP]pms_api_rest: force update avail in channel reservations changes
DarioLodeiros Jan 1, 2024
ee0b6aa
[ADD]pms_api_rest: OTA API configurations
DarioLodeiros Dec 31, 2023
3f6305a
[IMP]pms_api_rest: Improvement in the handling of requests from exter…
DarioLodeiros Feb 25, 2024
1664a5e
[IMP]pms_api_rest: Add property push methods to pms api clients
DarioLodeiros Feb 25, 2024
0c8615a
[ADD]pms_api_rest: PMS API Client conexion data
DarioLodeiros Feb 26, 2024
e1074ee
[ADD]pms_api_rest: logs api client model
DarioLodeiros Feb 27, 2024
2f2e961
[IMP]pms_api_rest: sql report service sql update
DarioLodeiros Mar 2, 2024
8a5e357
[ADD]pms_api_rest: sale_channel_service isOnLine search param
DarioLodeiros Mar 2, 2024
3baaa30
[IMP]pms_api_rest: Rss post imageUrl in service
DarioLodeiros Mar 2, 2024
90ef4d7
[IMP]pms_api_rest: Improvements pms api logs and price night compute …
DarioLodeiros Mar 2, 2024
df802d1
[FIX] pms-api-rest: fix data/sql_reports.xml (<= - &lt;=) & fix Pasca…
miguelpadin Mar 7, 2024
a65bde7
[IMP]pms_api_rest: Improvemente Api rest logs and PUT
DarioLodeiros Mar 16, 2024
ba57ac3
[IMP]pms_api_rest: Imrpovement invoice management, block date and blo…
DarioLodeiros Mar 16, 2024
59d711f
[FIX]pms_api_rest: attribute inherit in pms.folio
DarioLodeiros Mar 17, 2024
95a45d5
[IMP]14.0-pms_api_rest: added undoOnboard in reservation datamodel
braisab Mar 27, 2024
410e454
[IMP]14.0-pms_api_rest: origin input data field in checkin partner modal
braisab Mar 22, 2024
f390723
[IMP]14.0-pms_api_rest: document country field added to checkin partn…
braisab Mar 27, 2024
0534623
[FIX]pms_api_rest: partner service date format parameters
DarioLodeiros Apr 13, 2024
4a041cd
[ADD]pms_api_rest: service traveller report
DarioLodeiros Apr 13, 2024
3f68b8c
[IMP]14.0-pms_api_rest: documentCountryId field in partner datamodel
braisab Apr 15, 2024
5c0e245
[IMP]pms_api_rest: Imrpovement API logs, PUT folio service and action…
DarioLodeiros Apr 17, 2024
7f84211
[IMP]pms_api_rest: improvement patch invoice service
DarioLodeiros Apr 17, 2024
9e219df
[IMP]pms_api_rest: improvement login token expiration
DarioLodeiros Apr 17, 2024
34f3822
[IMP]pms_api_rest: improve GET partner documment mapping
DarioLodeiros Apr 18, 2024
2aa0a90
[IMP]pms_api_rest: improve and fixe in api logs and transactions logic
DarioLodeiros Apr 25, 2024
fc44104
[IMP]pms_api_rest: improvemente compute api transactions and for api …
DarioLodeiros May 12, 2024
2281f0c
[FIX]pms_api_rest: fix compute amount transactions in normalize_payme…
DarioLodeiros May 13, 2024
1228b1f
[FIX]pms_api_rest: fix invoice_ids fields to move_ids
DarioLodeiros May 14, 2024
22ca563
[IMP]pms_api_rest: added filter by state overbooking in fetch folios
braisab May 2, 2024
469df98
[IMP]pms_api_rest: force_overbooking in PUT external request
DarioLodeiros May 16, 2024
88b2718
[IMP]pms_api_rest: fix action_cancel reservation and service name none
DarioLodeiros May 22, 2024
0f4b882
[IMP]pms_api_rest: added signature field in checkin partner datamodel…
braisab May 24, 2024
1555504
[IMP]14.0-pms_api_rest: service OCR supplier generic
braisab Apr 11, 2024
ec90da3
[ADD]pms_ocr_klippa: ADD klippa OCR basic flow
DarioLodeiros Apr 22, 2024
37034ed
[ADD] nominatim address calls
DarioLodeiros May 4, 2024
ef50b12
[IMP]pms_ocr_klippa: improvement address ocr heuristics
DarioLodeiros May 12, 2024
d9156ed
[IMP]pms_ocr_klippa:change location by requests consult
DarioLodeiros May 13, 2024
f9f5cdb
[FIX] pms-api-rest-ocr: fix issue ocr
miguelpadin May 15, 2024
e56b454
[FIX] pms-api-rest-ocr: fix naming and method return
miguelpadin May 15, 2024
fbb60e3
[FIX] pms-api-rest-ocr: fix not overwriting origin input data when ch…
miguelpadin May 16, 2024
79852f4
[ADD]pms_ocr_klippa: Add log requests
DarioLodeiros May 16, 2024
daf57f6
[IMP]pms_ocr_klippa: improvement log info
DarioLodeiros May 16, 2024
d859c77
[IMP]pms_ocr_klippa: improvement mapped data and partial results
DarioLodeiros May 22, 2024
bd94e66
[FIX]pms_api_rest: remove duplicate stateName in property datamodel
braisab May 27, 2024
1933206
[IMP]pms_ocr_klippa: improve lastname and lastname2 heuristic
DarioLodeiros May 28, 2024
fb846ed
[FIX]pms_api_rest: document number check has been changed from docume…
braisab Jun 12, 2024
dde68cd
[FIX]pms_api_rest: send mail confirmed folio with changed body manual…
DarioLodeiros Jun 16, 2024
3fe0150
[IMP]pms_api_rest: autofix past dates to send api client info
DarioLodeiros Jun 16, 2024
dd07ac0
[IMP]pms_ocr_klippa: capture errors to system log
DarioLodeiros Jun 16, 2024
19da445
[ADD]pms_api_rest: take account commission type in OTAs reservation p…
DarioLodeiros Jun 24, 2024
6de43d6
[IMP]pms_api_rest: POST and PUT folio partnerRequests
DarioLodeiros Jun 27, 2024
d986352
[FIX]pms_ocr_klippa: improvement log errors and fix search partner
DarioLodeiros Jun 28, 2024
a7686b4
[FIX]pms_api_rest: added narration field in invoices GET
braisab Jun 14, 2024
0aa7264
[IMP]pms_api_rest: added fetch partner by vat number service
braisab May 20, 2024
102135d
[IMP]pms_api_rest: service to download ine report
braisab May 14, 2024
022a4ae
[IMP] pms-api-rest: add canDownloadIneReport to property datamodel
miguelpadin Jul 2, 2024
4a45cc0
[IMP]pms_api_rest: service to get checkin partners of a folio
braisab Jun 19, 2024
9a41b67
[FIX]pms_api_rest: Fix create folio without agency
DarioLodeiros Jul 2, 2024
8ef063a
[IMP]pms_api_rest: added invoice service to download and send invoice…
braisab May 30, 2024
1ddf00c
[IMP]pms_api_rest: mapped order fields in invoice and transaction ser…
braisab May 31, 2024
3afef11
[IMP]pms_api_rest: add createDate param on GET reservations&folios
DarioLodeiros Jul 3, 2024
874489d
[FIX]pms_api_rest: canDownloadIneReport get boolean
DarioLodeiros Jul 3, 2024
82baded
[IMP]pms_ocr_klippa: capture subtype documents
DarioLodeiros Jul 3, 2024
70e3d87
[FIX]pms_api_rest: datamodels errors with params attributes
DarioLodeiros Jul 25, 2024
188b6de
[FIX]pms_api_rest: wrong commission field in agency
DarioLodeiros Jul 25, 2024
8baaa9e
[FIX]pms_ocr_klippa: wrogn mapped fields checkin
DarioLodeiros Jul 25, 2024
bfd0ff8
[FIX]pms_api_rest: calendar line overbookings fix
DarioLodeiros Jul 25, 2024
837a4fa
[IMP]pms_api_rest: imp log api call with complete endpoint registration
DarioLodeiros Jul 25, 2024
8350e9c
[FIX]pms_api_rest: pms_reservation datamodel
DarioLodeiros Jul 31, 2024
58702c5
[IMP]pms_api_rest: Avoid POST in duplicated external folios -external…
DarioLodeiros Sep 2, 2024
b546d22
[IMP] pms-api-rest: get prices when the pricelist is restricted (sudo…
miguelpadin Aug 22, 2024
5730048
[FIX] pms-api-rest: fix access to archived or not allowed room types …
miguelpadin Aug 26, 2024
7a551e7
[ADD] pms-api-rest: new services for restricted board services, produ…
miguelpadin Aug 26, 2024
d8ddf1e
[FIX] ms-api-rest: same criteria for unassigned reservations in folio…
miguelpadin Aug 21, 2024
d9c6c6a
[IMP]pms_api_rest: added overnight_room field in reservation datamodel
braisab Jul 3, 2024
4553e11
[IMP]pms_api_rest: Restrict to external app the creation of external …
DarioLodeiros Sep 16, 2024
bf99cc9
[FIX] pms-api-rest: remove value 'normal' when not exteralReference f…
miguelpadin Sep 16, 2024
1937a36
[IMP]pms_api_rest: get pricelist by channel conf
DarioLodeiros Sep 24, 2024
572a240
[FIX]pms_api_rest: api set internal_comment in folio fix (if internal…
DarioLodeiros Oct 10, 2024
26833c3
[ADD]pms_api_rest: lastUpdateFrom param in folio and reservation GET
DarioLodeiros Oct 11, 2024
1a2b7e4
[WIP] pms-api-rest: wip precheckin
miguelpadin Jul 23, 2024
30bb574
[DEL] pms-api-rest: remove api_rest_id from precheckin
miguelpadin Aug 22, 2024
225ff33
[REF] pms-api-rest: remove unused imports
miguelpadin Sep 24, 2024
10d2a36
[IMP] pms-api-rest: new fields for under age guests
miguelpadin Sep 24, 2024
8268e84
[FIX] pms-api-rest: fix wrong partner id related saving under age gue…
miguelpadin Sep 24, 2024
0c68a4f
[FIX] pms-api-rest: add required fields (ses) to checkin partners ser…
miguelpadin Sep 25, 2024
9764d5d
[FIX] pms-api-rest: folio service adults with no names
miguelpadin Oct 1, 2024
3e7d641
[ADD] pms-api-rest: add options to origin_input_data field (pms_check…
miguelpadin Oct 10, 2024
518a689
[FIX] pms-api-rest: precheckin service checkin partner by doc number …
miguelpadin Oct 14, 2024
99fbc16
[FIX]pms_api_rest: add lastUpdateFrom param to PmsReservationSearchPa…
DarioLodeiros Oct 16, 2024
2cecc9b
[IMP]pms_api_rest: added folio access token to datamodel
braisab Oct 17, 2024
8969528
[IMP]pms_api_rest: Improvement manage board service lines
DarioLodeiros Aug 29, 2024
54df802
[IMP] pms-api-rest: complete requirements for managing board services…
miguelpadin Sep 10, 2024
7486b29
[REF] pms-api-rest: rename context var for avoid create board service…
miguelpadin Oct 16, 2024
8e8d9db
[IMP] ps-api-rest: fetch board service line prices
miguelpadin Oct 16, 2024
e491a5b
[FIX]pms_api_rest: autoreconcile payments with invoice with sudo to a…
DarioLodeiros Oct 16, 2024
40c966a
[IMP]pms_api_rest: Avoid use past dates in action_post with draft inv…
DarioLodeiros Oct 28, 2024
555e4e3
[IMP] pms_api_rest: children field has been added to calendar service
braisab Nov 8, 2024
9c9d6c4
[IMP] pms_api_rest: delete invoice service has been added
braisab Nov 6, 2024
8b7bda9
[FIX]pms_api_rest: added origin_input_data field to public checkin pa…
braisab Oct 31, 2024
a135b5e
[IMP]pms_api_rest: patch invoice take account isSimplifiedInvoice param
DarioLodeiros Nov 12, 2024
3a6774f
[IMP]pms_api_rest: added maxAmountSimplifiedInvoice in property and p…
braisab Jun 7, 2024
7406b77
[IMP]pms_api_rest: added partner name, email, phone and partnerId to …
braisab Jul 10, 2024
5e4ca94
[FIX] pms-api-rest: public service patch checkin partner search by do…
miguelpadin Dec 16, 2024
472ac70
[IMP]pms_ocr_klippa: Improve nominatim error proccess
DarioLodeiros Oct 31, 2024
9e493ec
[IMP]pms_ocr_klippa: Add log trace in nominatim log
DarioLodeiros Nov 4, 2024
c36a179
[FIX] pms-api-rest: fix relationship checkin partners
miguelpadin Jan 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions pms_api_rest/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
============
PMS API REST
============

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpms-lightgray.png?logo=github
:target: https://github.com/OCA/pms/tree/14.0/pms_housekeeping
:alt: OCA/pms
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/pms-14-0/pms-14-0-pms_housekeeping
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/293/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds an API REST feature to property management system (PMS).

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/pms/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/pms/issues/new?body=module:%20pms_housekeeping%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Commit [Sun]

Contributors
~~~~~~~~~~~~

* `Commit [Sun] <https://www.commitsun.com>`:

* Sara Lago
* Miguel Padín


Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/pms <https://github.com/OCA/pms/tree/14.0/pms_housekeeping>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions pms_api_rest/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from . import controllers
from . import datamodels
from . import services
from . import models
from . import http
39 changes: 39 additions & 0 deletions pms_api_rest/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "API REST PMS",
"author": "Commit [Sun], Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pms",
"category": "Generic Modules/Property Management System",
"version": "14.0.1.0.0",
"license": "AGPL-3",
"depends": [
"pms",
"base_rest",
"base_rest_datamodel",
"web",
"auth_signup",
"auth_jwt_login",
"base_location",
"l10n_es_aeat",
"sql_export_excel",
"feed_rss",
],
"external_dependencies": {
"python": ["jwt", "simplejson", "marshmallow", "jose"],
},
"data": [
"security/ir.model.access.csv",
"data/sql_reports.xml",
"data/auth_jwt_validator.xml",
"data/pms_app_reset_password_template.xml",
"data/cron_jobs.xml",
"views/pms_property_views.xml",
"views/res_users_views.xml",
"views/pms_room_type_class_views.xml",
"views/product_template_views.xml",
"views/pms_api_log_views.xml",
],
"demo": [
"demo/pms_api_rest_master_data.xml",
],
"installable": True,
}
1 change: 1 addition & 0 deletions pms_api_rest/controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import pms_rest
9 changes: 9 additions & 0 deletions pms_api_rest/controllers/pms_rest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from odoo.addons.base_rest.controllers import main


class BaseRestPrivateApiController(main.RestController):
_root_path = "/api/"
_collection_name = "pms.services"
_default_auth = "public"
_default_save_session = False
_default_cors = "*"
14 changes: 14 additions & 0 deletions pms_api_rest/data/auth_jwt_validator.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<odoo>
<record id="demo_validator" model="auth.jwt.validator">
<field name="name">api_pms</field>
<field name="audience">api_pms</field>
<field name="issuer">pms</field>
<field name="signature_type">secret</field>
<field name="secret_algorithm">HS256</field>
<field name="secret_key">pms_secret_key_example</field>
<field name="user_id_strategy">login</field>
<field name="static_user_id">1</field>
<field name="partner_id_strategy">email</field>
<field name="partner_id_required" eval="False" />
</record>
</odoo>
20 changes: 20 additions & 0 deletions pms_api_rest/data/cron_jobs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<record model="ir.cron" id="clean_log_pms_api_rest">
<field name="name">Clean Log PMS API REST</field>
<field name="interval_number">1</field>
<field name="user_id" ref="base.user_root" />
<field name="interval_type">days</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="state">code</field>
<field name="model_id" ref="model_pms_api_log" />
<field
name="nextcall"
eval="(DateTime.now() + timedelta(days=1)).strftime('%Y-%m-%d 06:00:00')"
/>
<field name="code">model.clean_log_data(offset=60)</field>
</record>

</odoo>
147 changes: 147 additions & 0 deletions pms_api_rest/data/pms_app_reset_password_template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="pms_reset_password_email" model="mail.template">
<field name="name">Pms Reset Password</field>
<field name="model_id" ref="base.model_res_users" />
<field name="subject">Restablecer Contraseña</field>
<field
name="email_from"
>"${object.company_id.name | safe}" &lt;${(object.company_id.email or user.email) | safe}&gt;</field>
<field name="email_to">${object.email_formatted | safe}</field>
<field name="body_html" type="html">
<table
border="0"
cellpadding="0"
cellspacing="0"
style=" font-family:Verdana, Arial,sans-serif; color: #454748; width: 100%; border-collapse:separate;"
><tr><td align="center">
<table
border="0"
cellpadding="0"
cellspacing="0"
width="590"
style="background-color: white; color: #454748; border-collapse:separate; font-family:Verdana, font-family:Verdana, Arial,sans-serif; box-shadow: rgb(0 0 0 / 24%) 0px 3px 8px; border-radius: 24px"
>
<tbody>
<!-- HEADER -->
<tr>
<td align="center" style="min-width: 590px;">
<table
border="0"
cellpadding="0"
cellspacing="0"
width="590"
height="100"
style="min-width: 590px; background-color: #4BB1E0; color:white; border-collapse:separate; border-radius: 24px 24px 0 0"
>
<tr>
<td valign="middle" align="middle">
<span style="font-size: 24px; font-weight: bold;">
ROOMDOO
</span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" style="min-width: 590px;">
<table
border="0"
cellpadding="0"
cellspacing="0"
width="590"
style="min-width: 590px; background-color: white; border-collapse:separate;padding: 24px 24px 0 24px; margin-bottom: 24px;"
>
<tr><td valign="middle">
<span style="font-size: 20px; font-weight: bold;">
${object.name}
</span>
</td><td valign="middle" align="right">
<img
src="/logo.png?company=${object.company_id.id}"
style="padding: 0px; margin: 0px; height: auto; width: 80px;"
alt="${object.company_id.name}"
/>
</td></tr>
</table>
</td>
</tr>
<!-- CONTENT -->
<tr>
<td align="center" style="min-width: 590px;">
<table
border="0"
cellpadding="0"
cellspacing="0"
width="590"
style="min-width: 590px; background-color: white; padding: 0px 24px; border-collapse:separate; margin-bottom: 40px"
>
<tr><td valign="top" style="font-size: 13px;">
<div>
A password reset was requested for the Odoo account linked to this email.
You may change your password by following this link which will remain valid during 15 minutes:
<br />
<div style="margin: 32px 0">
<a
href="${ctx.get('app_url')}/reset-password?token=${object.signup_token}"
style="background-color: #4BB1E0; padding: 8px 16px 8px 16px; text-decoration: none; color: #fff; border-radius: 5px; font-size:13px;"
>
Reestablecer contraseña
</a>
</div>
If you do not expect this, you can safely ignore this email.<br
/><br />
Thanks,
% if user.signature:
<br />
${user.signature | safe}
% endif
</div>
</td></tr>
</table>
</td>
</tr>
<!-- FOOTER -->
<tr>
<td align="center" style="min-width: 590px;">
<table
border="0"
cellpadding="0"
cellspacing="0"
width="590"
style="border-radius: 0 0 24px 24px;min-width: 590px; background-color: white; font-size: 11px; padding: 0 24px 24px 24px; border-collapse:separate;"
>
<tr><td valign="middle" align="left">
${object.company_id.name}
</td></tr>
<tr><td valign="middle" align="left" style="opacity: 0.7;">
${object.company_id.phone}
% if object.company_id.email
| <a
href="'mailto:%s' % ${object.company_id.email}"
style="text-decoration:none; color: #454748;"
>${object.company_id.email}</a>
% endif
% if object.company_id.website
| <a
href="'%s' % ${object.company_id.website}"
style="text-decoration:none; color: #454748;"
>
${object.company_id.website}
</a>
% endif
</td></tr>
</table>
</td>
</tr>
</tbody>
</table>
</td></tr>

</table>
</field>
<field name="lang">${object.lang}</field>
<field name="auto_delete" eval="True" />
</record>
</odoo>
Loading
Loading