title: ERROR:RELAXNGV:RELAXNG_ERR_EXTRACONTENT: Element form has extra content: sheet
body: <p>I'm going to developer work offer module.in that module if we selected the relevant division we can select workers  for work offer for them (in plantation industry). tried with comparing lunch module (lunch order form)
  but i got this error. (OpenERP ver 7)</p>
  
  <p>here is my view.xml</p>
  
  <pre><code>    &lt;record model="ir.ui.view" id="bpl_work_offer_form"&gt;
          &lt;field name="name"&gt;bpl.work.offer.form&lt;/field&gt;
          &lt;field name="model"&gt;bpl.work.offer&lt;/field&gt;
          &lt;field name="arch" type="xml"&gt;
              &lt;form string='bpl_work_offer'&gt;
                  &lt;sheet&gt;
                      &lt;group&gt;
                          &lt;group&gt;
                              &lt;field name='user_id' /&gt;
                          &lt;/group&gt;
                          &lt;group&gt;
                              &lt;field name='date_of_offer' /&gt;
                          &lt;/group&gt;
                      &lt;/group&gt;
                      &lt;div name="Worker Selection"&gt;&lt;/div&gt;
                      &lt;separator string='Select workers' /&gt;
                      &lt;field name='selected_workers_line_ids' nolabel='1'&gt;
                          &lt;tree string='List' editable='bottom'&gt;
                              &lt;field name='worker_id' /&gt;
                              &lt;field name='is_selected' /&gt;
                          &lt;/tree&gt;
                      &lt;/field&gt;
                      &lt;group class='oe_subtotal_footer oe_right'&gt;
                          &lt;field name='total_workers' /&gt;
                      &lt;/group&gt;
                      &lt;br /&gt;
                      &lt;br /&gt;
                  &lt;/sheet&gt;
              &lt;/form&gt;
          &lt;/field&gt;
      &lt;/record&gt;
  </code></pre>
  
  <p>here is my model class</p>
  
  <pre><code>class bpl_work_offer(osv.osv):
      _name = "bpl.work.offer"
      _description = "BPL Work Offer"
      _columns = {
          'user_id': fields.many2one('res.users', 'User Name'),
          'date_of_offer': fields.date('Date'),
          'bpl_company_id':fields.many2one('bpl.company.registration', 'Company', help='Company'),
          'bpl_estate_id':fields.many2one('bpl.estate.registration', 'Estate', help='Estate'),
          'bpl_division_id':fields.many2one('bpl.division.registration', 'Division', help='Division'),
          'payment_type': fields.selection([('normal_work', 'Normal Work'), ('cash_work', 'Cash Work'), ('contract_work', 'Contract Work')], 'Payment Type'),
          'select_by': fields.selection([('by_name', 'By Names'), ('by_count', 'By Count')], 'Select  By'),
          'work_type': fields.selection([('tea', 'Tea'), ('rubber', 'Rubber'), ('sundry', 'Sundry')], 'Work Type'),
          'total_workers': fields.integer('Total Workers'),
          'selected_workers_line_ids': fields.one2many('selected.workers.line', 'worker_id', 'Workers', ondelete="cascade"),
      }
  
  bpl_work_offer()
  
  class selected_workers_line_ids(osv.osv):
      _name = 'selected.workers.line'
      _description = 'lunch order line'
      _columns = {
          'worker_id':fields.many2one('bpl.worker', 'Worker', help='Worker'),
          'is_selected': fields.boolean('Select', help="Selected or not"),
          }
  
  selected_workers_line_ids()
  </code></pre>
  
  <p>my error is like this</p>
  
  <pre><code>2013-03-21 06:31:50,137 7539 ERROR bpl openerp.addons.base.ir.ir_ui_view: &lt;string&gt;:2:0:ERROR:RELAXNGV:RELAXNG_ERR_EXTRACONTENT: Element form has extra content: sheet
  2013-03-21 06:31:50,164 7539 ERROR bpl openerp.tools.convert: Parse error in /home/priyan/Software/openerp-7.0-20130309-002120/openerp/addons/bpl/bpl_view.xml:276: 
  &lt;record model="ir.ui.view" id="bpl_work_offer_form"&gt;
              &lt;field name="name"&gt;bpl.work.offer.form&lt;/field&gt;
              &lt;field name="model"&gt;bpl.work.offer&lt;/field&gt;
              &lt;field name="arch" type="xml"&gt;
                  &lt;form string="bpl_work_offer"&gt;
  ........
    File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/osv/orm.py", line 1544, in _validate
      raise except_orm('ValidateError', '\n'.join(error_msgs))
  except_orm: ('ValidateError', u'Error occurred while validating the field(s) arch: Invalid XML for View Architecture!')
  2013-03-21 06:31:50,185 7539 INFO bpl werkzeug: 127.0.0.1 - - [21/Mar/2013 06:31:50] "POST /web/session/authenticate HTTP/1.1" 200 -
  </code></pre>
  
  <p>ERROR occur when going to save.please check where is the issue with my mapping with tables</p>
  
  <pre><code>Traceback (most recent call last):
    File "/home/priyan/Software/openerp-7.0-20130309-002120/openerp/sql_db.py", line 226, in execute
      res = self._obj.execute(query, params)
  IntegrityError: insert or update on table "selected_workers_line" violates foreign key constraint "selected_workers_line_worker_id_fkey"
  DETAIL:  Key (worker_id)=(1) is not present in table "bpl_worker".
  
  2013-03-21 07:17:25,125 8275 ERROR bpl openerp.netsvc: Integrity Error
  The operation cannot be completed, probably due to the following:
  - deletion: you may be trying to delete a record while other records still reference it
  - creation/update: a mandatory field is not correctly set
  </code></pre>