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>
54 lines
2.2 KiB
XML
54 lines
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="inventory_warning_reset_view" model="ir.ui.view">
|
|
<field name="name">inventory.reset.warning.view</field>
|
|
<field name="model">stock.inventory.warning</field>
|
|
<field name="mode">primary</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<div>
|
|
This will discard all unapplied counts, do you want to proceed?
|
|
</div>
|
|
<footer>
|
|
<button name="action_reset" string="Continue" type="object" class="btn-primary"/>
|
|
<button name="cancel_button" string="Discard" class="btn-secondary" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="inventory_warning_set_view" model="ir.ui.view">
|
|
<field name="name">inventory.set.warning.view</field>
|
|
<field name="model">stock.inventory.warning</field>
|
|
<field name="mode">primary</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<div>
|
|
Some selected lines already have quantities set, they will be ignored.
|
|
</div>
|
|
<footer>
|
|
<button name="action_set" string="Continue" type="object" class="btn-primary"/>
|
|
<button name="cancel_button" string="Discard" class="btn-secondary" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="inventory_warning_apply_view" model="ir.ui.view">
|
|
<field name="name">inventory.apply.warning.view</field>
|
|
<field name="model">stock.inventory.warning</field>
|
|
<field name="mode">primary</field>
|
|
<field name="arch" type="xml">
|
|
<form>
|
|
<div>
|
|
Some selected lines don't have any quantities set, they will be ignored.
|
|
</div>
|
|
<footer>
|
|
<button name="action_apply" string="Continue" type="object" class="btn-primary"/>
|
|
<button name="cancel_button" string="Discard" class="btn-secondary" special="cancel"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
</odoo>
|