diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-06-23 15:25:19 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-06-23 15:25:19 +0700 |
| commit | feb55333e94aaec783bce85d36667912b3e90f86 (patch) | |
| tree | 290eb691ca25255ee4b89b7357189904cb1897b6 | |
| parent | 046aebc189673851511f90f6291790e652b2cc74 (diff) | |
initial commit
| -rwxr-xr-x | indoteknik_custom/models/product_template.py | 8 |
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" |
