Skip to content

Commit

Permalink
[MIG] sale_stock_available_info_popup: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bizzappdev committed Apr 25, 2024
1 parent 00a5713 commit ba5ad1c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sale_stock_available_info_popup/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-availability",
"category": "Warehouse Management",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"depends": ["sale_stock", "stock_available"],
"data": ["views/sale_order_views.xml"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<templates>
<t
t-name="sale_stock_available_info_popup.QtyDetailPopOver"
t-inherit="sale_stock.QtyDetailPopOver"
t-name="sale_stock_available_info_popup.QtyAtDatePopover"
t-inherit="sale_stock.QtyAtDatePopover"
t-inherit-mode="extension"
owl="1"
>
Expand All @@ -13,7 +13,7 @@
<td>
<strong>Available to promise</strong>
</td>
<td>
<td class="text-end">
<b t-out='props.record.data.immediately_usable_qty_today' /> <t
t-out="props.record.data.product_uom[1]"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ def setUpClass(cls):
)
picking_in = cls._create_picking(cls, cls.env.ref("stock.picking_type_in"), 5)
picking_in.action_assign()
picking_in.move_ids[0].move_line_ids[0].qty_done = 5
picking_in.move_ids[0].move_line_ids[0].quantity = 5
picking_in._action_done()
picking_out = cls._create_picking(cls, cls.env.ref("stock.picking_type_out"), 3)
picking_out.action_assign()
picking_out.move_ids[0].move_line_ids[0].qty_done = 3
picking_out.move_ids[0].move_line_ids[0].quantity = 3
picking_out._action_done()

def _create_picking(self, picking_type, qty):
Expand Down
2 changes: 1 addition & 1 deletion sale_stock_available_info_popup/views/sale_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
expr="//page/field[@name='order_line']/tree/field[@name='product_uom_qty']"
position="after"
>
<field name="immediately_usable_qty_today" invisible="1" />
<field name="immediately_usable_qty_today" column_invisible="1" />
</xpath>
</field>
</record>
Expand Down

0 comments on commit ba5ad1c

Please sign in to comment.