<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/google_drive/models, 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>Revert "[FIX] google_drive: fix traceback when add filter"</title>
<updated>2021-01-06T17:29:12+00:00</updated>
<author>
<name>Yannick Tivisse</name>
<email>yti@odoo.com</email>
</author>
<published>2021-01-05T12:40:58+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=1e1f55b07790ca31f7fbf43b38bb99644d3a2e93'/>
<id>1e1f55b07790ca31f7fbf43b38bb99644d3a2e93</id>
<content type='text'>
This reverts commit 82f236d98e322efd84c873df54f8e728e1d2a1bf.

The fix is actually not solving all the issues, and also introduce
a behavior change. Actually, the expected result for filters like

&lt;filter string="My Pipeline" name="my" domain="[('user_id', '=', uid)]"/&gt;

will result into a evaluated filters, but invalid as the uid is set to
the person configuring the google configuration, not the user who will
use it.

As it is tricky (or even impossible) to solve the issue properly in all
the cases, we prefer to warn the user that the filter is invalid instead.

closes odoo/odoo#64144

X-original-commit: 35fff5d26f20ad5cfacffaf9335fc8580a7f4793
Signed-off-by: Yannick Tivisse (yti) &lt;yti@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 82f236d98e322efd84c873df54f8e728e1d2a1bf.

The fix is actually not solving all the issues, and also introduce
a behavior change. Actually, the expected result for filters like

&lt;filter string="My Pipeline" name="my" domain="[('user_id', '=', uid)]"/&gt;

will result into a evaluated filters, but invalid as the uid is set to
the person configuring the google configuration, not the user who will
use it.

As it is tricky (or even impossible) to solve the issue properly in all
the cases, we prefer to warn the user that the filter is invalid instead.

closes odoo/odoo#64144

X-original-commit: 35fff5d26f20ad5cfacffaf9335fc8580a7f4793
Signed-off-by: Yannick Tivisse (yti) &lt;yti@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] google_drive: fix traceback while create templates</title>
<updated>2020-10-08T09:11:58+00:00</updated>
<author>
<name>Kamesh Patel</name>
<email>kat@odoo.com</email>
</author>
<published>2020-09-18T09:11:10+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=d04a1b869ef73c302dcd9a1cb04f6d952b0a3db3'/>
<id>d04a1b869ef73c302dcd9a1cb04f6d952b0a3db3</id>
<content type='text'>
Before this commit:

While creating new templates it will give a traceback

After this commit:

While creating new templates it will not give a traceback

LINKS

Task-2334852

closes odoo/odoo#58016

Signed-off-by: Thibault Delavallee (tde) &lt;tde@openerp.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before this commit:

While creating new templates it will give a traceback

After this commit:

While creating new templates it will not give a traceback

LINKS

Task-2334852

closes odoo/odoo#58016

Signed-off-by: Thibault Delavallee (tde) &lt;tde@openerp.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] *: use ast.literal_eval</title>
<updated>2020-01-28T13:58:05+00:00</updated>
<author>
<name>Martin Trigaux</name>
<email>mat@odoo.com</email>
</author>
<published>2020-01-22T15:16:22+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=a74a6480302620be364d2d15717fce59db3ddf4e'/>
<id>a74a6480302620be364d2d15717fce59db3ddf4e</id>
<content type='text'>
When simply need to parse a domain, it is easier

Add .strip() on ir.ui.view as ast.literal_eval produces an syntax
error if the node starts with spaces (as done in the xpath of
hr_attendance.view_employee_form_inherit_hr_attendance)

closes odoo/odoo#43831

Related: odoo/enterprise#7894
Signed-off-by: Martin Trigaux (mat) &lt;mat@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When simply need to parse a domain, it is easier

Add .strip() on ir.ui.view as ast.literal_eval produces an syntax
error if the node starts with spaces (as done in the xpath of
hr_attendance.view_employee_form_inherit_hr_attendance)

closes odoo/odoo#43831

Related: odoo/enterprise#7894
Signed-off-by: Martin Trigaux (mat) &lt;mat@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] *: adapt code to comply with new ondelete policy</title>
<updated>2019-11-07T08:39:17+00:00</updated>
<author>
<name>Adrian Torres</name>
<email>adt@odoo.com</email>
</author>
<published>2019-10-24T07:42:44+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=3da477dfc5f98f092cda1ead73ea87372fac6bd2'/>
<id>3da477dfc5f98f092cda1ead73ea87372fac6bd2</id>
<content type='text'>
The ondelete policy must be explicitly set for m2o fields whose inverse
is a reflection model (ir.*)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ondelete policy must be explicitly set for m2o fields whose inverse
is a reflection model (ir.*)</pre>
</div>
</content>
</entry>
<entry>
<title>[MERGE] forward port branch saas-12.4 up to 98a55917a60</title>
<updated>2019-08-14T14:48:10+00:00</updated>
<author>
<name>Christophe Simonis</name>
<email>chs@odoo.com</email>
</author>
<published>2019-08-14T14:48:10+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=140ee6b8f0b0de7ddcc816496269963612c5d0c6'/>
<id>140ee6b8f0b0de7ddcc816496269963612c5d0c6</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 12.0 up to ff9ddfdacc9</title>
<updated>2019-08-06T13:57:57+00:00</updated>
<author>
<name>Christophe Simonis</name>
<email>chs@odoo.com</email>
</author>
<published>2019-08-06T13:57:57+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=0fadd586fae2dcab5a61284c166794477f17d697'/>
<id>0fadd586fae2dcab5a61284c166794477f17d697</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] google_drive: do not reset refresh_token</title>
<updated>2019-08-01T14:11:54+00:00</updated>
<author>
<name>David Dufresne</name>
<email>27902736+ddufresne@users.noreply.github.com</email>
</author>
<published>2019-07-19T14:46:40+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=921fab992d51ce381b57798886ff1ede4caf89c7'/>
<id>921fab992d51ce381b57798886ff1ede4caf89c7</id>
<content type='text'>
When setting the authorization code, a refresh token is generated in
the background and stored in a system parameter.

However, when saving the general settings (res.config.settings)
without changing the authorization code, the refresh token is deleted.

The refresh token should only be deleted if the authorization was
removed.

This was not the case as the set_param is always called and a value is
only computed when the authorization code has changed. The current
value was never retrieved.

Set a ir.config_parameter only when it a value has changed.

closes odoo/odoo#35028

Signed-off-by: Jérome Maes (jem) &lt;jem@openerp.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When setting the authorization code, a refresh token is generated in
the background and stored in a system parameter.

However, when saving the general settings (res.config.settings)
without changing the authorization code, the refresh token is deleted.

The refresh token should only be deleted if the authorization was
removed.

This was not the case as the set_param is always called and a value is
only computed when the authorization code has changed. The current
value was never retrieved.

Set a ir.config_parameter only when it a value has changed.

closes odoo/odoo#35028

Signed-off-by: Jérome Maes (jem) &lt;jem@openerp.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[REM] *: calls to @api.multi</title>
<updated>2019-07-17T12:13:12+00:00</updated>
<author>
<name>Adrian Torres</name>
<email>adt@odoo.com</email>
</author>
<published>2019-07-10T12:59:37+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=4b38cc6590abcb58a0ca102a06063eb3db7ac1f4'/>
<id>4b38cc6590abcb58a0ca102a06063eb3db7ac1f4</id>
<content type='text'>
Multi is the default api for methods, it is not necessary to explicitly
decorate methods with it, adds clutter and most people use it because
they see that the rest of the code uses it.

Done with `find . -type f -name '*.py' | xargs sed -i '/@api.multi/d'`
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Multi is the default api for methods, it is not necessary to explicitly
decorate methods with it, adds clutter and most people use it because
they see that the rest of the code uses it.

Done with `find . -type f -name '*.py' | xargs sed -i '/@api.multi/d'`
</pre>
</div>
</content>
</entry>
<entry>
<title>[REF] *: `record.env.user._is_XXX()` -&gt; `record.env.is_XXX()`</title>
<updated>2019-07-04T11:32:22+00:00</updated>
<author>
<name>Raphael Collet</name>
<email>rco@odoo.com</email>
</author>
<published>2019-06-17T14:29:51+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=368e9530f4e6366bffa9d1289ed064bc954f8531'/>
<id>368e9530f4e6366bffa9d1289ed064bc954f8531</id>
<content type='text'>
Superuser mode implies `record.env.is_XXX()`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Superuser mode implies `record.env.is_XXX()`.</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] google_drive : better google drive configuration</title>
<updated>2019-02-14T11:40:57+00:00</updated>
<author>
<name>Priyanka Kakadiya</name>
<email>pka@odoo.com</email>
</author>
<published>2018-12-14T13:31:32+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=624fdc77d44bdf13b139627270cddca15570586b'/>
<id>624fdc77d44bdf13b139627270cddca15570586b</id>
<content type='text'>
Improve the configuration setting of google drive to make it more userfriendly
Display a message when google drive is enabled but no token have been generated

Task: 1894961

closes odoo/odoo#29562</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Improve the configuration setting of google drive to make it more userfriendly
Display a message when google drive is enabled but no token have been generated

Task: 1894961

closes odoo/odoo#29562</pre>
</div>
</content>
</entry>
</feed>
