bemade_update_validity_date_when_send_so: fix action method returning void.

This commit is contained in:
Marc Durepos 2024-04-01 14:41:43 -04:00
parent 17fd9001bc
commit 53ac9d9112

View file

@ -25,4 +25,4 @@ class SaleOrder(models.Model):
# Updates the validity date to 30 days from now
self.validity_date = datetime.now() + timedelta(days=30)
# Calls the original 'action_quotation_send' method from 'sale.order'
super(SaleOrder, self).action_quotation_send()
return super(SaleOrder, self).action_quotation_send()