Skip to content

Commit

Permalink
[IMP] website_sale_cancel_not_show: Don't show cancel state quotations
Browse files Browse the repository at this point in the history
  • Loading branch information
unaiberis authored and anajuaristi committed Oct 10, 2024
1 parent b67e758 commit 30caa2d
Show file tree
Hide file tree
Showing 12 changed files with 3 additions and 3 deletions.
File renamed without changes.

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"])]
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 30caa2d

Please sign in to comment.