Fix UI issues for stock_quant_reserved_fix
This commit is contained in:
parent
8c8cb76c3f
commit
18dc17a3bb
2 changed files with 6 additions and 3 deletions
|
|
@ -85,6 +85,7 @@ class StockQuantReservedFixWizard(models.TransientModel):
|
|||
"Successfully updated reserved quantity to %.2f for %d stock quant(s)."
|
||||
) % (self.reserved_quantity, updated_count)
|
||||
|
||||
# Close the wizard and show success notification
|
||||
return {
|
||||
"type": "ir.actions.client",
|
||||
"tag": "display_notification",
|
||||
|
|
@ -93,5 +94,6 @@ class StockQuantReservedFixWizard(models.TransientModel):
|
|||
"message": message,
|
||||
"type": "success",
|
||||
"sticky": False,
|
||||
"next": {"type": "ir.actions.act_window_close"},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@
|
|||
</group>
|
||||
</group>
|
||||
|
||||
<group string="Selected Stock Quants" invisible="quant_count == 0">
|
||||
<notebook>
|
||||
<page string="Selected Quants">
|
||||
<field name="quant_ids" nolabel="1" readonly="1">
|
||||
<tree>
|
||||
<field name="product_id"/>
|
||||
|
|
@ -32,8 +33,8 @@
|
|||
<field name="available_quantity"/>
|
||||
</tree>
|
||||
</field>
|
||||
</group>
|
||||
|
||||
</page>
|
||||
</notebook>
|
||||
<footer>
|
||||
<button name="action_fix_reserved_quantity"
|
||||
string="Update Reserved Quantity"
|
||||
|
|
|
|||
Loading…
Reference in a new issue