Skip to content

Commit

Permalink
[MIG] sale_product_pack_assisted: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-zanotti committed Jun 9, 2024
1 parent c0364ce commit 6357ebd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 18 deletions.
2 changes: 1 addition & 1 deletion sale_product_pack_assisted/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Assisted Sale product Pack",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"category": "Sales",
"website": "https://github.com/OCA/product-pack",
"author": "NaN·tic, ADHOC SA, Tecnativa, Odoo Community Association (OCA)",
Expand Down
3 changes: 0 additions & 3 deletions sale_product_pack_assisted/models/sale_order_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,3 @@ def action_assisted_pack_detail(self):
"res_id": self.id,
"context": dict(self.env.context, pricelist=self.order_id.pricelist_id.id),
}

def button_save_data(self):
return True
14 changes: 1 addition & 13 deletions sale_product_pack_assisted/views/sale_order_line_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
</header>
<sheet>
<field name="pack_type" invisible="1" />
<div
attrs="{'invisible':[('pack_type', '!=', 'non_detailed_assisted')]}"
>
<div invisible="pack_type != 'non_detailed_assisted'">
<div name="product_pack">
<label for="assisted_pack_line_ids" />
<field name="assisted_pack_line_ids" />
Expand All @@ -43,16 +41,6 @@
</group>
</div>
</sheet>
<footer>
<button
class="oe_highlight"
name="button_save_data"
string="Save"
type="object"
/>
or
<button class="oe_link" special="cancel" string="Cancel" />
</footer>
</form>
</field>
</record>
Expand Down
2 changes: 1 addition & 1 deletion sale_product_pack_assisted/views/sale_order_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<button
name="action_assisted_pack_detail"
string="Detail"
attrs="{'invisible':[('pack_type', '!=', 'non_detailed_assisted')]}"
invisible="pack_type != 'non_detailed_assisted'"
type="object"
/>
</xpath>
Expand Down

0 comments on commit 6357ebd

Please sign in to comment.