From 30caa2d49a32afce54a474d00d2adc0700330d7f Mon Sep 17 00:00:00 2001 From: Unai Beristain Date: Wed, 9 Oct 2024 16:19:00 +0200 Subject: [PATCH] [IMP] website_sale_cancel_not_show: Don't show cancel state quotations --- .../odoo/addons/website_sale_cancel_not_show | 1 + .../setup.py | 0 .../odoo/addons/website_sale_my_account_state | 1 - .../README.rst | 0 .../__init__.py | 0 .../__manifest__.py | 0 .../controllers/__init__.py | 0 .../controllers/main.py | 4 ++-- .../i18n/es.po | 0 .../i18n/eu_ES.po | 0 .../i18n/website_sale_my_account_state.pot | 0 .../views/website_sale_my_account_state_templates.xml | 0 12 files changed, 3 insertions(+), 3 deletions(-) create mode 120000 setup/website_sale_cancel_not_show/odoo/addons/website_sale_cancel_not_show rename setup/{website_sale_my_account_state => website_sale_cancel_not_show}/setup.py (100%) delete mode 120000 setup/website_sale_my_account_state/odoo/addons/website_sale_my_account_state rename {website_sale_my_account_state => website_sale_cancel_not_show}/README.rst (100%) rename {website_sale_my_account_state => website_sale_cancel_not_show}/__init__.py (100%) rename {website_sale_my_account_state => website_sale_cancel_not_show}/__manifest__.py (100%) rename {website_sale_my_account_state => website_sale_cancel_not_show}/controllers/__init__.py (100%) rename {website_sale_my_account_state => website_sale_cancel_not_show}/controllers/main.py (96%) rename {website_sale_my_account_state => website_sale_cancel_not_show}/i18n/es.po (100%) rename {website_sale_my_account_state => website_sale_cancel_not_show}/i18n/eu_ES.po (100%) rename {website_sale_my_account_state => website_sale_cancel_not_show}/i18n/website_sale_my_account_state.pot (100%) rename {website_sale_my_account_state => website_sale_cancel_not_show}/views/website_sale_my_account_state_templates.xml (100%) diff --git a/setup/website_sale_cancel_not_show/odoo/addons/website_sale_cancel_not_show b/setup/website_sale_cancel_not_show/odoo/addons/website_sale_cancel_not_show new file mode 120000 index 00000000..d2f85d39 --- /dev/null +++ b/setup/website_sale_cancel_not_show/odoo/addons/website_sale_cancel_not_show @@ -0,0 +1 @@ +../../../../website_sale_cancel_not_show \ No newline at end of file diff --git a/setup/website_sale_my_account_state/setup.py b/setup/website_sale_cancel_not_show/setup.py similarity index 100% rename from setup/website_sale_my_account_state/setup.py rename to setup/website_sale_cancel_not_show/setup.py diff --git a/setup/website_sale_my_account_state/odoo/addons/website_sale_my_account_state b/setup/website_sale_my_account_state/odoo/addons/website_sale_my_account_state deleted file mode 120000 index 1010f795..00000000 --- a/setup/website_sale_my_account_state/odoo/addons/website_sale_my_account_state +++ /dev/null @@ -1 +0,0 @@ -../../../../website_sale_my_account_state \ No newline at end of file diff --git a/website_sale_my_account_state/README.rst b/website_sale_cancel_not_show/README.rst similarity index 100% rename from website_sale_my_account_state/README.rst rename to website_sale_cancel_not_show/README.rst diff --git a/website_sale_my_account_state/__init__.py b/website_sale_cancel_not_show/__init__.py similarity index 100% rename from website_sale_my_account_state/__init__.py rename to website_sale_cancel_not_show/__init__.py diff --git a/website_sale_my_account_state/__manifest__.py b/website_sale_cancel_not_show/__manifest__.py similarity index 100% rename from website_sale_my_account_state/__manifest__.py rename to website_sale_cancel_not_show/__manifest__.py diff --git a/website_sale_my_account_state/controllers/__init__.py b/website_sale_cancel_not_show/controllers/__init__.py similarity index 100% rename from website_sale_my_account_state/controllers/__init__.py rename to website_sale_cancel_not_show/controllers/__init__.py diff --git a/website_sale_my_account_state/controllers/main.py b/website_sale_cancel_not_show/controllers/main.py similarity index 96% rename from website_sale_my_account_state/controllers/main.py rename to website_sale_cancel_not_show/controllers/main.py index 9df04840..0cc733f7 100644 --- a/website_sale_my_account_state/controllers/main.py +++ b/website_sale_cancel_not_show/controllers/main.py @@ -32,7 +32,7 @@ def _prepare_home_portal_values(self, counters): def _prepare_quotations_domain(self, partner): domain = [ ("message_partner_ids", "child_of", [partner.commercial_partner_id.id]), - ("state", "in", ["sent", "cancel", "draft"]), + ("state", "in", ["sent", "draft"]), ] return domain @@ -68,7 +68,7 @@ def _prepare_sale_portal_rendering_values( if quotation_page: domain = [ ("partner_id", "=", partner_id), - ("state", "in", ["draft", "sent", "cancel"]), + ("state", "in", ["draft", "sent"]), ] else: domain = [("partner_id", "=", partner_id), ("state", "in", ["sale"])] diff --git a/website_sale_my_account_state/i18n/es.po b/website_sale_cancel_not_show/i18n/es.po similarity index 100% rename from website_sale_my_account_state/i18n/es.po rename to website_sale_cancel_not_show/i18n/es.po diff --git a/website_sale_my_account_state/i18n/eu_ES.po b/website_sale_cancel_not_show/i18n/eu_ES.po similarity index 100% rename from website_sale_my_account_state/i18n/eu_ES.po rename to website_sale_cancel_not_show/i18n/eu_ES.po diff --git a/website_sale_my_account_state/i18n/website_sale_my_account_state.pot b/website_sale_cancel_not_show/i18n/website_sale_my_account_state.pot similarity index 100% rename from website_sale_my_account_state/i18n/website_sale_my_account_state.pot rename to website_sale_cancel_not_show/i18n/website_sale_my_account_state.pot diff --git a/website_sale_my_account_state/views/website_sale_my_account_state_templates.xml b/website_sale_cancel_not_show/views/website_sale_my_account_state_templates.xml similarity index 100% rename from website_sale_my_account_state/views/website_sale_my_account_state_templates.xml rename to website_sale_cancel_not_show/views/website_sale_my_account_state_templates.xml