Skip to content

Commit

Permalink
[FIX]sale_ux: subscription confirmation
Browse files Browse the repository at this point in the history
closes #752

Signed-off-by: Juan José Scarafía <jjs@adhoc.com.ar>
  • Loading branch information
jok-adhoc committed Dec 15, 2023
1 parent 6c0d21a commit c534d8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion sale_ux/__manifest__.py
Expand Up @@ -19,7 +19,7 @@
##############################################################################
{
'name': 'Sale UX',
'version': "16.0.1.10.0",
'version': "16.0.1.11.0",
'category': 'Sales',
'sequence': 14,
'summary': '',
Expand Down
11 changes: 6 additions & 5 deletions sale_ux/models/sale_order.py
Expand Up @@ -103,11 +103,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 c534d8d

Please sign in to comment.