title: Odoo CSV import: Found multiple matches for field
body: <p>I am using <a href="https://github.com/tfrancoi/odoo_csv_import" rel="nofollow noreferrer">https://github.com/tfrancoi/odoo_csv_import</a> to import data into Odoo "res.partner" model. There is no problem importing most of the fields, but when I try to import the field state_id this error is thrown: "Found multiple matches for field 'State' (2 matches)".</p>
  
  <pre><code>res_partner_mapping = {
      (........ more fields here)
      'country_id/id' : mapper.const('base.es'),
      'state_id': mapper.map_val('myStateField', my_state_dictionary),
  }
  </code></pre>
  
  <p>Here my_state_dictionary simply returns the state_id searched, for example "AV", "M" or "B".</p>
  
  <p>The problem is that state_id is a a composed key so it should be filtered by country_id and state_id. For example, "AV" is a state in Spain, but it is also a different state in Italy, so if it is only filtered by state_id it returns 2 records.</p>
  
  <p>The field is declared in Odoo this way:</p>
  
  <pre><code>state = fields.Many2one('country',related=city.country)
  </code></pre>
  
  <p>How can I specify the relation <strong><code>related=city.country</code></strong> to import the data with odoo_csv_import?</p>