* show incoming date of quant, easier to choice the correct quant

* update README.rst
This commit is contained in:
Fanha Giang
2017-08-12 10:12:03 +07:00
parent b2f535b479
commit 11a031462b
3 changed files with 10 additions and 1 deletions

View File

@@ -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

View File

@@ -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,

View File

@@ -10,6 +10,7 @@
<tree editable="top" delete="0" create="0">
<field name="quant" />
<field name="location_id" />
<field name="in_date" />
<field name="lot_id" />
<field name="package_id" />
<field name="selected" />