feat: Sincronizar Productos desde Tryton
This commit is contained in:
@@ -50,6 +50,10 @@ class Api {
|
||||
getCSVForTryton() {
|
||||
return this.apiImplementation.getCSVForTryton();
|
||||
}
|
||||
|
||||
getProductsFromTryton() {
|
||||
return this.apiImplementation.getProductsFromTryton();
|
||||
}
|
||||
}
|
||||
|
||||
export default Api;
|
||||
|
||||
@@ -63,6 +63,12 @@ class DjangoApi {
|
||||
return this.getRequest(url);
|
||||
}
|
||||
|
||||
getProductsFromTryton(){
|
||||
const url = this.base + '/don_confiao/api/importar_productos_de_tryton';
|
||||
return this.postRequest(url, {});
|
||||
}
|
||||
|
||||
|
||||
getRequest(url) {
|
||||
return new Promise ((resolve, reject) => {
|
||||
fetch(url)
|
||||
|
||||
Reference in New Issue
Block a user