I'm new to Odoo and trying to understand the basics of how to save data to your model from a POST request like the following
curl -X POST --data "name=Mysterious Odoo&author_ids=Doge" http://0.0.0.0:8069/test
I couldn't find any examples online and the docs don't help me either. In Odoo Development Cookbook it says Odoo intermingles with GET and POST parameters and passes them as keyword argument to the handler. However, I can't get my code running without getting `400 Bad Request. Invalid CSRF Token`:
@http.route('/test', type='http', auth='none', methods=['POST'])
def test(self, **kwargs):
record = request.env['library.book']
record.create(kwargs)
Any pointer to solve this would be appreciated.