Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot call model's function #51

Open
hawariakbarr opened this issue Aug 4, 2020 · 2 comments
Open

Cannot call model's function #51

hawariakbarr opened this issue Aug 4, 2020 · 2 comments

Comments

@hawariakbarr
Copy link

I can't call model's function as described in the readme documentation.
Is there an example how to call model's function using this module?

thank you.

@yezyilomo
Copy link
Owner

What kind of error are you getting?.

@ealmeida1225
Copy link

ealmeida1225 commented Nov 13, 2021

In my case I'm getting a 404 error. This is the code in pure Python:
`
URL = current_server_address+'/object/product.template/{product_id}/get_booking_slot_for_day'

data = {
'params': {
'session_id': session_id,
"kwargs ":{"sel_date":"2021/11/15"}
}
}

print (data)
res = requests.post(
URL,
data=json.dumps(data),
headers=headers
)
print(res.text)
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants