title: Odoo: Invalid field on model
body: <p>I have created a new model in Odoo.</p>
  <p>Later, I added a new field to the model but when I try to access that new field (write value) I get the message &quot;Invalid field 'aname' on model 'res.country.state.city&quot;</p>
  <p>I checked the database and found the field, it was also found in the model view.
  <a href="https://i.stack.imgur.com/WfoBl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WfoBl.png" alt="enter image description here" /></a></p>
  <p>I thought it might be a cache problem and tried to invalidate the cache <code>self.env.invalidate_all()</code> but it's no longer supported in new versions of Odoo.</p>