Skip to content

Commit

Permalink
[MIG] sale_manual_delivery: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rdualsam committed Jan 9, 2025
1 parent 3b27939 commit f7f7d9d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sale_manual_delivery/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"category": "Sale",
"author": "Camptocamp SA, Odoo Community Association (OCA)",
"license": "AGPL-3",
"version": "14.0.1.0.0",
"version": "18.0.1.0.0",
"website": "https://github.com/OCA/sale-workflow",
"summary": "Create manually your deliveries",
"depends": ["delivery", "sale_stock", "sales_team"],
Expand Down
3 changes: 2 additions & 1 deletion sale_manual_delivery/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ def _action_launch_stock_rule_manual(self, previous_product_uom_qty=False):
# Qty comes from the manual delivery wizard
# This is different than the original method
manual_line = manual_delivery.line_ids.filtered(
lambda l: l.order_line_id == line
lambda manual_delivery_line,
sol=line: manual_delivery_line.order_line_id == sol
)
if not manual_line.quantity:
continue
Expand Down
4 changes: 2 additions & 2 deletions sale_manual_delivery/views/sale_order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</field>
</record>
<record id="view_order_line_tree" model="ir.ui.view">
<field name="name">sale.order.line.tree</field>
<field name="name">sale.order.line.list</field>
<field name="model">sale.order.line</field>
<field name="inherit_id" ref="sale.view_order_line_tree" />
<field name="arch" type="xml">
Expand Down Expand Up @@ -52,7 +52,7 @@
<field name="name">Sale Lines to Deliver</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sale.order.line</field>
<field name="view_mode">tree</field>
<field name="view_mode">list</field>
<field name="search_view_id" ref="view_sales_order_undelivered_line_filter" />
<field name="context">{"search_default_filter_unplanned":1}</field>
<field name="filter" eval="True" />
Expand Down
4 changes: 2 additions & 2 deletions sale_manual_delivery/wizard/manual_delivery.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
</group>
</group>
<field name='line_ids'>
<tree editable="bottom" create="0">
<list editable="bottom" create="0">
<field name="order_line_id" invisible="1" force_save="1" />
<field name="product_id" />
<field name="name" />
<field name="qty_ordered" string="Ordered" />
<field name="qty_procured" string="Procured" />
<field name="quantity" />
</tree>
</list>
</field>
</sheet>
<footer>
Expand Down

0 comments on commit f7f7d9d

Please sign in to comment.