summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2018-08-20 15:44:59 +0200
committerSébastien Theys <seb@odoo.com>2018-08-20 15:52:54 +0200
commitc90ff2afd8b129eaa5bd451728d4c6c99a7db89d (patch)
tree2a657c059ea56b92856099526cce47810d888181 /addons
parenta4a414f35681f9e54f1f46a3b4f5871153649087 (diff)
[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
Diffstat (limited to 'addons')
-rw-r--r--addons/sale_management/models/sale_order_template.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/addons/sale_management/models/sale_order_template.py b/addons/sale_management/models/sale_order_template.py
index 1380e711770..9bbfbfb1e2a 100644
--- a/addons/sale_management/models/sale_order_template.py
+++ b/addons/sale_management/models/sale_order_template.py
@@ -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):