From 38d7e0a3c6ec47f9004815cb54201d161cd5fe87 Mon Sep 17 00:00:00 2001 From: Akim Juillerat Date: Fri, 25 May 2018 10:38:35 +0200 Subject: [PATCH] [Fix] Convert date_planned string to datetime string --- .../__manifest__.py | 2 +- .../stock_orderpoint_manual_procurement.pot | 186 ++++++++++++++++++ .../wizards/make_procurement_orderpoint.py | 3 +- 3 files changed, 189 insertions(+), 2 deletions(-) create mode 100644 stock_orderpoint_manual_procurement/i18n/stock_orderpoint_manual_procurement.pot diff --git a/stock_orderpoint_manual_procurement/__manifest__.py b/stock_orderpoint_manual_procurement/__manifest__.py index c493fc593..7df1509ac 100644 --- a/stock_orderpoint_manual_procurement/__manifest__.py +++ b/stock_orderpoint_manual_procurement/__manifest__.py @@ -6,7 +6,7 @@ "name": "Stock Orderpoint Manual Procurement", "summary": "Allows to create procurement orders from orderpoints instead " "of relying only on the scheduler.", - "version": "11.0.1.1.0", + "version": "11.0.1.1.1", "author": "Eficent, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/stock-logistics-warehouse", diff --git a/stock_orderpoint_manual_procurement/i18n/stock_orderpoint_manual_procurement.pot b/stock_orderpoint_manual_procurement/i18n/stock_orderpoint_manual_procurement.pot new file mode 100644 index 000000000..be3c67c75 --- /dev/null +++ b/stock_orderpoint_manual_procurement/i18n/stock_orderpoint_manual_procurement.pot @@ -0,0 +1,186 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * stock_orderpoint_manual_procurement +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.0\n" +"Report-Msgid-Bugs-To: \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: stock_orderpoint_manual_procurement +#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security +#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard +msgid "Cancel" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:res.groups,name:stock_orderpoint_manual_procurement.group_change_orderpoint_procure_qty +msgid "Change quantity in manual procurements from reordering rules" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_warehouse_orderpoint_tree +msgid "Create Procurement" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_create_uid +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_create_uid +msgid "Created by" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_create_date +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_create_date +msgid "Created on" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_display_name +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_display_name +msgid "Display Name" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security +#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard +msgid "Execute" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_id +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_id +msgid "ID" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_ids +#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security +#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard +msgid "Items" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint___last_update +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item___last_update +msgid "Last Modified on" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_write_uid +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_write_uid +msgid "Last Updated by" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_write_date +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_write_date +msgid "Last Updated on" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_location_id +msgid "Location" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model,name:stock_orderpoint_manual_procurement.model_make_procurement_orderpoint_item +msgid "Make Procurements from Orderpoint Item" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model,name:stock_orderpoint_manual_procurement.model_make_procurement_orderpoint +msgid "Make Procurements from Orderpoints" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model,name:stock_orderpoint_manual_procurement.model_stock_warehouse_orderpoint +msgid "Minimum Inventory Rule" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: code:addons/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py:68 +#, python-format +msgid "No reordering rule found!" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_date_planned +msgid "Planned Date" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_stock_warehouse_orderpoint_procure_recommended_qty +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_stock_warehouse_orderpoint_template_procure_recommended_qty +msgid "Procure Recommendation" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security +#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard +msgid "Procurement Request" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_product_id +msgid "Product" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_qty +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_qty_without_security +msgid "Quantity" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: code:addons/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py:66 +#, python-format +msgid "Quantity must be positive." +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_stock_warehouse_orderpoint_procure_recommended_date +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_stock_warehouse_orderpoint_template_procure_recommended_date +msgid "Recommended Request Date" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_orderpoint_id +msgid "Reordering rule" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.actions.act_window,name:stock_orderpoint_manual_procurement.act_make_procurement_from_orderpoint +msgid "Request Procurement" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_uom_id +msgid "Unit of Measure" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procure_without_security +#: model:ir.ui.view,arch_db:stock_orderpoint_manual_procurement.view_make_procurment_buffer_wizard +msgid "Use this assistant to generate a procurement request for this\n" +" stock buffer. According to the product configuration,\n" +" this may trigger a draft purchase order, a manufacturing\n" +" order or a transfer picking." +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_warehouse_id +msgid "Warehouse" +msgstr "" + +#. module: stock_orderpoint_manual_procurement +#: model:ir.model.fields,field_description:stock_orderpoint_manual_procurement.field_make_procurement_orderpoint_item_wiz_id +msgid "Wizard" +msgstr "" + diff --git a/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py b/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py index d786ef650..e4f1f67d4 100644 --- a/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py +++ b/stock_orderpoint_manual_procurement/wizards/make_procurement_orderpoint.py @@ -67,7 +67,8 @@ class MakeProcurementOrderpoint(models.TransientModel): if not item.orderpoint_id: raise ValidationError(_("No reordering rule found!")) values = item.orderpoint_id._prepare_procurement_values(item.qty) - values['date_planned'] = item.date_planned + values['date_planned'] = fields.Datetime.to_string( + fields.Date.from_string(item.date_planned)) # Run procurement try: self.env['procurement.group'].run(