Skip to content

Commit

Permalink
[MIG] stock_exception: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mav-adhoc committed Jan 3, 2025
1 parent da722d1 commit 3709c1e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion stock_exception/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"name": "Stock Exception",
"summary": "Custom exceptions on stock picking",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"category": "Generic Modules/Warehouse Management",
"author": "Ecosoft, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
Expand Down
2 changes: 0 additions & 2 deletions stock_exception/data/stock_exception_data.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
<field name="user_id" ref="base.user_root" />
<field name="interval_number">20</field>
<field name="interval_type">minutes</field>
<field name="numbercall">-1</field>
<field name="doall" eval="False" />
<field name="active" eval="False" />
</record>
<record id="sp_excep_no_partner" model="exception.rule">
Expand Down
2 changes: 1 addition & 1 deletion stock_exception/tests/test_stock_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def setUpClass(cls):
cls.product_1 = cls.product_model.create(
{
"name": "Test Product 1",
"type": "product",
"type": "consu",
"default_code": "PROD1",
"uom_id": cls.uom_unit.id,
}
Expand Down
8 changes: 4 additions & 4 deletions stock_exception/views/stock_view.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<odoo>
<record id="action_stock_test_tree" model="ir.actions.act_window">
<record id="action_stock_test_list" model="ir.actions.act_window">
<field name="name">Stock Exception Rules</field>
<field name="res_model">exception.rule</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="base_exception.view_exception_rule_tree" />
<field name="view_mode">list,form</field>
<field name="view_id" ref="base_exception.view_exception_rule_list" />
<field
name="domain"
>[('model', 'in', ['stock.picking', 'stock.move', 'stock.move.line'])]</field>
Expand All @@ -12,7 +12,7 @@
>{'active_test': False, 'default_model' : 'stock.picking'}</field>
</record>
<menuitem
action="action_stock_test_tree"
action="action_stock_test_list"
id="menu_stock_test"
parent="stock.menu_stock_config_settings"
/>
Expand Down

0 comments on commit 3709c1e

Please sign in to comment.