mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
Merge pull request #337 from fanha99/9.0_stock_quant_manual_assign_show_incoming_date_of_quant
[9.0][stock_quant_manual_assign] show incoming date of quant, easier to choice the correct quant
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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, "
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user