Commit 4a4fd356 authored by Jérome Perrin's avatar Jérome Perrin

Remove hand written SQL. We use inventory API now

parent 0ad24fe5
......@@ -71,26 +71,6 @@
"There should be 101 orders, the original and 100 clones. You can add more if you want to add some randomness to the cosine generation. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Extract order data from database\n",
"\n",
"In order to create a time series of orders we must create the report of the past orders to be used by the method. So we need to create a new Z SQL Method. You must go to the 'custom' folder in 'portal_skins' (`https://<your_instance_url>/portal_skins/custom/manage`), click in 'Add' and then in 'Z SQL Method'. Use 'SaleOrderModule_zGetStock' as SQL Method ID.\n",
"\n",
"Then you will type the following query:\n",
"\n",
"```sql\n",
"SELECT\n",
" stock.date AS date, stock.quantity\n",
"FROM\n",
" stock\n",
"```\n",
"\n",
"All the filtering, grouping and processing of this data will be done using `Pandas` later."
]
},
{
"cell_type": "markdown",
"metadata": {},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment