title: The field 'field' doesn't exist - Odoo v10 community
body: <p>I have this class:</p>
  
  <pre><code>from odoo import fields, models, api
  
  class ResCompany(models.Model):
  _inherit = 'res.company'
  
  jour_id = fields.Many2one('account.journal', string='Journal', required=False,
      help="Default journal for damaged invoices")
  acc_id = fields.Many2one('account.account', string='Account', required=False,
      help="Default account used for invoices and lines from damaged invoices")
  printer_fiscal = fields.Boolean(string='Manages fiscal printer',
      help='Indicates that the company can operate a fiscal printer')
  
  @api.model
  def create(self, cr, uid, vals, context=None):
      """ To create a new record,
      adds a Boolean field to true
      indicates that the partner is a company
      """
      if context is None:
          context = {}
      context.update({'create_company': True})
      return super(ResCompany, self).create(cr, uid, vals, context=context)
  
  @api.multi
  def write(self, cr, uid, ids, values, context=None):
      """ To write a new record,
      adds a Boolean field to true
      indicates that the partner is a company
      """
      context = dict(context or {})
      context.update({'create_company': True})
      return super(ResCompany, self).write(cr, uid, ids, values,
                                           context=context)
  </code></pre>
  
  <p>And this is the view of it:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;odoo&gt;
    &lt;data&gt;
      &lt;record id="view_account_config_settings2" model="ir.ui.view"&gt;
          &lt;field name="name"&gt;account settings2&lt;/field&gt;
          &lt;field name="model"&gt;account.config.settings&lt;/field&gt;
          &lt;field name="arch" type="xml"&gt;
              &lt;form string="Configure Accounting" class="oe_form_configuration"&gt;
                   &lt;separator string="Invoice Damaged" groups="account.group_account_user"/&gt;
                      &lt;group name="fr1_grp" string="Damaged Invoices Info"&gt;
                          &lt;field name="jour_id"/&gt;
                          &lt;newline/&gt;
                          &lt;field name="acc_id" domain="[('type','in',('other','receivable','payable'))]"/&gt;
                      &lt;/group&gt;
                      &lt;group name="fr2_grp" string="Does This Company Use Fiscal Printer?"&gt;
                          &lt;field name="printer_fiscal"/&gt;
                      &lt;/group&gt;
              &lt;/form&gt;
          &lt;/field&gt;
      &lt;/record&gt;
    &lt;/data&gt;
  &lt;/odoo&gt;
  </code></pre>
  
  <p>It throws me this error on view validation:</p>
  
  <pre><code>2017-02-28 18:48:17,540 6919 ERROR gilda_1 werkzeug: Error on request:
  Traceback (most recent call last):
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/werkzeug/serving.py", line 177, in run_wsgi
  execute(self.server.app)
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/werkzeug/serving.py", line 165, in execute
  application_iter = app(environ, start_response)
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/odoo-10.0rc1c_20161005-py2.7.egg/odoo/service/server.py", line 246, in app
  return self.app(e, s)
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/odoo-10.0rc1c_20161005-py2.7.egg/odoo/service/wsgi_server.py", line 184, in application
  return application_unproxied(environ, start_response)
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/odoo-10.0rc1c_20161005-py2.7.egg/odoo/service/wsgi_server.py", line 170, in application_unproxied
  result = handler(environ, start_response)
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/odoo-10.0rc1c_20161005-py2.7.egg/odoo/http.py", line 1306, in __call__
  return self.dispatch(environ, start_response)
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/odoo-10.0rc1c_20161005-py2.7.egg/odoo/http.py", line 1454, in dispatch
  odoo.registry(db).check_signaling()
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/odoo-10.0rc1c_20161005-py2.7.egg/odoo/__init__.py", line 55, in registry
  return modules.registry.Registry(database_name)
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/odoo-10.0rc1c_20161005-py2.7.egg/odoo/modules/registry.py", line 55, in __new__
  return cls.new(db_name)
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/odoo-10.0rc1c_20161005-py2.7.egg/odoo/modules/registry.py", line 78, in new
  odoo.modules.load_modules(registry._db, force_demo, status, update_module)
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/odoo-10.0rc1c_20161005-py2.7.egg/odoo/modules/loading.py", line 333, in load_modules
  force, status, report, loaded_modules, update_module)
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/odoo-10.0rc1c_20161005-py2.7.egg/odoo/modules/loading.py", line 235, in load_marked_modules
  loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
  File "/home/kristian/.virtualenvs/odoov10/lib/python2.7/site-packages/odoo-10.0rc1c_20161005-py2.7.egg/odoo/modules/loading.py", line 177, in load_module_graph
  env['ir.ui.view']._validate_module_views(module_name)
  File "/home/kristian/odoov10/odoo-10.0rc1c-20161005/odoo/addons/base/ir/ir_ui_view.py", line 1171, in _validate_module_views
  self.raise_view_error("Can't validate view: %s" % e.message, vid)
  File "/home/kristian/odoov10/odoo-10.0rc1c-20161005/odoo/addons/base/ir/ir_ui_view.py", line 445, in raise_view_error
  raise ValueError(message)
  ValueError: Can't validate view: El campo `acc_id` no existe
  
  Error de contexto:
  Vista `account settings2`
  [view_id: 895, xml_id:    l10n_ve_fiscal_requirements.view_account_config_settings2, model:  account.config.settings, parent_id: n/a]
  </code></pre>
  
  <p>It says that it can't validate the view because the field <code>acc_id</code> doesn't exists.</p>
  
  <p>But it's there, even with the <code>string</code> flag which is mandatory on Odoo v10 community.</p>
  
  <p>Can anybody point me what could be the issue here? </p>