Skip to content Skip to sidebar Skip to footer

Expected Singleton: Stock.move - Odoo V9 Community

I'm creating a stock.picking from fleet_vehicle_log_services with this method: @api.multi def create_picking(self): self.ensure_one() vals = { 'move_lines': self.mo

Solution 1:

One2many fields need special commands for inserting. In your case:

 vals = {
        'move_lines': [(6, 0, self.move_lines.ids)],
        'origin': self.name
    }

Please read this post for more explanations

Post a Comment for "Expected Singleton: Stock.move - Odoo V9 Community"