[FIX]can not produce a product that trace_prodution

to reproduce this issue
1. set the product with trace_production flag
2. create a production order and go to produce button
3. on the produce wizard, press produce button
This is the only part of the fix interesting. Please try to keep a minimal diff.