Skip to content

Commit

Permalink
[MIG] website_sale_coupon_page: Renamed to website_sale_loyalty_page …
Browse files Browse the repository at this point in the history
…+ Migration to 16.0

TT44378
  • Loading branch information
pilarvargas-tecnativa committed Aug 29, 2023
1 parent dd502a3 commit d304819
Show file tree
Hide file tree
Showing 21 changed files with 210 additions and 263 deletions.

This file was deleted.

File renamed without changes.
27 changes: 14 additions & 13 deletions website_sale_loyalty_page/README.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
========================
Website Sale Coupon Page
========================
=========================
Website Sale Loyalty Page
=========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
Expand All @@ -14,14 +14,14 @@ Website Sale Coupon Page
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsale--promotion-lightgray.png?logo=github
:target: https://github.com/OCA/sale-promotion/tree/15.0/website_sale_coupon_page
:target: https://github.com/OCA/sale-promotion/tree/16.0/website_sale_loyalty_page
:alt: OCA/sale-promotion
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/sale-promotion-15-0/sale-promotion-15-0-website_sale_coupon_page
:target: https://translation.odoo-community.org/projects/sale-promotion-16-0/sale-promotion-16-0-website_sale_loyalty_page
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/296/15.0
:alt: Try me on Runbot
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/sale-promotion&target_branch=16.0
:alt: Try me on Runboat

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

Expand All @@ -37,10 +37,10 @@ Configuration

To show the promotions/coupons on website you need to:

#. Go to *Sales > Products > Promotion Programs/Coupon Programs*.
#. Go to *Website > eCommerce > Loyalty > Discount & Loyalty*.
#. Select the program that we will publish.
#. In the Website section, upload an image, add a text or both.
#. Press on the smart button for publishing the promotion/coupon.
#. In the Website tab, upload an image, add a text or both.
#. Press on the smart button for publishing the loyalty.

**Note:** The order of the items is defined by a sequence, but the promotions will
appear before the coupons.
Expand All @@ -59,7 +59,7 @@ Bug Tracker
Bugs are tracked on `GitHub Issues <https://github.com/OCA/sale-promotion/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/sale-promotion/issues/new?body=module:%20website_sale_coupon_page%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
`feedback <https://github.com/OCA/sale-promotion/issues/new?body=module:%20website_sale_loyalty_page%0Aversion:%2016.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.

Expand All @@ -79,6 +79,7 @@ Contributors
* Pedro M. Baeza
* Carlos Roca
* Stefan Ungureanu
* Pilar Vargas

Maintainers
~~~~~~~~~~~
Expand All @@ -93,6 +94,6 @@ 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/sale-promotion <https://github.com/OCA/sale-promotion/tree/15.0/website_sale_coupon_page>`_ project on GitHub.
This module is part of the `OCA/sale-promotion <https://github.com/OCA/sale-promotion/tree/16.0/website_sale_loyalty_page>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
11 changes: 5 additions & 6 deletions website_sale_loyalty_page/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@
# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).

{
"name": "Website Sale Coupon Page",
"version": "15.0.1.0.0",
"name": "Website Sale Loyalty Page",
"version": "16.0.1.0.0",
"category": "Website",
"website": "https://github.com/OCA/sale-promotion",
"author": "Tecnativa, Odoo Community Association (OCA)",
"license": "LGPL-3",
"application": False,
"installable": True,
"depends": ["website_sale_coupon"],
"depends": ["website_sale_loyalty"],
"data": [
"views/sale_coupon_program_views.xml",
"views/sale_loyalty_program_views.xml",
"templates/promotion_templates.xml",
],
"assets": {
"web.assets_tests": [
"/website_sale_coupon_page/static/src/js/website_sale_coupon_page_admin.js",
"/website_sale_coupon_page/static/src/js/website_sale_coupon_page_portal.js",
"/website_sale_loyalty_page/static/src/js/website_sale_loyalty_page_portal.js",
]
},
}
19 changes: 9 additions & 10 deletions website_sale_loyalty_page/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class WebsiteSale(http.Controller):
@http.route(["""/promotions"""], type="http", auth="public", website=True)
def promotion(self, **post):
all_promos = (
request.env["coupon.program"]
request.env["loyalty.program"]
.sudo()
.search(
[
Expand All @@ -21,12 +21,11 @@ def promotion(self, **post):
)
values = {"promos": []}
for promo in all_promos:
if promo._is_valid_partner(request.env.user.partner_id):
values["promos"].append(
{
"id": promo.id,
"image_1920": promo.image_1920,
"public_name": promo.public_name,
}
)
return request.render("website_sale_coupon_page.promotion_layout", values)
values["promos"].append(
{
"id": promo.id,
"image_1920": promo.image_1920,
"public_name": promo.public_name,
}
)
return request.render("website_sale_loyalty_page.promotion_layout", values)
72 changes: 36 additions & 36 deletions website_sale_loyalty_page/i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_coupon_page
# * website_sale_loyalty_page
#
msgid ""
msgstr ""
Expand All @@ -17,90 +17,90 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.0.6\n"

#. module: website_sale_coupon_page
#: model_terms:ir.ui.view,arch_db:website_sale_coupon_page.available_promotions
#. module: website_sale_loyalty_page
#: model_terms:ir.ui.view,arch_db:website_sale_loyalty_page.available_promotions
msgid "<span>No promotions available</span>"
msgstr "<span>No hay promociones disponibles</span>"

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__can_publish
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__can_publish
msgid "Can Publish"
msgstr ""

#. module: website_sale_coupon_page
#: model_terms:ir.ui.view,arch_db:website_sale_coupon_page.promotion_item
#. module: website_sale_loyalty_page
#: model_terms:ir.ui.view,arch_db:website_sale_loyalty_page.promotion_item
msgid "Close"
msgstr "Cerrar"

#. module: website_sale_coupon_page
#: model:ir.model,name:website_sale_coupon_page.model_coupon_program
msgid "Coupon display on a website"
#. module: website_sale_loyalty_page
#: model:ir.model,name:website_sale_loyalty_page.model_coupon_program
msgid "Loyalty display on a website"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__image_1920
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__image_1920
msgid "Image"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__image_1024
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__image_1024
msgid "Image 1024"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__image_128
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__image_128
msgid "Image 128"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__image_256
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__image_256
msgid "Image 256"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__image_512
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__image_512
msgid "Image 512"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__is_published
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__is_published
msgid "Is Published"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,help:website_sale_coupon_page.field_coupon_program__public_name
#. module: website_sale_loyalty_page
#: model:ir.model.fields,help:website_sale_loyalty_page.field_coupon_program__public_name
msgid "Name of the promo showed on website bellow the banner image."
msgstr ""
"Nombre de la promoción mostrado en el sitio web debajo del la imagen "
"promocional."

#. module: website_sale_coupon_page
#: model_terms:ir.ui.view,arch_db:website_sale_coupon_page.promotion_layout
#. module: website_sale_loyalty_page
#: model_terms:ir.ui.view,arch_db:website_sale_loyalty_page.promotion_layout
msgid "Promotions"
msgstr "Cupones y Promociones"

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__public_name
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__public_name
msgid "Public Name"
msgstr "Nombre público"

#. module: website_sale_coupon_page
#: model:ir.model.fields,help:website_sale_coupon_page.field_coupon_program__website_url
#. module: website_sale_loyalty_page
#: model:ir.model.fields,help:website_sale_loyalty_page.field_coupon_program__website_url
msgid "The full URL to access the document through the website."
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__website_published
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__website_published
msgid "Visible on current website"
msgstr ""

#. module: website_sale_coupon_page
#: model_terms:ir.ui.view,arch_db:website_sale_coupon_page.coupon_program_view_form_common
#. module: website_sale_loyalty_page
#: model_terms:ir.ui.view,arch_db:website_sale_loyalty_page.coupon_program_view_form_common
msgid "Website"
msgstr "Sitio Web"

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__website_url
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__website_url
msgid "Website URL"
msgstr ""

Expand Down
72 changes: 36 additions & 36 deletions website_sale_loyalty_page/i18n/website_sale_coupon_page.pot
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * website_sale_coupon_page
# * website_sale_loyalty_page
#
msgid ""
msgstr ""
Expand All @@ -13,87 +13,87 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: website_sale_coupon_page
#: model_terms:ir.ui.view,arch_db:website_sale_coupon_page.available_promotions
#. module: website_sale_loyalty_page
#: model_terms:ir.ui.view,arch_db:website_sale_loyalty_page.available_promotions
msgid "<span>No promotions available</span>"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__can_publish
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__can_publish
msgid "Can Publish"
msgstr ""

#. module: website_sale_coupon_page
#: model_terms:ir.ui.view,arch_db:website_sale_coupon_page.promotion_item
#. module: website_sale_loyalty_page
#: model_terms:ir.ui.view,arch_db:website_sale_loyalty_page.promotion_item
msgid "Close"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model,name:website_sale_coupon_page.model_coupon_program
msgid "Coupon display on a website"
#. module: website_sale_loyalty_page
#: model:ir.model,name:website_sale_loyalty_page.model_coupon_program
msgid "Loyalty display on a website"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__image_1920
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__image_1920
msgid "Image"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__image_1024
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__image_1024
msgid "Image 1024"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__image_128
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__image_128
msgid "Image 128"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__image_256
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__image_256
msgid "Image 256"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__image_512
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__image_512
msgid "Image 512"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__is_published
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__is_published
msgid "Is Published"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,help:website_sale_coupon_page.field_coupon_program__public_name
#. module: website_sale_loyalty_page
#: model:ir.model.fields,help:website_sale_loyalty_page.field_coupon_program__public_name
msgid "Name of the promo showed on website bellow the banner image."
msgstr ""

#. module: website_sale_coupon_page
#: model_terms:ir.ui.view,arch_db:website_sale_coupon_page.promotion_layout
#. module: website_sale_loyalty_page
#: model_terms:ir.ui.view,arch_db:website_sale_loyalty_page.promotion_layout
msgid "Promotions"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__public_name
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__public_name
msgid "Public Name"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,help:website_sale_coupon_page.field_coupon_program__website_url
#. module: website_sale_loyalty_page
#: model:ir.model.fields,help:website_sale_loyalty_page.field_coupon_program__website_url
msgid "The full URL to access the document through the website."
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__website_published
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__website_published
msgid "Visible on current website"
msgstr ""

#. module: website_sale_coupon_page
#: model_terms:ir.ui.view,arch_db:website_sale_coupon_page.coupon_program_view_form_common
#. module: website_sale_loyalty_page
#: model_terms:ir.ui.view,arch_db:website_sale_loyalty_page.coupon_program_view_form_common
msgid "Website"
msgstr ""

#. module: website_sale_coupon_page
#: model:ir.model.fields,field_description:website_sale_coupon_page.field_coupon_program__website_url
#. module: website_sale_loyalty_page
#: model:ir.model.fields,field_description:website_sale_loyalty_page.field_coupon_program__website_url
msgid "Website URL"
msgstr ""
Loading

0 comments on commit d304819

Please sign in to comment.