'check no error on getting default mrp.production values in multicompany setting'

def test_00_multicompany_user(self):

    StockLocation = self.env['stock.location'].sudo(self.multicompany_user_id)
    fields = ['location_src_id', 'location_dest_id']
    defaults = StockLocation.default_get(['location_id', 'location_dest_id', 'type'])
    for field in fields:
        if defaults.get(field):
            try:
                StockLocation.check_access_rule([defaults[field]], 'read')
            except Exception as exc:
                assert False, ('unreadable    location    %s:    %s' % (field, exc))
