title: Why Odoo removes milliseconds in Datetime fields?
body: <p>I have a method in which <code>self</code> is a simple <code>stock.move</code> record. Besides, as you may know, <code>stock.move</code> model has a <code>Datetime</code> field named <code>date</code>. If I write this code inside the method:</p>
  
  <pre><code>lines = self.search([
      ('date', '=', self.date),
  ])
  </code></pre>
  
  <p>It should return me at least the current line. And it does, but only in some servers. Others return nothing. Why? Because if I do a query to get the <code>date</code> in PostgreSQL, the servers which are working OK return <em>2017-12-27 17:10:00</em>, however, the servers which are working wrong return <em>2017-12-27 17:10:00.131112</em>. So, for the cases with miliseconds the ORM <code>search</code> method is doing this:</p>
  
  <pre><code>lines = self.search([
      (2017-12-27 17:10:00.131112, '=', 2017-12-27 17:10:00),
  ])
  </code></pre>
  
  <p><code>self.date</code> is returning the <code>Datetime</code> value without the miliseconds and that's why the comparison fails. I need to get the miliseconds too.</p>
  
  <p>How can I manage this?</p>