Skip to content

Commit

Permalink
[MIG] website_sale_stock_provisioning_date: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arantxa-s73 authored and miguel-S73 committed Aug 9, 2024
1 parent 71c3555 commit 7f9f9c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,13 @@ def _get_combination_info(
combination=False,
product_id=False,
add_qty=1,
pricelist=False,
parent_combination=False,
only_template=False,
):
combination_info = super()._get_combination_info(
combination=combination,
product_id=product_id,
add_qty=add_qty,
pricelist=pricelist,
parent_combination=parent_combination,
only_template=only_template,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,8 @@
<!-- Copyright 2020 Tecnativa - Ernesto Tejeda
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<templates>
<t t-extend="website_sale_stock.product_availability">
<t
t-jquery="div[t-if='!allow_out_of_stock_order and show_availability and cart_qty']"
t-operation="after"
>
<!-- If qty_available - outgoing_qty > 0 or show_next_provisioning_date
is not checked, then provisioning_date is False -->
<t t-inherit="website_sale_stock.product_availability" t-inherit-mode="extension">
<xpath expr="//div[@id='already_in_cart_message']" position="after">
<div
t-if="provisioning_date"
t-attf-class="availability_message_#{product_template} text-success mt16"
Expand All @@ -17,6 +12,6 @@
Next provisioning date: <t t-esc="provisioning_date" />
</span>
</div>
</t>
</xpath>
</t>
</templates>
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def setUpClass(cls):
limit=1,
)
picking_form = Form(
recordp=cls.env["stock.picking"].with_context(
cls.env["stock.picking"].with_context(
default_picking_type_id=incoming_picking_type.id
),
view="stock.view_picking_form",
Expand Down

0 comments on commit 7f9f9c2

Please sign in to comment.