Skip to content

Commit

Permalink
[FIX]sale_ux: subscription confirmation
Browse files Browse the repository at this point in the history
X-original-commit: c534d8d
  • Loading branch information
jok-adhoc authored and jjscarafia committed Dec 18, 2023
1 parent 4c66030 commit 46f7bb8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions sale_ux/models/sale_order.py
Expand Up @@ -135,11 +135,12 @@ def check_force_invoiced_status(self):
'Only users with "%s / %s" can Set Invoiced manually') % (
group.category_id.name, group.name))

def _get_forbidden_state_confirm(self):
# This is because some reason the button are present when you
# validate, this way the sale order only validate if the state are
# 'draft' or 'sent'
return super()._get_forbidden_state_confirm() | set({'sale'})
# COMENTAMOS PARA FIX TICKET 68773. ToDo: Evaluar
# def _get_forbidden_state_confirm(self):
# # This is because some reason the button are present when you
# # validate, this way the sale order only validate if the state are
# # 'draft' or 'sent'
# return super()._get_forbidden_state_confirm() | set({'sale'})

def _get_update_prices_lines(self):
lines = super()._get_update_prices_lines()
Expand Down

0 comments on commit 46f7bb8

Please sign in to comment.