diff --git a/purchase_order_product_recommendation_supermarket/i18n/es.po b/purchase_order_product_recommendation_supermarket/i18n/es.po index 47fa02e..6f2e161 100644 --- a/purchase_order_product_recommendation_supermarket/i18n/es.po +++ b/purchase_order_product_recommendation_supermarket/i18n/es.po @@ -6,27 +6,50 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-06-10 15:20+0000\n" -"PO-Revision-Date: 2025-06-10 17:33+0200\n" +"POT-Creation-Date: 2025-06-23 16:11+0000\n" +"PO-Revision-Date: 2025-06-23 16:11+0000\n" "Last-Translator: \n" "Language-Team: \n" -"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"X-Generator: Poedit 3.6\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__avg_days_between_orders msgid "Average days between orders" -msgstr "Promedio de días entre pedidos" +msgstr "Promedio días pedidos" #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,help:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__avg_days_between_orders msgid "Average number of days between orders for this vendor." msgstr "Número medio de días entre pedidos para este proveedor." +#. module: purchase_order_product_recommendation_supermarket +#: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket +msgid "Avg Prev Period" +msgstr "Prev Ctd entrg./día" + +#. module: purchase_order_product_recommendation_supermarket +#: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket +msgid "Calculate" +msgstr "Calcular" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__currency_id +msgid "Currency" +msgstr "Moneda" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__date_last_order +msgid "Date of last order" +msgstr "Fecha Último Pedido" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,help:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__date_last_order +msgid "Date of the last order received from the vendor." +msgstr "Fecha del último pedido recibido del proveedor." + #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__days_without_stock msgid "Days without stock" @@ -35,11 +58,11 @@ msgstr "Días sin existencias" #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,help:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__ignore_zero_stock_days msgid "" -"If enabled, days when the product stock was 0 or less will not be " -"considered in the daily sales calculation." +"If enabled, days when the product stock was 0 or less will not be considered" +" in the daily sales calculation." msgstr "" -"Si se activa, los días en los que el stock del producto era 0 o negativo no " -"se tendrán en cuenta en el cálculo de las ventas diarias." +"Si se activa, los días en los que el stock del producto era 0 o menos no se " +"tendrán en cuenta en el cálculo de las ventas diarias." #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__ignore_zero_stock_days @@ -49,8 +72,8 @@ msgstr "Ignorar los días sin existencias" #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,help:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__order_days msgid "" -"Indicate for how many days the new order should cover the stock. If not " -"set, the default module behavior is kept." +"Indicate for how many days the new order should cover the stock. If not set," +" the default module behavior is kept." msgstr "" "Indica durante cuántos días la nueva orden debe cubrir el stock. Si no se " "establece, se mantiene el comportamiento por defecto del módulo." @@ -60,6 +83,16 @@ msgstr "" msgid "Indicates if the order should be made by packages." msgstr "Indica si el pedido debe realizarse por paquetes." +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__last_order_total_amount +msgid "Last Order total amount" +msgstr "Importe último pedido" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__line_amount +msgid "Number of recommendations" +msgstr "Número de recomendaciones" + #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__order_by_packages msgid "Order by packages" @@ -70,6 +103,11 @@ msgstr "Pedir por paquetes" msgid "Order coverage (days)" msgstr "Días a cubrir" +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__order_total_amount +msgid "Order total amount" +msgstr "Importe total" + #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__packaging_id msgid "Packaging" @@ -95,6 +133,16 @@ msgstr "Cantidad de paquetes" msgid "Packaging Quantity Contained" msgstr "Ctd contenida en el paquete" +#. module: purchase_order_product_recommendation_supermarket +#: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket +msgid "Prev Period" +msgstr "Prev Ctd entregada" + +#. module: purchase_order_product_recommendation_supermarket +#: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket +msgid "Qty needed" +msgstr "Ctd necesaria" + #. module: purchase_order_product_recommendation_supermarket #: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket msgid "Qty scrapped" @@ -120,10 +168,31 @@ msgstr "Producto recomendado para el pedido de compra en curso" msgid "Recommended products for current purchase order" msgstr "Productos recomendados para el pedido de compra en curso" +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,help:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__line_amount +msgid "" +"Stablish a limit on how many recommendations you want to get.Leave it as 0 " +"to set no limit" +msgstr "" +"Establezca un límite de cuántas recomendaciones desea obtener. Déjelo en 0 " +"si no desea límite" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__stock_duration +#: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket +msgid "Stock Duration" +msgstr "Duración stock" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__subtotal_amount +#: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket +msgid "Subtotal Amount" +msgstr "Subtotal" + #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__total_days msgid "Total days" -msgstr "Días totales" +msgstr "Días analizados" #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,help:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__total_days @@ -132,6 +201,21 @@ msgid "" msgstr "" "Número total de días entre las fechas de inicio y fin de la recomendación." +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__units_avg_delivered_prev +msgid "Units Avg Delivered Prev" +msgstr "Promedio unidades entregadas prev" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__units_delivered_prev +msgid "Units Delivered Prev" +msgstr "Unidades entregadas prev" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__units_included_original +msgid "Units Included Original" +msgstr "Unidades incluidas original" + #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__units_scrapped msgid "Units Scrapped" diff --git a/purchase_order_product_recommendation_supermarket/i18n/purchase_order_product_recommendation_supermarket.pot b/purchase_order_product_recommendation_supermarket/i18n/purchase_order_product_recommendation_supermarket.pot index 007ccf3..d648e01 100644 --- a/purchase_order_product_recommendation_supermarket/i18n/purchase_order_product_recommendation_supermarket.pot +++ b/purchase_order_product_recommendation_supermarket/i18n/purchase_order_product_recommendation_supermarket.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2025-06-10 15:19+0000\n" -"PO-Revision-Date: 2025-06-10 15:19+0000\n" +"POT-Creation-Date: 2025-06-23 16:11+0000\n" +"PO-Revision-Date: 2025-06-23 16:11+0000\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -25,6 +25,31 @@ msgstr "" msgid "Average number of days between orders for this vendor." msgstr "" +#. module: purchase_order_product_recommendation_supermarket +#: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket +msgid "Avg Prev Period" +msgstr "" + +#. module: purchase_order_product_recommendation_supermarket +#: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket +msgid "Calculate" +msgstr "" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__currency_id +msgid "Currency" +msgstr "" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__date_last_order +msgid "Date of last order" +msgstr "" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,help:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__date_last_order +msgid "Date of the last order received from the vendor." +msgstr "" + #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__days_without_stock msgid "Days without stock" @@ -54,6 +79,16 @@ msgstr "" msgid "Indicates if the order should be made by packages." msgstr "" +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__last_order_total_amount +msgid "Last Order total amount" +msgstr "" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__line_amount +msgid "Number of recommendations" +msgstr "" + #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__order_by_packages msgid "Order by packages" @@ -64,6 +99,11 @@ msgstr "" msgid "Order coverage (days)" msgstr "" +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__order_total_amount +msgid "Order total amount" +msgstr "" + #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__packaging_id msgid "Packaging" @@ -89,6 +129,16 @@ msgstr "" msgid "Packaging Quantity Contained" msgstr "" +#. module: purchase_order_product_recommendation_supermarket +#: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket +msgid "Prev Period" +msgstr "" + +#. module: purchase_order_product_recommendation_supermarket +#: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket +msgid "Qty needed" +msgstr "" + #. module: purchase_order_product_recommendation_supermarket #: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket msgid "Qty scrapped" @@ -114,6 +164,25 @@ msgstr "" msgid "Recommended products for current purchase order" msgstr "" +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,help:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__line_amount +msgid "" +"Stablish a limit on how many recommendations you want to get.Leave it as 0 " +"to set no limit" +msgstr "" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__stock_duration +#: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket +msgid "Stock Duration" +msgstr "" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__subtotal_amount +#: model_terms:ir.ui.view,arch_db:purchase_order_product_recommendation_supermarket.view_purchase_order_recommendation_wizard_form_supermarket +msgid "Subtotal Amount" +msgstr "" + #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation__total_days msgid "Total days" @@ -125,6 +194,21 @@ msgid "" "Total number of days between the start and end dates of the recommendation." msgstr "" +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__units_avg_delivered_prev +msgid "Units Avg Delivered Prev" +msgstr "" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__units_delivered_prev +msgid "Units Delivered Prev" +msgstr "" + +#. module: purchase_order_product_recommendation_supermarket +#: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__units_included_original +msgid "Units Included Original" +msgstr "" + #. module: purchase_order_product_recommendation_supermarket #: model:ir.model.fields,field_description:purchase_order_product_recommendation_supermarket.field_purchase_order_recommendation_line__units_scrapped msgid "Units Scrapped" diff --git a/purchase_order_product_recommendation_supermarket/wizards/purchase_order_recommendation.py b/purchase_order_product_recommendation_supermarket/wizards/purchase_order_recommendation.py index 7dcadc5..c5c0871 100644 --- a/purchase_order_product_recommendation_supermarket/wizards/purchase_order_recommendation.py +++ b/purchase_order_product_recommendation_supermarket/wizards/purchase_order_recommendation.py @@ -51,6 +51,12 @@ class PurchaseOrderRecommendationSupermarketWizard(models.TransientModel): line_amount = fields.Integer( default=0, ) + last_order_total_amount = fields.Monetary( + string="Last Order total amount", + currency_field="currency_id", + compute="_compute_avg_days_between_orders", + readonly=True, + ) @api.depends("date_begin", "date_end") def _compute_total_days(self): @@ -79,8 +85,10 @@ class PurchaseOrderRecommendationSupermarketWizard(models.TransientModel): if orders[-1].effective_date else orders[-1].date_planned.date() ) + self.last_order_total_amount = orders[-1].amount_total else: self.date_last_order = False + self.last_order_total_amount = 0.0 dates = [o.date_order.date() for o in orders if o.date_order] if len(dates) < 2: diff --git a/purchase_order_product_recommendation_supermarket/wizards/purchase_order_recommendation.xml b/purchase_order_product_recommendation_supermarket/wizards/purchase_order_recommendation.xml index d00bc32..1e7e9d5 100644 --- a/purchase_order_product_recommendation_supermarket/wizards/purchase_order_recommendation.xml +++ b/purchase_order_product_recommendation_supermarket/wizards/purchase_order_recommendation.xml @@ -16,15 +16,16 @@ - - + + - + +