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/__openerp__.py b/stock_quant_manual_assign/__openerp__.py index fa107679f..cfcdeb1fd 100644 --- a/stock_quant_manual_assign/__openerp__.py +++ b/stock_quant_manual_assign/__openerp__.py @@ -6,7 +6,7 @@ { "name": "Stock - Manual Quant Assignment", - "version": "9.0.1.0.0", + "version": "9.0.1.1.0", "category": "Warehouse Management", "license": "AGPL-3", "author": "AvanzOSC, " 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 @@ +