summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2023-06-23 15:25:19 +0700
committerstephanchrst <stephanchrst@gmail.com>2023-06-23 15:25:19 +0700
commitfeb55333e94aaec783bce85d36667912b3e90f86 (patch)
tree290eb691ca25255ee4b89b7357189904cb1897b6
parent046aebc189673851511f90f6291790e652b2cc74 (diff)
initial commit
-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"