Skip to content

Commit

Permalink
[MIG] pos_receipt_hide_price: Migration to 15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danielduqma committed Nov 14, 2022
1 parent 1db0939 commit 511e792
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 29 deletions.
19 changes: 11 additions & 8 deletions pos_receipt_hide_price/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@
"author": "Akretion, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/pos",
"category": "Point of Sale",
"version": "14.0.1.0.1",
"version": "15.0.1.0.0",
"license": "LGPL-3",
"depends": ["point_of_sale"],
"data": ["views/assets.xml"],
"qweb": [
"static/src/xml/OrderReceipt.xml",
"static/src/xml/HidePrice.xml",
"static/src/xml/ReceiptScreen.xml",
"static/src/xml/ReprintReceiptScreen.xml",
],
"assets": {
"point_of_sale.assets": [
"pos_receipt_hide_price/static/src/js/ReceiptScreen.js",
"pos_receipt_hide_price/static/src/js/ReprintReceiptScreen.js",
"pos_receipt_hide_price/static/src/js/OrderReceipt.js",
],
"web.assets_qweb": [
"pos_receipt_hide_price/static/src/xml/**/*",
],
},
}
61 changes: 61 additions & 0 deletions pos_receipt_hide_price/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_receipt_hide_price
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-11-14 11:00+0000\n"
"PO-Revision-Date: 2022-11-14 11:00+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: pos_receipt_hide_price
#. openerp-web
#: code:addons/pos_receipt_hide_price/static/src/xml/HidePrice.xml:0
#, python-format
msgid "Hide Price"
msgstr "Ocultar precios"

#. module: pos_receipt_hide_price
#. openerp-web
#: code:addons/pos_receipt_hide_price/static/src/xml/HidePrice.xml:0
#, python-format
msgid "Show Price"
msgstr "Mostrar precios"

#. module: pos_receipt_hide_price
#. openerp-web
#: code:addons/pos_receipt_hide_price/static/src/xml/ReceiptScreen.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/ReprintReceiptScreen.xml:0
#, python-format
msgid "hidePriceState"
msgstr ""

#. module: pos_receipt_hide_price
#. openerp-web
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#: code:addons/pos_receipt_hide_price/static/src/xml/OrderReceipt.xml:0
#, python-format
msgid "{'oe_hidden': priceHidden}"
msgstr ""
5 changes: 3 additions & 2 deletions pos_receipt_hide_price/static/src/xml/OrderReceipt.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<templates id="template" xml:space="preserve">
<t t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension">
<t t-inherit="point_of_sale.OrderLinesReceipt" t-inherit-mode="extension" owl="1">
<!-- Attributes position xpath only apply to first match for some reason: -->
<!-- https://github.com/odoo/odoo/issues/23862 -->
<!-- Simple price -->
Expand Down Expand Up @@ -31,7 +31,8 @@
</div>
</t>
</xpath>

</t>
<t t-inherit="point_of_sale.OrderReceipt" t-inherit-mode="extension">
<!-- Tax included -->
<xpath expr="//t[@t-if='!isTaxIncluded']/div[1]" position="attributes">
<attribute name="t-att-class">{'oe_hidden': priceHidden}</attribute>
Expand Down
19 changes: 0 additions & 19 deletions pos_receipt_hide_price/views/assets.xml

This file was deleted.

6 changes: 6 additions & 0 deletions setup/pos_receipt_hide_price/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 511e792

Please sign in to comment.