Skip to content

Commit

Permalink
[MIG] sale_loyalty_limit: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arantxa-s73 committed Jan 17, 2025
1 parent 843d93e commit 0f9ea76
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sale_loyalty_limit/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Coupon Limit",
"summary": "Restrict number of promotions per customer or salesman",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"development_status": "Production/Stable",
"category": "Sale",
"website": "https://github.com/OCA/sale-promotion",
Expand Down
71 changes: 71 additions & 0 deletions sale_loyalty_limit/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_loyalty_limit
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 17.0+e\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-01-17 09:44+0000\n"
"PO-Revision-Date: 2025-01-17 09:44+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: sale_loyalty_limit
#: model:ir.model,name:sale_loyalty_limit.model_loyalty_program
msgid "Loyalty Program"
msgstr "Programa de fidelización"

#. module: sale_loyalty_limit
#: model:ir.model,name:sale_loyalty_limit.model_loyalty_salesmen_limit
msgid "Loyalty Salesmen limits"
msgstr "Límites de los vendedores fieles"

#. module: sale_loyalty_limit
#: model:ir.model,name:sale_loyalty_limit.model_sale_order
msgid "Sales Order"
msgstr "Pedidos de venta"

#. module: sale_loyalty_limit
#. odoo-python
#: code:addons/sale_loyalty_limit/models/sale_order.py:0
#, python-format
msgid ""
"This promo code was already applied %(count)s times for this customer and "
"there's an stablished limit of %(max)s for this promotion."
msgstr ""
"Este código promocional ya se ha aplicado %(count)s veces para este cliente y "
"hay un límite establecido de %(max)s para esta promoción."

#. module: sale_loyalty_limit
#. odoo-python
#: code:addons/sale_loyalty_limit/models/sale_order.py:0
#, python-format
msgid ""
"This promo code was already applied %(times)s times for this salesman and "
"there's an stablished limit of %(max)s for this promotion."
msgstr ""
"Este código promocional ya fue aplicado %(times)s veces para este vendedor y "
"hay un límite establecido de %(max)s para esta promoción."

#. module: sale_loyalty_limit
#. odoo-python
#: code:addons/sale_loyalty_limit/models/sale_order.py:0
#, python-format
msgid "This promotion is restricted to the listed salesmen."
msgstr "Esta promoción está restringida a los vendedores que figuran en la lista."

#. module: sale_loyalty_limit
#. odoo-python
#: code:addons/sale_loyalty_limit/models/sale_order.py:0
#, python-format
msgid ""
"This promotion was already applied %(count)s times for this customer and "
"there's an established limit of %(max)s."
msgstr ""
"Esta promoción ya se ha aplicado %(count)s veces para este cliente y "
"hay un límite establecido de %(max)s."
2 changes: 1 addition & 1 deletion sale_loyalty_limit/models/loyalty_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _compute_times_used(self):
)
for program in programs:
salesmen_limits = self.filtered(
lambda x: x._origin in program["salesmen_limit_ids"]
lambda x, program=program: x._origin in program["salesmen_limit_ids"]
)
for salesman_limit in salesmen_limits:
salesman_limit.times_used = len(
Expand Down

0 comments on commit 0f9ea76

Please sign in to comment.