Skip to content

Commit

Permalink
[MIG] stock_orderpoint_route: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
grindtildeath committed Feb 6, 2025
1 parent 68cdca6 commit ddd4c89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
2 changes: 1 addition & 1 deletion stock_orderpoint_route/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"name": "Stock Orderpoint Route",
"summary": "Allows to force a route to be used when procuring from orderpoints",
"version": "16.0.1.0.0",
"version": "18.0.1.0.0",
"license": "LGPL-3",
"website": "https://github.com/OCA/stock-logistics-orderpoint",
"author": "ForgeFlow, Camptocamp, Odoo Community Association (OCA)",
Expand Down
3 changes: 2 additions & 1 deletion stock_orderpoint_route/tests/test_stock_orderpoint_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ def _create_product(cls, default_code, name, company_id, **vals):
default_code=default_code,
uom_id=cls.env.ref("uom.product_uom_unit").id,
company_id=company_id,
type="product",
type="consu",
is_storable=True,
**vals,
)
)
Expand Down
18 changes: 0 additions & 18 deletions stock_orderpoint_route/views/stock_warehouse_orderpoint_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,6 @@
options="{'no_create': True}"
groups="stock.group_adv_location"
/>
<field name="route_ids" invisible="1" />
</field>
</field>
</record>

<!-- This is to avoid issue below for any module that inherits tree view of
the model `stock.warehouse.orderpoint`.
Example: `stock_orderpoint_manual_procurement`
Field route_ids used in field route_id default domain
([('id', 'in', route_ids)]) must be present in view but is missing.
-->
<record id="view_warehouse_orderpoint_tree" model="ir.ui.view">
<field name="name">stock.warehouse.orderpoint.tree</field>
<field name="model">stock.warehouse.orderpoint</field>
<field name="inherit_id" ref="stock.view_warehouse_orderpoint_tree_editable" />
<field name="arch" type="xml">
<field name="product_uom_name" position="after">
<field name="route_ids" invisible="1" />
</field>
</field>
</record>
Expand Down

0 comments on commit ddd4c89

Please sign in to comment.