[IMP] website_quote : set default value for require_payment on SO and quote template

PURPOSE
=======

In the payment options there are 3 radio buttons given , but as per the normal behavior of radio,  there must be one selected by default.
This commit is contained in:
Mehul Patel
2017-06-13 15:10:15 +02:00
committed by Yannick Tivisse
parent 824a7e86ed
commit 151ec5c0fb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ class SaleOrder(models.Model):
(0, 'Not mandatory on website quote validation'),
(1, 'Immediate after website order validation'),
(2, 'Immediate after website order validation and save a token'),
], 'Payment', help="Require immediate payment by the customer when validating the order from the website quote")
], 'Payment', default=0, help="Require immediate payment by the customer when validating the order from the website quote")
@api.multi
def copy(self, default=None):
+1 -1
View File
@@ -21,7 +21,7 @@ class SaleQuoteTemplate(models.Model):
(0, 'Not mandatory on website quote validation'),
(1, 'Immediate after website order validation'),
(2, 'Immediate after website order validation and save a token'),
], 'Payment', help="Require immediate payment by the customer when validating the order from the website quote")
], 'Payment', default=0, help="Require immediate payment by the customer when validating the order from the website quote")
mail_template_id = fields.Many2one(
'mail.template', 'Confirmation Mail',
domain=[('model', '=', 'sale.order')],