SST-3 change handling of attachments as it causes errors if attachments are missing
							parent
							
								
									92aa4c7d8a
								
							
						
					
					
						commit
						c51d031484
					
				|  | @ -220,9 +220,9 @@ class SaleOrder(models.Model): | ||||||
|                 delivery_vals['type'] = 'delivery' |                 delivery_vals['type'] = 'delivery' | ||||||
|             delivery_partner = delivery_partner.create(delivery_vals) |             delivery_partner = delivery_partner.create(delivery_vals) | ||||||
| 
 | 
 | ||||||
|         attachment_vals = vals.get('attachment_ids', False) |         attachment_vals = vals.pop('attachment_ids', False) | ||||||
|         order_line_vals = vals.get('order_lines', False) |         order_line_vals = vals.get('order_lines', False) | ||||||
|         del vals['attachment_ids'] | #        if 'attachment_ids' in vals: del vals['attachment_ids'] | ||||||
|         del vals['order_lines'] |         del vals['order_lines'] | ||||||
|         self.check_not_specified_fields(vals) |         self.check_not_specified_fields(vals) | ||||||
|         vals = self.correct_values(vals) |         vals = self.correct_values(vals) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue