ajepe / odoo-addons

Odoo addons
24 stars 40 forks source link

Issue trying to make a PUT #19

Open oadiazp opened 4 years ago

oadiazp commented 4 years ago

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

ajepe commented 4 years ago

What version are you referring to?

On Thu, 20 Feb 2020 at 22:57, oadiazp notifications@github.com 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 .

oadiazp commented 4 years ago

12.0