Skip to content

Commit

Permalink
[MIG] stock_quantity_history_location:Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
SodexisTeam committed May 15, 2024
1 parent 3ae9bbc commit f052f88
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 47 deletions.
2 changes: 1 addition & 1 deletion stock_quantity_history_location/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ report by location, for a past date or for current date.
Usage
=====

- Go to: *Inventory / Reporting / Inventory or Inventory Valuation*
- Go to: *Inventory / Reporting / Locations*

- Filter by location

Expand Down
15 changes: 5 additions & 10 deletions stock_quantity_history_location/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{
"name": "Stock Quantity History Location",
"summary": "Provides stock quantity by location on past date",
"version": "16.0.1.0.1",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "ForgeFlow, Odoo Community Association (OCA)",
"maintainers": [
Expand All @@ -14,13 +14,8 @@
],
"website": "https://github.com/OCA/stock-logistics-reporting",
"depends": ["stock"],
"data": ["wizards/stock_quantity_history.xml"],
"assets": {
"web.assets_backend": [
"stock_quantity_history_location/static/src/components"
"/inventory_report/inventory_report.esm.js",
"stock_quantity_history_location/static/src/components/"
"inventory_report/inventory_report.xml",
],
},
"data": [
"views/stock_quant_views.xml",
"wizards/stock_quantity_history.xml",
],
}
2 changes: 1 addition & 1 deletion stock_quantity_history_location/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- Go to: *Inventory / Reporting / Inventory or Inventory Valuation*
- Go to: *Inventory / Reporting / Locations*

- Filter by location

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ <h1 class="title">Stock Quantity History Location</h1>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
<ul class="simple">
<li>Go to: <em>Inventory / Reporting / Inventory or Inventory Valuation</em></li>
<li>Go to: <em>Inventory / Reporting / Locations</em></li>
<li>Filter by location</li>
<li><strong>Optionally: Mark if you want to include child location</strong></li>
<li>Choose a moment in time:<ul>
Expand Down

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion stock_quantity_history_location/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ def _create_stock_move(self, location_dest_id, qty):
move._action_confirm()
move._action_assign()
move_line = move.move_line_ids[0]
move_line.qty_done = qty
move_line.quantity = qty
move._action_done()
return move
28 changes: 28 additions & 0 deletions stock_quantity_history_location/views/stock_quant_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<odoo>

<record id="view_stock_quant_tree_editable_expiry" model="ir.ui.view">
<field name="name">stock.quant.inherit.form</field>
<field name="model">stock.quant</field>
<field name="inherit_id" ref="stock.view_stock_quant_tree_editable" />
<field name="arch" type="xml">
<xpath
expr="//button[@name='action_inventory_at_date']"
position="attributes"
>
<attribute name="groups">!stock.group_stock_multi_locations</attribute>
</xpath>
<xpath expr="//button[@name='action_inventory_at_date']" position="after">
<button
name="action_inventory_at_date"
string="Inventory at Date &amp; Location"
type="object"
groups="stock.group_stock_multi_locations"
invisible="((context.get('inventory_mode') and not context.get('inventory_report_mode')) or context.get('no_at_date'))"
class="btn-primary ms-1"
display="always"
/>
</xpath>
</field>
</record>

</odoo>
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>

<record id="view_stock_quantity_history_location" model="ir.ui.view">
Expand All @@ -10,7 +9,7 @@
<field name="location_id" groups="stock.group_stock_multi_locations" />
<field
name="include_child_locations"
attrs="{'invisible': [('location_id', '=', False)]}"
invisible="not location_id"
groups="stock.group_stock_multi_locations"
/>
</field>
Expand Down

0 comments on commit f052f88

Please sign in to comment.