Skip to content

Commit

Permalink
[FIX] repair_picking_after_done: make related picking contain repair_…
Browse files Browse the repository at this point in the history
…id and invisible condition corrected for many2many fields.
  • Loading branch information
DavidJForgeFlow committed Aug 14, 2024
1 parent 15d7bf8 commit c0e2a31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion repair_picking_after_done/views/repair.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
type="object"
class="oe_stat_button"
icon="fa-truck"
attrs="{'invisible': [('picking_ids', '=', False)]}"
attrs="{'invisible': [('picking_ids', '=', [])]}"
>
<div class="o_field_widget o_stat_info">
<span class="o_stat_text">Transfers</span>
Expand Down
1 change: 1 addition & 0 deletions repair_picking_after_done/wizards/repair_move_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def _prepare_stock_move_vals(self, picking):
"picking_type_id": self._get_picking_type().id,
"product_uom_qty": self.quantity,
"product_uom": self.repair_order_id.move_id.product_uom.id,
"repair_id": self.repair_order_id.id,
}

def action_create_transfer(self):
Expand Down

0 comments on commit c0e2a31

Please sign in to comment.