Please sign in to comment.
[FIX] sale: ensure a non null date
Sometimes, a sale.order in the SALE state doesn't have a confirmed date, which can cause a traceback. To avoid this, when confirmation_date is null, use the write_date, which is never NULL when sale.order is in sale state. In migration, we will try to populate the confirmation date with the mail.message subtype. As ultimate fallback, we will take the write_date.
- Loading branch information...
Showing with 3 additions and 3 deletions.