odoo-addons icon indicating copy to clipboard operation
odoo-addons copied to clipboard

Issue trying to make a PUT

Open oadiazp opened this issue 5 years ago • 2 comments

The PUT example that's in the README doesn't work for FK attributes because the payload is only expecting the form parameters and there is passing it on the body, it says the update was successful but isn't true because the form params are always strings and Odoo crashes on that because the FK should be integers

oadiazp avatar Feb 20 '20 21:02 oadiazp

What version are you referring to?

On Thu, 20 Feb 2020 at 22:57, oadiazp [email protected] wrote:

The PUT example that's in the README doesn't work for FK attributes because the payload is only expecting the form parameters and there is passing it on the body, it says the update was successful but isn't true because the form params are always strings and Odoo crashes on that because the FK should be integers

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ajepe/odoo-addons/issues/19?email_source=notifications&email_token=AEVVAXONGLZPLWWJAAV2SS3RD34DJA5CNFSM4KYXTKP2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IPEES7Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEVVAXK63YZAVD3SUYNYIMTRD34DJANCNFSM4KYXTKPQ .

ajepe avatar Feb 21 '20 07:02 ajepe

12.0

oadiazp avatar Feb 22 '20 10:02 oadiazp