[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:
committed by
Yannick Tivisse
parent
824a7e86ed
commit
151ec5c0fb
@@ -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):
|
||||
|
||||
@@ -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')],
|
||||
|
||||
Reference in New Issue
Block a user