Commit 6b268f43 by Etienne Freiss

work on paper meal voucher

parent 87d5994b
...@@ -312,7 +312,24 @@ msgstr "Attention, le montant éligible au paiement par titre restaurant( " ...@@ -312,7 +312,24 @@ msgstr "Attention, le montant éligible au paiement par titre restaurant( "
#, python-format #, python-format
msgid " ) is under the amount input ( " msgid " ) is under the amount input ( "
msgstr " ) est inférieur à la valeur du/des ticket(s)( " msgstr " ) est inférieur à la valeur du/des ticket(s)( "
#. module: pos_meal_voucher
#. openerp-web
#: code:addons/pos_meal_voucher/static/src/js/screens.js:110 #: code:addons/pos_meal_voucher/static/src/js/screens.js:110
#, python-format #, python-format
msgid "Warning, the input amount of meal voucher is above the maximum amount of " msgid "Warning, the input amount of meal voucher is above the maximum amount of "
msgstr "Le montant saisi est supérieur au montant maximum/au maximum éligible de " msgstr "Le montant saisi est supérieur au montant maximum/au maximum éligible de "
#. module: pos_meal_voucher
#. openerp-web
#: code:addons/pos_meal_voucher/static/src/js/screens.js:196
#, python-format
msgid "Meal Voucher ticket"
msgstr "Chèque restaurant"
#. module: pos_meal_voucher
#. openerp-web
#: code:addons/pos_meal_voucher/static/src/js/screens.js:197
#, python-format
msgid "To add a meal voucher ticket close this window and scan the ticket. If the ticket can't be read please enter the code"
msgstr "Pour ajouter un chèque restaurant merci de fermer cette fenêtre et scanner le chèque. Si le chèque est illisible veuillez rentrer le code à la main."
...@@ -195,6 +195,10 @@ odoo.define("pos_meal_voucher.models", function (require) { ...@@ -195,6 +195,10 @@ odoo.define("pos_meal_voucher.models", function (require) {
return ( return (
this.cashregister.journal.meal_voucher_type == "dematerialized") ; this.cashregister.journal.meal_voucher_type == "dematerialized") ;
}, },
is_paper_meal_voucher: function() {
return (
this.cashregister.journal.meal_voucher_type == "paper") ;
},
}); });
......
...@@ -78,5 +78,10 @@ ...@@ -78,5 +78,10 @@
</t> </t>
</t> </t>
</t> </t>
<t t-extend="TextInputPopupWidget">
<t t-jquery="p.title" t-operation="after">
<p class="body"><t t-esc=" widget.options.body || '' "/></p>
</t>
</t>
</templates> </templates>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment