-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
without authentication #21
Comments
Obtain session_id from a cookie created(Not the one from a response). It'll be a long string something like "62dd55784cb0b1f69c584f7dc1eea6f587e32570", Use this as a parameter to all requests. |
How should I send the session_id? |
good question |
@mdemirbilek, @armdan Yes, you can use cookie. |
@armdan You can accomplish this with a little tweak on controllers.py file, Just add this above @http.route(
'/api/product.template/',
auth='public', methods=['GET'], csrf=False)
def get_product_template(self, **params):
return self.get_model_data('product.template', **params) |
did not work odoo.exceptions.AccessError: ("Sorry, you are not allowed to access documents of type 'Warehouse' (stock.warehouse). This operation is allowed for the groups:\n\t- Inventory/Administrator\n\t- Purchase/Administrator\n\t- Purchase/User\n\t- Sales/User: Own Documents Only\n\t- User types/Internal User - (Operation: read, User: 4)", None) - - -``` |
Can this be used only to get a product list and price without any authentication?
like https://domain.com/api/product.template/?query={name,qty_available}
The text was updated successfully, but these errors were encountered: