This question has been flagged
2280 Views

I am trying to fetch a value from a custom field in sale order line to the automatically generated purchase order. What I did is editing some methods in sale.py, procurement.py, stock_move.py, stock .py. Then I get this error:

 values.setdefault('company_id', self.env['res.company']._company_default_get('procurement.group'))

ValueError: <class 'AttributeError'>: "'str' object has no attribute 'setdefault'" while evaluating

'model.run_scheduler(True)'

My question is how to fix this error or how to fetch values from custom fields from sale order line to the automatically generated purchase order in odoo v11.
Thanks 






Avatar
Discard