pg_update_quotation
							parent
							
								
									eb889a37bd
								
							
						
					
					
						commit
						4468f5a94b
					
				|  | @ -73,3 +73,13 @@ class MyController(http.Controller): | ||||||
|         except Exception as e: |         except Exception as e: | ||||||
|             return e.args[0] |             return e.args[0] | ||||||
|         return sale_order_id |         return sale_order_id | ||||||
|  | 
 | ||||||
|  |     @http.route('/pg_update_quotation', type='json', auth='none', methods=['POST']) | ||||||
|  |     def handle_pg_update_quotation(self, **post): | ||||||
|  |         values = request.jsonrequest | ||||||
|  |         sale_order_obj = request.env['sale.order'].sudo() | ||||||
|  |         try: | ||||||
|  |             sale_order_id = sale_order_obj.pg_update_quotation(values) | ||||||
|  |         except Exception as e: | ||||||
|  |             return e.args[0] | ||||||
|  |         return sale_order_id | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue