From 132738da5f25beeeadc1cb962c4610a88eadd76a Mon Sep 17 00:00:00 2001 From: Dhawal Limbuwala Date: Mon, 4 Dec 2017 16:19:52 +0100 Subject: [PATCH] [IMP] sale: Don't copy confirmation date on duplication --- addons/sale/models/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/models/sale.py b/addons/sale/models/sale.py index 3946466ab10..fa1089592c0 100644 --- a/addons/sale/models/sale.py +++ b/addons/sale/models/sale.py @@ -130,7 +130,7 @@ class SaleOrder(models.Model): help="Manually set the expiration date of your quotation (offer), or it will set the date automatically based on the template if online quotation is installed.") is_expired = fields.Boolean(compute='_compute_is_expired', string="Is expired") create_date = fields.Datetime(string='Creation Date', readonly=True, index=True, help="Date on which sales order is created.") - confirmation_date = fields.Datetime(string='Confirmation Date', readonly=True, index=True, help="Date on which the sales order is confirmed.", oldname="date_confirm") + confirmation_date = fields.Datetime(string='Confirmation Date', readonly=True, index=True, help="Date on which the sales order is confirmed.", oldname="date_confirm", copy=False) user_id = fields.Many2one('res.users', string='Salesperson', index=True, track_visibility='onchange', default=lambda self: self.env.user) partner_id = fields.Many2one('res.partner', string='Customer', readonly=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)]}, required=True, change_default=True, index=True, track_visibility='always') partner_invoice_id = fields.Many2one('res.partner', string='Invoice Address', readonly=True, required=True, states={'draft': [('readonly', False)], 'sent': [('readonly', False)], 'sale': [('readonly', False)]}, help="Invoice address for current sales order.")