Files
odoo_source/addons/stock/wizard/stock_request_count.xml
T
Nicolas Pierre 262b49d85a [IMP] stock: Inventory adjustments improvements
General improvements of the new Inventory Adjustment mechanism, among which:

From the Inventory Adjustment page
 - A new inventory_quantity_set Boolean field is used to hide the Counted Quantity when not set instead of showing 0.
 - Possibile to set 0 as a Counted Quantity directly (not using the set button).
 - Allows to provide a name for the Inventory Adjustment when using the Apply button at the top of the tree view. This name is applied on the corresponding stock moves.
 - Add warnings when trying to Apply/Set on multiple records when some records are not set/already set.
 - Highlight lines when there is a mismatch between Quantity / Counted Quantity / Difference. If the user still tries to Apply, shows the option to either keep the current Difference or the current Counted Quantity for all records.
 - Set the user when directly inserting a Counted Quantity (before only when using the Set button)
 - Add the possibility to import records.
 - Add "To Apply" filter.
 - Add a 'Reset' button at the top of the tree view for multiple records.
From the Update Quantity page of a product
 - Remove the "Updated on Hand Quantity" and can directly change "On Hand" quantity
 - Pre-fill a default location (Last used location for tracked products or default destination location in single WH environment)
From the Inventory Report
 - Remove the "Updated on Hand Quantity" and can directly change "On Hand" quantity

closes odoo/odoo#71199

Task-id: 2495664
Pr-community: 71199
Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2021-05-31 13:15:54 +00:00

34 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="stock_inventory_request_count_form_view" model="ir.ui.view">
<field name="name">stock.request.count.form.view</field>
<field name="model">stock.request.count</field>
<field name="mode">primary</field>
<field name="arch" type="xml">
<form>
<group>
<field name="quant_ids" invisible="1"/>
<field name="inventory_date"/>
<field name="user_id"/>
</group>
<footer>
<button name="action_request_count" string="Confirm" type="object" class="btn-primary"/>
<button string="Discard" class="btn-secondary" special="cancel"/>
</footer>
</form>
</field>
</record>
<record id="action_stock_request_count" model="ir.actions.act_window">
<field name="name">Request a Count</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">stock.request.count</field>
<field name="view_mode">form</field>
<field name="view_id" ref="stock_inventory_request_count_form_view"/>
<field name="context">{
'default_quant_ids': active_ids
}</field>
<field name="target">new</field>
</record>
</odoo>