Skip to Content
Menu
This question has been flagged
3 Replies
9484 Views

Hi to everyone,

When I try to validate a purchase invoice created from a purchase order, it is imposible to validate it

This error appears:

File "/opt/odoo/odoo-server/odoo/fields.py", line 1780, in convert_to_cache
    raise ValueError("Wrong value for %s: %r" % (self, value))
ValueError: Wrong value for ir.attachment.type: u'in_invoice'


It is shown in this post with no solution (instead purchases is sales)

https://www.odoo.com/fr_FR/groups/community-59/community-23545985#


Any idea?


Thanks.

 

Avatar
Discard

try to pass context 'type': 'in_invoice' while creating your purchase order

How can I do such thing?


Thank you for answering.