[REF][I18N]GOLEM Resource Pack : small refactorings and updated translations
This commit is contained in:
parent
e76a516177
commit
0421f494bc
@ -20,7 +20,7 @@
|
|||||||
'name': 'GOLEM resources pack',
|
'name': 'GOLEM resources pack',
|
||||||
'summary': 'GOLEM resources pack',
|
'summary': 'GOLEM resources pack',
|
||||||
'description': ''' GOLEM resources pack ''',
|
'description': ''' GOLEM resources pack ''',
|
||||||
'version': '10.0.0.0.7',
|
'version': '10.0.0.1.0',
|
||||||
'category': 'GOLEM',
|
'category': 'GOLEM',
|
||||||
'author': 'Youssef El Ouahby, Fabien Bourgeois',
|
'author': 'Youssef El Ouahby, Fabien Bourgeois',
|
||||||
'license': 'AGPL-3',
|
'license': 'AGPL-3',
|
||||||
|
@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 10.0\n"
|
"Project-Id-Version: Odoo Server 10.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-04-17 06:51+0000\n"
|
"POT-Creation-Date: 2018-05-25 16:47+0000\n"
|
||||||
"PO-Revision-Date: 2018-04-17 06:51+0000\n"
|
"PO-Revision-Date: 2018-05-25 16:47+0000\n"
|
||||||
"Last-Translator: <>\n"
|
"Last-Translator: <>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@ -16,6 +16,7 @@ msgstr ""
|
|||||||
"Plural-Forms: \n"
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_pack_quick_reservation_wizard_view_form
|
||||||
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_pack_rejection_wizard_view_form
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_pack_rejection_wizard_view_form
|
||||||
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_resource_pack_view_form
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_resource_pack_view_form
|
||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
@ -37,18 +38,26 @@ msgid "Confirmed"
|
|||||||
msgstr "Confirmé"
|
msgstr "Confirmé"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_pack_quick_reservation_wizard_view_form
|
||||||
|
msgid "Create Reservations"
|
||||||
|
msgstr "Créer les réservations"
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_create_uid
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_create_uid
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_create_uid
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_create_uid
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_create_uid
|
||||||
msgid "Created by"
|
msgid "Created by"
|
||||||
msgstr "Créé par"
|
msgstr "Créé par"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_create_date
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_create_date
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_create_date
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_create_date
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_create_date
|
||||||
msgid "Created on"
|
msgid "Created on"
|
||||||
msgstr "Créé le"
|
msgstr "Créé le"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_display_name
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_display_name
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_display_name
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_display_name
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_display_name
|
||||||
msgid "Display Name"
|
msgid "Display Name"
|
||||||
@ -59,6 +68,11 @@ msgstr "Nom affiché"
|
|||||||
msgid "Draft"
|
msgid "Draft"
|
||||||
msgstr "Brouillon"
|
msgstr "Brouillon"
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model,name:golem_resource_pack.model_golem_pack_quick_reservation_wizard
|
||||||
|
msgid "GOLEM Pack Quick Reservation Wizard"
|
||||||
|
msgstr "GOLEM Pack Quick Reservation Wizard"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: model:ir.model,name:golem_resource_pack.model_golem_resource_reservation
|
#: model:ir.model,name:golem_resource_pack.model_golem_resource_reservation
|
||||||
msgid "GOLEM Reservation Model"
|
msgid "GOLEM Reservation Model"
|
||||||
@ -70,24 +84,28 @@ msgid "GOLEM Resource Pack Model"
|
|||||||
msgstr "GOLEM Resource Pack Model"
|
msgstr "GOLEM Resource Pack Model"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_id
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_id
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_id
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_id
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_id
|
||||||
msgid "ID"
|
msgid "ID"
|
||||||
msgstr "ID"
|
msgstr "ID"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard___last_update
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard___last_update
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard___last_update
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack___last_update
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack___last_update
|
||||||
msgid "Last Modified on"
|
msgid "Last Modified on"
|
||||||
msgstr "Dernière Modification le"
|
msgstr "Dernière Modification le"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_write_uid
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_write_uid
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_write_uid
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_write_uid
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_write_uid
|
||||||
msgid "Last Updated by"
|
msgid "Last Updated by"
|
||||||
msgstr "Dernière mise à jour par"
|
msgstr "Dernière mise à jour par"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_write_date
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_write_date
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_write_date
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_write_date
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_write_date
|
||||||
msgid "Last Updated on"
|
msgid "Last Updated on"
|
||||||
@ -109,6 +127,7 @@ msgid "Notes, optional subject for the reservation, reason"
|
|||||||
msgstr "Notes, subjet, motif, descriptif optionnel pour la réservation"
|
msgstr "Notes, subjet, motif, descriptif optionnel pour la réservation"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_partner_id
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_partner_id
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_partner_id
|
||||||
msgid "On behalf of"
|
msgid "On behalf of"
|
||||||
msgstr "Pour le compte de"
|
msgstr "Pour le compte de"
|
||||||
@ -119,22 +138,33 @@ msgid "Pack"
|
|||||||
msgstr "Lot"
|
msgstr "Lot"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_pack_id
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_pack_id
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_pack_id
|
||||||
msgid "Pack id"
|
msgid "Pack id"
|
||||||
msgstr "Lot"
|
msgstr "Lot"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: code:addons/golem_resource_pack/models/golem_resource_pack.py:126
|
#: code:addons/golem_resource_pack/models/golem_resource_pack.py:138
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Pack partner should be the same for all reservations"
|
msgid "Pack partner should be the same for all reservations"
|
||||||
msgstr "Toutes les réservations devraient avoir le même compte"
|
msgstr "Toutes les réservations devraient avoir le même compte"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: code:addons/golem_resource_pack/models/golem_resource_pack.py:108
|
#: code:addons/golem_resource_pack/models/golem_resource_pack.py:120
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Please enter the rejection reason"
|
msgid "Please enter the rejection reason"
|
||||||
msgstr "Merci de saisir le motif de refus"
|
msgstr "Merci de saisir le motif de refus"
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_resource_pack_view_form
|
||||||
|
msgid "Quick Reservation"
|
||||||
|
msgstr "Réservations rapides"
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_pack_quick_reservation_wizard_view_form
|
||||||
|
msgid "Quick Reservations"
|
||||||
|
msgstr "Réservations rapides"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_reason
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_reason
|
||||||
msgid "Reason"
|
msgid "Reason"
|
||||||
@ -178,16 +208,37 @@ msgstr "Nombre de réservations"
|
|||||||
msgid "Reservations"
|
msgid "Reservations"
|
||||||
msgstr "Réservations"
|
msgstr "Réservations"
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: code:addons/golem_resource_pack/models/golem_resource_pack.py:60
|
||||||
|
#, python-format
|
||||||
|
msgid "Reservations Creation"
|
||||||
|
msgstr "Création de réservations"
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_resource_ids
|
||||||
|
msgid "Resource List"
|
||||||
|
msgstr "Resource List"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_resource_pack_view_form
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_resource_pack_view_form
|
||||||
msgid "Set to draft"
|
msgid "Set to draft"
|
||||||
msgstr "Brouillon"
|
msgstr "Brouillon"
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_date_start
|
||||||
|
msgid "Start date"
|
||||||
|
msgstr "Date de début"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_state
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_state
|
||||||
msgid "State"
|
msgid "State"
|
||||||
msgstr "État"
|
msgstr "État"
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_date_stop
|
||||||
|
msgid "Stop date"
|
||||||
|
msgstr "Date de fin"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_user_id
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_user_id
|
||||||
msgid "User"
|
msgid "User"
|
||||||
|
@ -6,8 +6,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 10.0\n"
|
"Project-Id-Version: Odoo Server 10.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-04-17 06:51+0000\n"
|
"POT-Creation-Date: 2018-05-25 16:47+0000\n"
|
||||||
"PO-Revision-Date: 2018-04-17 06:51+0000\n"
|
"PO-Revision-Date: 2018-05-25 16:47+0000\n"
|
||||||
"Last-Translator: <>\n"
|
"Last-Translator: <>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
@ -16,6 +16,7 @@ msgstr ""
|
|||||||
"Plural-Forms: \n"
|
"Plural-Forms: \n"
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_pack_quick_reservation_wizard_view_form
|
||||||
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_pack_rejection_wizard_view_form
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_pack_rejection_wizard_view_form
|
||||||
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_resource_pack_view_form
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_resource_pack_view_form
|
||||||
msgid "Cancel"
|
msgid "Cancel"
|
||||||
@ -37,18 +38,26 @@ msgid "Confirmed"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_pack_quick_reservation_wizard_view_form
|
||||||
|
msgid "Create Reservations"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_create_uid
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_create_uid
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_create_uid
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_create_uid
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_create_uid
|
||||||
msgid "Created by"
|
msgid "Created by"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_create_date
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_create_date
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_create_date
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_create_date
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_create_date
|
||||||
msgid "Created on"
|
msgid "Created on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_display_name
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_display_name
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_display_name
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_display_name
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_display_name
|
||||||
msgid "Display Name"
|
msgid "Display Name"
|
||||||
@ -59,6 +68,11 @@ msgstr ""
|
|||||||
msgid "Draft"
|
msgid "Draft"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model,name:golem_resource_pack.model_golem_pack_quick_reservation_wizard
|
||||||
|
msgid "GOLEM Pack Quick Reservation Wizard"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: model:ir.model,name:golem_resource_pack.model_golem_resource_reservation
|
#: model:ir.model,name:golem_resource_pack.model_golem_resource_reservation
|
||||||
msgid "GOLEM Reservation Model"
|
msgid "GOLEM Reservation Model"
|
||||||
@ -70,24 +84,28 @@ msgid "GOLEM Resource Pack Model"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_id
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_id
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_id
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_id
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_id
|
||||||
msgid "ID"
|
msgid "ID"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard___last_update
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard___last_update
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard___last_update
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack___last_update
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack___last_update
|
||||||
msgid "Last Modified on"
|
msgid "Last Modified on"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_write_uid
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_write_uid
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_write_uid
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_write_uid
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_write_uid
|
||||||
msgid "Last Updated by"
|
msgid "Last Updated by"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_write_date
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_write_date
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_write_date
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_write_date
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_write_date
|
||||||
msgid "Last Updated on"
|
msgid "Last Updated on"
|
||||||
@ -109,6 +127,7 @@ msgid "Notes, optional subject for the reservation, reason"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_partner_id
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_partner_id
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_partner_id
|
||||||
msgid "On behalf of"
|
msgid "On behalf of"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -119,22 +138,33 @@ msgid "Pack"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_pack_id
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_pack_id
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_pack_id
|
||||||
msgid "Pack id"
|
msgid "Pack id"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: code:addons/golem_resource_pack/models/golem_resource_pack.py:126
|
#: code:addons/golem_resource_pack/models/golem_resource_pack.py:138
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Pack partner should be the same for all reservations"
|
msgid "Pack partner should be the same for all reservations"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: code:addons/golem_resource_pack/models/golem_resource_pack.py:108
|
#: code:addons/golem_resource_pack/models/golem_resource_pack.py:120
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Please enter the rejection reason"
|
msgid "Please enter the rejection reason"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_resource_pack_view_form
|
||||||
|
msgid "Quick Reservation"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_pack_quick_reservation_wizard_view_form
|
||||||
|
msgid "Quick Reservations"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_reason
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_rejection_wizard_reason
|
||||||
msgid "Reason"
|
msgid "Reason"
|
||||||
@ -178,16 +208,37 @@ msgstr ""
|
|||||||
msgid "Reservations"
|
msgid "Reservations"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: code:addons/golem_resource_pack/models/golem_resource_pack.py:60
|
||||||
|
#, python-format
|
||||||
|
msgid "Reservations Creation"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_resource_ids
|
||||||
|
msgid "Resource List"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_resource_pack_view_form
|
#: model:ir.ui.view,arch_db:golem_resource_pack.golem_resource_pack_view_form
|
||||||
msgid "Set to draft"
|
msgid "Set to draft"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_date_start
|
||||||
|
msgid "Start date"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_state
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_state
|
||||||
msgid "State"
|
msgid "State"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: golem_resource_pack
|
||||||
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_pack_quick_reservation_wizard_date_stop
|
||||||
|
msgid "Stop date"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: golem_resource_pack
|
#. module: golem_resource_pack
|
||||||
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_user_id
|
#: model:ir.model.fields,field_description:golem_resource_pack.field_golem_resource_pack_user_id
|
||||||
msgid "User"
|
msgid "User"
|
||||||
|
@ -57,11 +57,10 @@ class GolemResourcePack(models.Model):
|
|||||||
""" Quick Reservation Creating"""
|
""" Quick Reservation Creating"""
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
pack_id = self[0]
|
pack_id = self[0]
|
||||||
return {'name' : _('Reservations Creating'),
|
return {'name' : _('Reservations Creation'),
|
||||||
'type' : 'ir.actions.act_window',
|
'type' : 'ir.actions.act_window',
|
||||||
'res_model' : 'golem.pack.quick.reservation.wizard',
|
'res_model' : 'golem.pack.quick.reservation.wizard',
|
||||||
'context': {'default_pack_id': pack_id.id,
|
'context': {'default_pack_id': pack_id.id},
|
||||||
'default_partner_id': pack_id.partner_id.id},
|
|
||||||
'view_mode': 'form',
|
'view_mode': 'form',
|
||||||
'target': 'new'}
|
'target': 'new'}
|
||||||
|
|
||||||
|
@ -67,9 +67,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
</group>
|
</group>
|
||||||
<group>
|
<group>
|
||||||
<button name="quick_reservation" type="object" string="Quick Reservation"
|
<button name="quick_reservation" type="object"
|
||||||
states="draft" class="oe_highlight"
|
string="Quick Reservation" states="draft" class="oe_highlight" />
|
||||||
/>
|
|
||||||
</group>
|
</group>
|
||||||
<group colspan="2" name="reservations">
|
<group colspan="2" name="reservations">
|
||||||
<field name="reservation_ids" widget="many2many"
|
<field name="reservation_ids" widget="many2many"
|
||||||
|
@ -18,31 +18,42 @@
|
|||||||
|
|
||||||
""" GOLEM Pack Quick Reservation Wizard """
|
""" GOLEM Pack Quick Reservation Wizard """
|
||||||
|
|
||||||
|
from datetime import timedelta
|
||||||
from odoo import models, fields, api
|
from odoo import models, fields, api
|
||||||
|
|
||||||
class GolemPackQuickReservationWizard(models.TransientModel):
|
class GolemPackQuickReservationWizard(models.TransientModel):
|
||||||
"""GOLEM Pack Quick Reservation Wizard """
|
""" GOLEM Pack Quick Reservation Wizard """
|
||||||
_name = "golem.pack.quick.reservation.wizard"
|
_name = 'golem.pack.quick.reservation.wizard'
|
||||||
|
_description = 'GOLEM Pack Quick Reservation Wizard'
|
||||||
|
|
||||||
pack_id = fields.Many2one('golem.resource.pack', required=True)
|
pack_id = fields.Many2one('golem.resource.pack', required=True,
|
||||||
partner_id = fields.Many2one('res.partner', string='On behalf of', readonly=True)
|
ondelete='cascade')
|
||||||
|
partner_id = fields.Many2one(related='pack_id.partner_id')
|
||||||
resource_ids = fields.Many2many('golem.resource', string="Resource List")
|
resource_ids = fields.Many2many('golem.resource', string="Resource List")
|
||||||
|
|
||||||
date_start = fields.Datetime('Start date', required=True)
|
date_start = fields.Datetime('Start date', required=True)
|
||||||
date_stop = fields.Datetime('Stop date', required=True)
|
date_stop = fields.Datetime('Stop date', required=True)
|
||||||
|
|
||||||
|
@api.onchange('date_start')
|
||||||
|
def onchange_date_start(self):
|
||||||
|
""" Propose automatically stop hour after start hour had been filled """
|
||||||
|
for reservation in self:
|
||||||
|
if reservation.date_start:
|
||||||
|
start = fields.Datetime.from_string(reservation.date_start)
|
||||||
|
duration = timedelta(hours=1)
|
||||||
|
reservation.date_stop = start + duration
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
def create_reservations(self):
|
def create_reservations(self):
|
||||||
""" Create a reservation for each resource """
|
""" Create a reservation for each resource """
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
wizard = self[0]
|
wizard = self[0]
|
||||||
data = []
|
|
||||||
for resource in wizard.resource_ids:
|
for resource in wizard.resource_ids:
|
||||||
reservation = {'user_id': self.env.user,
|
self.env['golem.resource.reservation'].create({
|
||||||
'partner_id': wizard.partner_id,
|
'user_id': self.env.user.id,
|
||||||
'resource_id': resource,
|
'partner_id': wizard.partner_id.id,
|
||||||
|
'resource_id': resource.id,
|
||||||
'date_start': wizard.date_start,
|
'date_start': wizard.date_start,
|
||||||
'date_stop': wizard.date_stop}
|
'date_stop': wizard.date_stop,
|
||||||
data.append((0, 0, reservation))
|
'pack_id': wizard.pack_id.id
|
||||||
wizard.pack_id.reservation_ids = data
|
})
|
||||||
|
@ -29,14 +29,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<group>
|
<group>
|
||||||
<field name="pack_id" readonly="1" />
|
<field name="pack_id" readonly="1" />
|
||||||
<field name="partner_id" readonly="1"/>
|
<field name="partner_id" readonly="1"/>
|
||||||
<field name="resource_ids" />
|
<field name="resource_ids" options="{'no_create': True}" />
|
||||||
<field name="date_start" />
|
<field name="date_start" />
|
||||||
<field name="date_stop" />
|
<field name="date_stop" />
|
||||||
</group>
|
</group>
|
||||||
</sheet>
|
</sheet>
|
||||||
<footer>
|
<footer>
|
||||||
<button name="create_reservations" string="Create Reservations" type="object"
|
<button name="create_reservations" string="Create Reservations"
|
||||||
class="oe_highlight" />
|
type="object" class="oe_highlight" />
|
||||||
<button string="Cancel" class="oe_link" special="cancel" />
|
<button string="Cancel" class="oe_link" special="cancel" />
|
||||||
</footer>
|
</footer>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
Reference in New Issue
Block a user