diff --git a/sale_loyalty_limit/__manifest__.py b/sale_loyalty_limit/__manifest__.py index f1e3dee1e..4d87e6016 100644 --- a/sale_loyalty_limit/__manifest__.py +++ b/sale_loyalty_limit/__manifest__.py @@ -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", diff --git a/sale_loyalty_limit/i18n/es.po b/sale_loyalty_limit/i18n/es.po new file mode 100644 index 000000000..77ac37c46 --- /dev/null +++ b/sale_loyalty_limit/i18n/es.po @@ -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." diff --git a/sale_loyalty_limit/models/loyalty_program.py b/sale_loyalty_limit/models/loyalty_program.py index bf1168e10..6a4f750fa 100644 --- a/sale_loyalty_limit/models/loyalty_program.py +++ b/sale_loyalty_limit/models/loyalty_program.py @@ -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(