title: How to get value in Js of other field that is passed to widget? Odoo
body: <p>I created a widget which fills some fields automatically.  Basically I am checking some values from google maps geolocate and filling other fields depending on what those values are. Turned out I need to check one value that is already in my form. What happens at the moment I get only value that was saved before and if it changes I still get the old value. My question if how to get that value real-time?</p>
  
  <p>My code is something like this:</p>
  
  <pre><code>var gmap_autocomplete = form_common.AbstractField.extend({
  
  // functions such as start, init, on_ready...
  setFields : function (fieldName, fieldValue) {
         var not_vat_payer = this.view.datarecord[this.node.attrs.check_not_vat]);
  
         // Here I get the value that I want of previous form save
         // for example if value was true, I came here and triggered this
        //widget I will get value true, but if I change it to false
        // I will still get true value of previous save
  
  }
  
  });
  </code></pre>
  
  <p>My field with widget looks like this:</p>
  
  <pre><code>&lt;field name="not_vat2"/&gt;
  &lt;field name="autocomplete" class="autoc" widget="gmap_autocomplete" street="street"
                                     city="city" zip="zip" country_id="country_id" lang="lang" invoice_lang="invoice_lang"
                                      property_account_payable_id="property_account_payable_id"
                                      property_account_receivable_id="property_account_receivable_id"
                                      check_not_vat="not_vat2"/&gt;
  </code></pre>