[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:
Sébastien Theys
2018-08-20 15:52:54 +02:00
parent a4a414f356
commit c90ff2afd8
@@ -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):