diff --git a/web_widget_one2many_product_picker/__manifest__.py b/web_widget_one2many_product_picker/__manifest__.py index bfad69a83..b9d0b122e 100644 --- a/web_widget_one2many_product_picker/__manifest__.py +++ b/web_widget_one2many_product_picker/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Web Widget One2Many Product Picker', 'summary': 'Widget to select products on one2many fields', - 'version': '12.0.2.1.0', + 'version': '12.0.2.2.0', 'category': 'Website', 'author': "Tecnativa, " "Odoo Community Association (OCA)", diff --git a/web_widget_one2many_product_picker/i18n/ca.po b/web_widget_one2many_product_picker/i18n/ca.po index 24c73929e..38fd2e7a0 100644 --- a/web_widget_one2many_product_picker/i18n/ca.po +++ b/web_widget_one2many_product_picker/i18n/ca.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * web_widget_one2many_product_picker +# * web_widget_one2many_product_picker # msgid "" msgstr "" @@ -23,13 +23,6 @@ msgstr "" msgid "Add" msgstr "Afegir" -#. module: web_widget_one2many_product_picker -#. openerp-web -#: code:addons/web_widget_one2many_product_picker/static/src/xml/one2many_product_picker.xml:84 -#, python-format -msgid "Add 1" -msgstr "Afegir 1" - #. module: web_widget_one2many_product_picker #. openerp-web #: code:addons/web_widget_one2many_product_picker/static/src/js/widgets/field_one2many_product_picker.js:192 @@ -93,14 +86,18 @@ msgstr "Subtotal:" #. module: web_widget_one2many_product_picker #: model:ir.model.fields,help:web_widget_one2many_product_picker.field_product_product__image_variant_medium -msgid "This field holds the image used as image for the product variantor product image medium, limited to 512x512px." +msgid "" +"This field holds the image used as image for the product variantor product " +"image medium, limited to 512x512px." msgstr "" "Aquest camp conté la imatge que s'utilitza com a imatge per al mitjà " "d'imatge del producte que varia el producte, limitada a 512x512px." #. module: web_widget_one2many_product_picker #: model:ir.model.fields,help:web_widget_one2many_product_picker.field_product_product__image_variant_big -msgid "This field holds the image used as image for the product variantor product image, limited to 1024x1024px." +msgid "" +"This field holds the image used as image for the product variantor product " +"image, limited to 1024x1024px." msgstr "" "Aquest camp conté la imatge que s'utilitza com a imatge per al mitjà " "d'imatge del producte que varia el producte, limitada a 1024x1024px." @@ -121,3 +118,6 @@ msgstr "Imatge variant mitjana ( calculada)" #, python-format msgid "[No widget %s]" msgstr "[Sense widget %s]" + +#~ msgid "Add 1" +#~ msgstr "Afegir 1" diff --git a/web_widget_one2many_product_picker/i18n/es.po b/web_widget_one2many_product_picker/i18n/es.po index 4d398ad1c..e428bfd3a 100644 --- a/web_widget_one2many_product_picker/i18n/es.po +++ b/web_widget_one2many_product_picker/i18n/es.po @@ -1,6 +1,6 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * web_widget_one2many_product_picker +# * web_widget_one2many_product_picker # msgid "" msgstr "" @@ -23,13 +23,6 @@ msgstr "" msgid "Add" msgstr "Añadir" -#. module: web_widget_one2many_product_picker -#. openerp-web -#: code:addons/web_widget_one2many_product_picker/static/src/xml/one2many_product_picker.xml:84 -#, python-format -msgid "Add 1" -msgstr "Añadir 1" - #. module: web_widget_one2many_product_picker #. openerp-web #: code:addons/web_widget_one2many_product_picker/static/src/js/widgets/field_one2many_product_picker.js:192 @@ -93,14 +86,18 @@ msgstr "Subtotal:" #. module: web_widget_one2many_product_picker #: model:ir.model.fields,help:web_widget_one2many_product_picker.field_product_product__image_variant_medium -msgid "This field holds the image used as image for the product variantor product image medium, limited to 512x512px." +msgid "" +"This field holds the image used as image for the product variantor product " +"image medium, limited to 512x512px." msgstr "" "Aquest camp conté la imatge que s'utilitza com a imatge per al mitjà " "d'imatge del producte que varia el producte, limitada a 512x512px." #. module: web_widget_one2many_product_picker #: model:ir.model.fields,help:web_widget_one2many_product_picker.field_product_product__image_variant_big -msgid "This field holds the image used as image for the product variantor product image, limited to 1024x1024px." +msgid "" +"This field holds the image used as image for the product variantor product " +"image, limited to 1024x1024px." msgstr "" "Aquest camp conté la imatge que s'utilitza com a imatge per al mitjà " "d'imatge del producte que varia el producte, limitada a 1024x1024px." @@ -121,3 +118,6 @@ msgstr "Imagen variante media (calculada)" #, python-format msgid "[No widget %s]" msgstr "[Sin widget %s]" + +#~ msgid "Add 1" +#~ msgstr "Añadir 1" diff --git a/web_widget_one2many_product_picker/i18n/web_widget_one2many_product_picker.pot b/web_widget_one2many_product_picker/i18n/web_widget_one2many_product_picker.pot index cdb65e8b5..d75ace2eb 100644 --- a/web_widget_one2many_product_picker/i18n/web_widget_one2many_product_picker.pot +++ b/web_widget_one2many_product_picker/i18n/web_widget_one2many_product_picker.pot @@ -20,13 +20,6 @@ msgstr "" msgid "Add" msgstr "" -#. module: web_widget_one2many_product_picker -#. openerp-web -#: code:addons/web_widget_one2many_product_picker/static/src/xml/one2many_product_picker.xml:84 -#, python-format -msgid "Add 1" -msgstr "" - #. module: web_widget_one2many_product_picker #. openerp-web #: code:addons/web_widget_one2many_product_picker/static/src/js/widgets/field_one2many_product_picker.js:192 diff --git a/web_widget_one2many_product_picker/static/src/js/views/One2ManyProductPicker/record.js b/web_widget_one2many_product_picker/static/src/js/views/One2ManyProductPicker/record.js index 66113689b..ab5d15780 100644 --- a/web_widget_one2many_product_picker/static/src/js/views/One2ManyProductPicker/record.js +++ b/web_widget_one2many_product_picker/static/src/js/views/One2ManyProductPicker/record.js @@ -649,6 +649,9 @@ odoo.define("web_widget_one2many_product_picker.One2ManyProductPickerRecord", fu this._incProductQty(1); this._doInteractAnim(evt.target, evt.currentTarget); return; + } else if ($target.hasClass('safezone')) { + // Do nothing on safe zones + return; } } if (!this._clickFlipCardDelayed) { diff --git a/web_widget_one2many_product_picker/static/src/scss/one2many_product_picker.scss b/web_widget_one2many_product_picker/static/src/scss/one2many_product_picker.scss index cea673860..ef0479347 100644 --- a/web_widget_one2many_product_picker/static/src/scss/one2many_product_picker.scss +++ b/web_widget_one2many_product_picker/static/src/scss/one2many_product_picker.scss @@ -255,4 +255,4 @@ 100% { transform: scale(1.0); } -} \ No newline at end of file +} diff --git a/web_widget_one2many_product_picker/static/src/xml/one2many_product_picker.xml b/web_widget_one2many_product_picker/static/src/xml/one2many_product_picker.xml index aae2d01c7..481241e91 100644 --- a/web_widget_one2many_product_picker/static/src/xml/one2many_product_picker.xml +++ b/web_widget_one2many_product_picker/static/src/xml/one2many_product_picker.xml @@ -75,13 +75,13 @@
-
- +
+
-
- Add 1 +
+ 1