diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 48cd00f..578e6c2 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -56,7 +56,8 @@ { title: 'Cuadres de tarro', route: '/cuadres_de_tarro', icon: 'mdi-chart-bar'}, { title: 'CSV Tryton', route: '/ventas_para_tryton', icon: 'mdi-file-table'}, { title: 'Compra adm', route: '/compra_admin', icon: 'mdi-cart'}, - { title: 'Sincronizar Tryton Productos', route: '/sincronizar_productos_tryton', icon: 'trytonIcon'}, + { title: 'Actualizar Productos De Tryton', route: '/sincronizar_productos_tryton', icon: 'trytonIcon'}, + { title: 'Actualizar Clientes De Tryton', route: '/sincronizar_clientes_tryton', icon: 'trytonIcon'}, ], }), watch: { diff --git a/src/pages/sincronizar_clientes_tryton.vue b/src/pages/sincronizar_clientes_tryton.vue new file mode 100644 index 0000000..d9811ee --- /dev/null +++ b/src/pages/sincronizar_clientes_tryton.vue @@ -0,0 +1,75 @@ + + + diff --git a/src/services/api.js b/src/services/api.js index 411eef5..3dbbf5c 100644 --- a/src/services/api.js +++ b/src/services/api.js @@ -54,6 +54,10 @@ class Api { getProductsFromTryton() { return this.apiImplementation.getProductsFromTryton(); } + + getCustomersFromTryton() { + return this.apiImplementation.getCustomersFromTryton(); + } } export default Api; diff --git a/src/services/django-api.js b/src/services/django-api.js index d93fc4e..ab656a1 100644 --- a/src/services/django-api.js +++ b/src/services/django-api.js @@ -68,6 +68,10 @@ class DjangoApi { return this.postRequest(url, {}); } + getCustomersFromTryton(){ + const url = this.base + '/don_confiao/api/importar_clientes_de_tryton'; + return this.postRequest(url, {}); + } getRequest(url) { return new Promise ((resolve, reject) => {