summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindoteknik_custom/models/product_template.py8
1 files changed, 8 insertions, 0 deletions
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"