Odoo Help


"ValueError: "name 'procurement_lines_get' is not defined" error when Confirming sales order

Jens Wedekind
on 7/30/14, 8:16 AM 2,973 views

I get this error: ValueError: "name 'procurement_lines_get' is not defined" while evaluating u'procurement_lines_get()'


me too...

Clément THOMAS
on 7/30/14, 9:12 AM
Jos De Graeve
On 7/30/14, 12:16 PM


I've got that issue too.  It does not appear with a new database, but only with a previously created database. This is probably due to a change in the workflow XML that does is not updated in existing databases.

To fix the issue:

  • go to Settings -> Technical -> Workflows -> Transitions
  • advanced search "Trigger expression = procurement_lines_get()"
  • Delete the transition
  • upgrade the "sale" module, that will recreate the transition with the correct parameters.

After that, confirming sale orders should work again.



Jens Wedekind
On 7/31/14, 1:32 PM

Thank you... works great!!!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 7/30/14, 8:16 AM
Seen: 2973 times
Last updated: 3/16/15, 8:10 AM