From 11a031462bb7b2c41ced71dee51db07ab3c7002c Mon Sep 17 00:00:00 2001 From: Fanha Giang Date: Sat, 12 Aug 2017 10:12:03 +0700 Subject: [PATCH] * show incoming date of quant, easier to choice the correct quant * update README.rst --- stock_quant_manual_assign/README.rst | 7 ++++++- stock_quant_manual_assign/wizard/assign_manual_quants.py | 3 +++ .../wizard/assign_manual_quants_view.xml | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/stock_quant_manual_assign/README.rst b/stock_quant_manual_assign/README.rst index 5deca3a5f..57a3fa753 100644 --- a/stock_quant_manual_assign/README.rst +++ b/stock_quant_manual_assign/README.rst @@ -14,8 +14,13 @@ Usage To use this module, you need to: #. Select a stock move or a stock picking. +#. Click on the tab "Initial Demand". +#. Click on the line which you need to select quants. #. Open the wizard with the button "Manual Quants". -#. Select the quants to assign (reserve). +#. Select the quants to assign (reserve), then Confirm. +#. Close the stock move line windows (which is popup by step 3). +#. Click on the tab "Operations" +#. Click on the "Recompute" to update the stock move info. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot diff --git a/stock_quant_manual_assign/wizard/assign_manual_quants.py b/stock_quant_manual_assign/wizard/assign_manual_quants.py index 1347b0fcb..08ffe548e 100644 --- a/stock_quant_manual_assign/wizard/assign_manual_quants.py +++ b/stock_quant_manual_assign/wizard/assign_manual_quants.py @@ -73,6 +73,7 @@ class AssignManualQuants(models.TransientModel): quants_lines = [{ 'quant': x.id, 'lot_id': x.lot_id.id, + 'in_date': x.in_date, 'package_id': x.package_id.id, 'selected': x in move.reserved_quant_ids, 'qty': x.qty if x in move.reserved_quant_ids else 0, @@ -112,6 +113,8 @@ class AssignManualQuantsLines(models.TransientModel): comodel_name='stock.production.lot', string='Lot', related='quant.lot_id', readonly=True, groups="stock.group_production_lot") + in_date = fields.Date( + string='Incoming Date', readonly=True) package_id = fields.Many2one( comodel_name='stock.quant.package', string='Package', related='quant.package_id', readonly=True, diff --git a/stock_quant_manual_assign/wizard/assign_manual_quants_view.xml b/stock_quant_manual_assign/wizard/assign_manual_quants_view.xml index da9c66d3b..df8288b0e 100644 --- a/stock_quant_manual_assign/wizard/assign_manual_quants_view.xml +++ b/stock_quant_manual_assign/wizard/assign_manual_quants_view.xml @@ -10,6 +10,7 @@ +