[IMP] sale_management: allow using neither sign nor pay on SO template
Previously we required one or the other to be active. We removed this limitation for SO, thus the default value should be the company setting for both on the template as well. Task: 1876864 PR: none
This commit is contained in:
@@ -11,10 +11,6 @@ class SaleOrderTemplate(models.Model):
|
||||
_description = "Quotation Template"
|
||||
|
||||
def _get_default_require_signature(self):
|
||||
# A confirmation mode (sign or pay) is mandatory on a quotation template
|
||||
# If none has been activated in the settings, we force 'sign' as confirmation mode
|
||||
if not self.env.user.company_id.portal_confirmation_pay:
|
||||
return True
|
||||
return self.env.user.company_id.portal_confirmation_sign
|
||||
|
||||
def _get_default_require_payment(self):
|
||||
|
||||
Reference in New Issue
Block a user