From feb55333e94aaec783bce85d36667912b3e90f86 Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Fri, 23 Jun 2023 15:25:19 +0700 Subject: initial commit --- indoteknik_custom/models/product_template.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/indoteknik_custom/models/product_template.py b/indoteknik_custom/models/product_template.py index a4f8f031..018d1b89 100755 --- a/indoteknik_custom/models/product_template.py +++ b/indoteknik_custom/models/product_template.py @@ -190,8 +190,16 @@ class ProductTemplate(models.Model): product.product_rating = rate product.last_calculate_rating = current_time + def _get_stock_website(self): + print(1) + def _get_stock_altama(self): + print(1) + altama_stock_url = "https://erpapi.altama.co.id/erp/api/stock/buffer/btob" + def _get_token_altama(self): + print(1) + altama_token_url = "https://kc.altama.co.id/realms/altama/protocol/openid-connect/token" class ProductProduct(models.Model): _inherit = "product.product" -- cgit v1.2.3