From cdc69856b20a9be60406e813a73560d93ab865b3 Mon Sep 17 00:00:00 2001 From: Adrian Resua Vidal Date: Thu, 27 Jun 2024 14:25:08 +0200 Subject: [PATCH] [MIG] website_sale_product_attachment: Migration to 17.0 --- website_sale_product_attachment/__manifest__.py | 2 +- website_sale_product_attachment/views/ir_attachment.xml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/website_sale_product_attachment/__manifest__.py b/website_sale_product_attachment/__manifest__.py index 19556506d3..4a174c230e 100644 --- a/website_sale_product_attachment/__manifest__.py +++ b/website_sale_product_attachment/__manifest__.py @@ -5,7 +5,7 @@ { "name": "eCommerce product attachments", "summary": "Let visitors download attachments from a product page", - "version": "16.0.1.0.0", + "version": "17.0.1.0.0", "development_status": "Beta", "category": "Website", "website": "https://github.com/OCA/e-commerce", diff --git a/website_sale_product_attachment/views/ir_attachment.xml b/website_sale_product_attachment/views/ir_attachment.xml index 90ff8191a0..c8d6adf328 100644 --- a/website_sale_product_attachment/views/ir_attachment.xml +++ b/website_sale_product_attachment/views/ir_attachment.xml @@ -15,8 +15,7 @@ name="attached_in_product_tmpl_ids" widget="many2many_tags" options="{'no_create': True}" - invisible="context.get('hide_attachment_products', False)" - attrs="{'invisible': [('public', '=', False)]}" + invisible="context.get('hide_attachment_products', False) or public == False" />