Fall 5431: Anpassung der Auftrags-SST-03
							parent
							
								
									9f1814848b
								
							
						
					
					
						commit
						923a7a2efa
					
				|  | @ -29,6 +29,7 @@ values = { | |||
|     "date_order": "2017-11-21", | ||||
|     "assembled": True, | ||||
|     "line_id": "0000", | ||||
|     "confirm_order": True, | ||||
|     'confirmation_nr': 'FR000001', | ||||
|     "portal_id": "59-0001", | ||||
|     "portal_delivery_id": "111112", | ||||
|  | @ -43,7 +44,6 @@ values = { | |||
|     "delivery_fax": False, | ||||
|     "delivery_phone": False, | ||||
|     "delivery_mobile": "+43 676 5556705", | ||||
|     "delivery_company": False, | ||||
|     "attachment_ids": [{ | ||||
|         "filename": "logo.png", | ||||
|         "binary": c.test_image, | ||||
|  |  | |||
|  | @ -200,6 +200,8 @@ class SaleOrder(models.Model): | |||
|             order_id.pg_create_sale_order_attachments(attachment_vals) | ||||
|         if order_line_vals: | ||||
|             order_id.pg_create_order_lines(order_line_vals) | ||||
|         if vals.get('confirm_order'): | ||||
|             order_id.action_confirm() | ||||
|         return {'id': order_id.id, 'name': order_id.name} | ||||
| 
 | ||||
|     @api.multi | ||||
|  | @ -271,7 +273,7 @@ class SaleOrder(models.Model): | |||
|     def _get_specified_fields(self): | ||||
|         return ['origin', 'client_order_ref', 'note', 'date_order', 'assembled', 'line_id', 'partner_id', | ||||
|                 'fiscal_position_id', 'user_id', 'payment_term_id', 'partner_delivery_id', 'partner_invoice_id', | ||||
|                 'assembly_state', 'confirmation_nr'] | ||||
|                 'assembly_state', 'confirmation_nr', 'confirm_order'] | ||||
| 
 | ||||
|     @api.multi | ||||
|     def write(self, vals): | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue