<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/base_import/tests/test_base_import.py, branch 14.0</title>
<subtitle>The current checkout of upstream Odoo</subtitle>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/'/>
<entry>
<title>[FIX] base_import: handling of scientific notation</title>
<updated>2020-01-02T13:31:09+00:00</updated>
<author>
<name>jerome hanke (jhk)</name>
<email>jhk@odoo.com</email>
</author>
<published>2019-12-26T12:43:36+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=7757a63fc24cbe84016cb68ad8b1a8ca54006fd4'/>
<id>7757a63fc24cbe84016cb68ad8b1a8ca54006fd4</id>
<content type='text'>
Steps to reproduce:
-install sales
-try to import a product file with volumes set to scientific notation
(9.2e-05 for example)

Previous behavior:
scientific notation is not recognized by the base_import module
and raises a small warning

Current behavior:
scientific notation is converted to decimal notation on the fly
when possible

opw-2162353

closes odoo/odoo#42591

X-original-commit: 9acd76c5d116abd07207af3b548658ad983ff82d
Signed-off-by: Jorge Pinna Puissant (jpp) &lt;jpp@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Steps to reproduce:
-install sales
-try to import a product file with volumes set to scientific notation
(9.2e-05 for example)

Previous behavior:
scientific notation is not recognized by the base_import module
and raises a small warning

Current behavior:
scientific notation is converted to decimal notation on the fly
when possible

opw-2162353

closes odoo/odoo#42591

X-original-commit: 9acd76c5d116abd07207af3b548658ad983ff82d
Signed-off-by: Jorge Pinna Puissant (jpp) &lt;jpp@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ADD] base_import: batching (&amp; some other features)</title>
<updated>2019-09-13T09:45:29+00:00</updated>
<author>
<name>Xavier Morel</name>
<email>xmo@odoo.com</email>
</author>
<published>2019-08-28T13:02:23+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=f58368210c9c962c84cdcd2e2a799c5fc6183a13'/>
<id>f58368210c9c962c84cdcd2e2a799c5fc6183a13</id>
<content type='text'>
various UI changes
------------------

* renamed "test import" button to "test"
* move relation fields thing to debug mode
* remove "Defer parent/child computation" option as it was deprecated
  / removed from the backend in
  80f1ac3599ee630e7556ff4fcf3eb192931eccd8, turns out this checkbox
  existed inactive for longer than it's been of any use (added in
  68cb2ade09206b0abb3f7c8dccb5d35a6499f802 on 2017-11-29, made
  non-operating on 2018-01-24, that's so sad)

batching
--------

* add support for batching imports (skip &amp; limit parameters)
* modify client to use batched imports &amp; properly adapt responses so
  it still looks like a single import for the client (more or less)
  e.g. update row numbers in error messages, etc...
* properly handle partial imports though
* disable usual loading throbber to have a single progress
  notification displayed continuously throughout all the batches: the
  normal throbber only shows after 3s of waiting for an RPC response,
  so it would keep flashing in and out (appear 3s into a batch's
  import then disappear at the end only to reappear 3s into the next
  batch's loading)

NOTE: the limit is row-wise. If a record straddles the limit (because
of nested O2M records), the record is imported in full and the "next
row" is whatever row follows the record. This means a limit of 10 can
lead to an import of 17 lines, and as the progress indicator is in
records# the increments can jump around.

Task 2059448</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
various UI changes
------------------

* renamed "test import" button to "test"
* move relation fields thing to debug mode
* remove "Defer parent/child computation" option as it was deprecated
  / removed from the backend in
  80f1ac3599ee630e7556ff4fcf3eb192931eccd8, turns out this checkbox
  existed inactive for longer than it's been of any use (added in
  68cb2ade09206b0abb3f7c8dccb5d35a6499f802 on 2017-11-29, made
  non-operating on 2018-01-24, that's so sad)

batching
--------

* add support for batching imports (skip &amp; limit parameters)
* modify client to use batched imports &amp; properly adapt responses so
  it still looks like a single import for the client (more or less)
  e.g. update row numbers in error messages, etc...
* properly handle partial imports though
* disable usual loading throbber to have a single progress
  notification displayed continuously throughout all the batches: the
  normal throbber only shows after 3s of waiting for an RPC response,
  so it would keep flashing in and out (appear 3s into a batch's
  import then disappear at the end only to reappear 3s into the next
  batch's loading)

NOTE: the limit is row-wise. If a record straddles the limit (because
of nested O2M records), the record is imported in full and the "next
row" is whatever row follows the record. This means a limit of 10 can
lead to an import of 17 lines, and as the progress indicator is in
records# the increments can jump around.

Task 2059448</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] import/export UIs</title>
<updated>2018-07-17T13:19:05+00:00</updated>
<author>
<name>Jigar Patel</name>
<email>jat@openerp.com</email>
</author>
<published>2018-07-17T13:19:05+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=b60de0db41bbe4af3c2f6e2369eda5d483702d76'/>
<id>b60de0db41bbe4af3c2f6e2369eda5d483702d76</id>
<content type='text'>
Task 40692

Various changes to import/export (mainly) UIs:

* default to excel &amp; "full" (non-import-compatible) export
* auto-detect encoding of CSV using chardet
* remember column -&gt; field mapping after having imported a file (useful
   for repeated imports where auto-matching failed)
* better handle localised booleans &amp; column names
* automatically select source list view's fields when exporting
* better integrate import templates feature and add a number of templates</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Task 40692

Various changes to import/export (mainly) UIs:

* default to excel &amp; "full" (non-import-compatible) export
* auto-detect encoding of CSV using chardet
* remember column -&gt; field mapping after having imported a file (useful
   for repeated imports where auto-matching failed)
* better handle localised booleans &amp; column names
* automatically select source list view's fields when exporting
* better integrate import templates feature and add a number of templates</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] base_import: activate advanced mode</title>
<updated>2018-04-12T12:54:25+00:00</updated>
<author>
<name>Nicolas Martinelli</name>
<email>nim@odoo.com</email>
</author>
<published>2018-04-12T11:32:17+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=72425445062bc595d0718d83580de9901023aaf3'/>
<id>72425445062bc595d0718d83580de9901023aaf3</id>
<content type='text'>
The commit 1ba4fbe640cf22abe did not match the specs of the task, but
was merged anyway. Reverting the commit, and check by default so the
user is not confused with missing fields.

opw-1824074
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The commit 1ba4fbe640cf22abe did not match the specs of the task, but
was merged anyway. Reverting the commit, and check by default so the
user is not confused with missing fields.

opw-1824074
</pre>
</div>
</content>
</entry>
<entry>
<title>[MERGE] forward port branch saas-16 up to dc2a6c6cd2a</title>
<updated>2017-10-20T17:27:04+00:00</updated>
<author>
<name>Christophe Simonis</name>
<email>chs@odoo.com</email>
</author>
<published>2017-10-20T17:27:04+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=10128fa7e8c743e9c838743204fb8116bcdeefd6'/>
<id>10128fa7e8c743e9c838743204fb8116bcdeefd6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[MERGE] forward port branch 10.0 up to cbca27d0052</title>
<updated>2017-10-17T10:09:58+00:00</updated>
<author>
<name>Christophe Simonis</name>
<email>chs@odoo.com</email>
</author>
<published>2017-10-17T10:09:58+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=fbdda5437a8ecb575ffbcac7961aad44c9cf4ff8'/>
<id>fbdda5437a8ecb575ffbcac7961aad44c9cf4ff8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] base_import: parse date and float for relational fields</title>
<updated>2017-10-13T07:43:11+00:00</updated>
<author>
<name>amoyaux</name>
<email>arm@odoo.com</email>
</author>
<published>2017-10-10T12:01:41+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=e1769cbea9dc9b13453f507321b4de2e86de2d36'/>
<id>e1769cbea9dc9b13453f507321b4de2e86de2d36</id>
<content type='text'>
Use case to reproduce:
-&gt; Import a file with a float using a coma related to the model
(for example the product.supplierinfo/price)

It happens because the method that parse the date and float field
only compare them to the main imported model.

This commit complete the method by using a recursion on relational
model in order to also parse the relational subfields.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use case to reproduce:
-&gt; Import a file with a float using a coma related to the model
(for example the product.supplierinfo/price)

It happens because the method that parse the date and float field
only compare them to the main imported model.

This commit complete the method by using a recursion on relational
model in order to also parse the relational subfields.
</pre>
</div>
</content>
</entry>
<entry>
<title>[MERGE] forward port branch saas-16 up to 64d56995e04</title>
<updated>2017-09-06T11:29:05+00:00</updated>
<author>
<name>Christophe Simonis</name>
<email>chs@odoo.com</email>
</author>
<published>2017-09-06T11:29:05+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=b8dd34fcbb895b8d62f3e133dcf5ee6f40a1400d'/>
<id>b8dd34fcbb895b8d62f3e133dcf5ee6f40a1400d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[MERGE] forward port branch 10.0 up to a4bcb66bfc9</title>
<updated>2017-09-06T08:59:06+00:00</updated>
<author>
<name>Christophe Simonis</name>
<email>chs@odoo.com</email>
</author>
<published>2017-09-06T08:59:06+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=ec0d51f20e56353fa6a93578eeb3f7600f97126c'/>
<id>ec0d51f20e56353fa6a93578eeb3f7600f97126c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] base_import: headerless import</title>
<updated>2017-09-05T14:37:48+00:00</updated>
<author>
<name>Nicolas Martinelli</name>
<email>nim@odoo.com</email>
</author>
<published>2017-09-05T12:18:05+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=a4bcb66bfc9ebaf0582680bb7efa7ac541b76a5a'/>
<id>a4bcb66bfc9ebaf0582680bb7efa7ac541b76a5a</id>
<content type='text'>
- Import a CSV file without header
- Untick the option 'The first row contains the label of the column'

An error is reported.

If no header, the method `_match_headers` should return consistent
object types.

opw-769117
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Import a CSV file without header
- Untick the option 'The first row contains the label of the column'

An error is reported.

If no header, the method `_match_headers` should return consistent
object types.

opw-769117
</pre>
</div>
</content>
</entry>
</feed>
