From c90ff2afd8b129eaa5bd451728d4c6c99a7db89d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Theys?= Date: Mon, 20 Aug 2018 15:44:59 +0200 Subject: [PATCH] [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 --- addons/sale_management/models/sale_order_template.py | 4 ---- 1 file changed, 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):