<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/addons/base_import_module/controllers, 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>[IMP] *: replace to new _() syntax</title>
<updated>2020-06-18T11:03:34+00:00</updated>
<author>
<name>Martin Trigaux</name>
<email>mat@odoo.com</email>
</author>
<published>2020-06-04T10:39:11+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=ba244cef01132347df4d2d9553ea3105ba13a938'/>
<id>ba244cef01132347df4d2d9553ea3105ba13a938</id>
<content type='text'>
Using a few regex like
\((_\(.*%s.*)(\) % )([\w\[\]][\w .\[\]\(\)'"]*)\)
($1, $3))

Old syntax is still compatible but starts the migration to the new
syntax that catches error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Using a few regex like
\((_\(.*%s.*)(\) % )([\w\[\]][\w .\[\]\(\)'"]*)\)
($1, $3))

Old syntax is still compatible but starts the migration to the new
syntax that catches error.
</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] base_import_module, cli: deploy</title>
<updated>2018-11-14T09:40:17+00:00</updated>
<author>
<name>Nicolas Martinelli</name>
<email>nim@odoo.com</email>
</author>
<published>2018-11-14T08:33:30+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=79d29c51dfa6a16434bd87ffb76a0970daf85019'/>
<id>79d29c51dfa6a16434bd87ffb76a0970daf85019</id>
<content type='text'>
The use of the `deploy` command always fails because of an incorrect
CSRF token since commit 9bae56acd4ebe2b1. Indeed, the latter
re-introduces the session rotation, i.e. the session ID is changed at
authentication.

Practically, what happens server-side is:
- authentication
- generate CSRF token
- create the response with the token and a change of session ID

At this point, the token generated is not correct anymore since it is
based on the 'old' session ID. Therefore, when it is reused at
uploading, an error is raised.

It is actually possible to simplify the process by performing the
authentication and the file upload in a single request. There is indeed
no real use of extracting the authentication, since the request is then
only used to upload the module.

opw-1902863

closes odoo/odoo#28653</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The use of the `deploy` command always fails because of an incorrect
CSRF token since commit 9bae56acd4ebe2b1. Indeed, the latter
re-introduces the session rotation, i.e. the session ID is changed at
authentication.

Practically, what happens server-side is:
- authentication
- generate CSRF token
- create the response with the token and a change of session ID

At this point, the token generated is not correct anymore since it is
based on the 'old' session ID. Therefore, when it is reused at
uploading, an error is raised.

It is actually possible to simplify the process by performing the
authentication and the file upload in a single request. There is indeed
no real use of extracting the authentication, since the request is then
only used to upload the module.

opw-1902863

closes odoo/odoo#28653</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] Various P3-related import changes</title>
<updated>2017-04-28T07:06:53+00:00</updated>
<author>
<name>xmo-odoo</name>
<email>xmo@odoo.com</email>
</author>
<published>2017-04-28T07:06:53+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=b4429c2a91889bf60b56e0c7909c844d357363f7'/>
<id>b4429c2a91889bf60b56e0c7909c844d357363f7</id>
<content type='text'>
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&amp;keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* LDAP import: python-ldap is not python3-compatible, pyldap is

  Warning: only supported from debian Stretch (current testing)?
  https://packages.debian.org/search?searchon=names&amp;keywords=pyldap

* implicitly relative imports
* imports of moved or removed stdlib modules

issue #8530
</pre>
</div>
</content>
</entry>
<entry>
<title>[#8530] convert exception handlers to except..as syntax</title>
<updated>2017-04-11T12:53:29+00:00</updated>
<author>
<name>Xavier Morel</name>
<email>xmo@odoo.com</email>
</author>
<published>2017-04-11T10:44:29+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=3979f6802eeea275f949d28ddf4c18f84fc0f5aa'/>
<id>3979f6802eeea275f949d28ddf4c18f84fc0f5aa</id>
<content type='text'>
Futurize fixers:
* lib2to3.fixes.fix_except
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Futurize fixers:
* lib2to3.fixes.fix_except
</pre>
</div>
</content>
</entry>
<entry>
<title>[MIG] base_import_module: Migrated to new API</title>
<updated>2016-07-13T10:46:50+00:00</updated>
<author>
<name>Mohammed Shekha</name>
<email>msh@openerp.com</email>
</author>
<published>2015-02-27T06:08:03+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=870f2ff893fde64b092dfca4536f653bb69172cc'/>
<id>870f2ff893fde64b092dfca4536f653bb69172cc</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_module: CSRF handling</title>
<updated>2016-01-12T18:05:43+00:00</updated>
<author>
<name>Xavier Morel</name>
<email>xmo@odoo.com</email>
</author>
<published>2015-11-09T08:47:51+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=045b9019ef70d3fa2df0acb6ea3fd112c06bf7bb'/>
<id>045b9019ef70d3fa2df0acb6ea3fd112c06bf7bb</id>
<content type='text'>
* disabled CSRF protection for login route
* return CSRF token from login and retransmit it during module upload

``deploy`` only sends CSRF token if given one by authenticate so that
the command can be used for non-updated modules.

Closes #9488
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* disabled CSRF protection for login route
* return CSRF token from login and retransmit it during module upload

``deploy`` only sends CSRF token if given one by authenticate so that
the command can be used for non-updated modules.

Closes #9488
</pre>
</div>
</content>
</entry>
<entry>
<title>[ADD] convenience res_users._is_admin</title>
<updated>2015-08-20T07:42:06+00:00</updated>
<author>
<name>Xavier Morel</name>
<email>xmo@odoo.com</email>
</author>
<published>2015-08-19T13:35:11+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=e80f1152c79fd8d203c4bb591c8deefa08337368'/>
<id>e80f1152c79fd8d203c4bb591c8deefa08337368</id>
<content type='text'>
Checks that the provided user (or user in the provided dataset):

* is the superadmin
* or is a member of group_erp_manager

There are a number of hand-rolled "is_admin" checks in the codebase some
of which are fairly gnarly. The shortcut provides a single point of
contact, avoids forgetting about cases (e.g. SUPERUSER_ID) and is
relatively convenient when checking a user which is not the "current"
user.

closes #8146
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Checks that the provided user (or user in the provided dataset):

* is the superadmin
* or is a member of group_erp_manager

There are a number of hand-rolled "is_admin" checks in the codebase some
of which are fairly gnarly. The shortcut provides a single point of
contact, avoids forgetting about cases (e.g. SUPERUSER_ID) and is
relatively convenient when checking a user which is not the "current"
user.

closes #8146
</pre>
</div>
</content>
</entry>
<entry>
<title>Added --force to odoo deploy</title>
<updated>2014-06-11T07:55:17+00:00</updated>
<author>
<name>Fabien Meghazi</name>
<email>fme@openerp.com</email>
</author>
<published>2014-06-11T07:55:17+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=c1e6e70870c83f0794103bd639edea0446eb1afa'/>
<id>c1e6e70870c83f0794103bd639edea0446eb1afa</id>
<content type='text'>
Will force --init mode even if module is already installed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Will force --init mode even if module is already installed
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] improved code to show import result in wizard and improved typo</title>
<updated>2014-05-22T11:39:52+00:00</updated>
<author>
<name>tpa-odoo</name>
<email>tpa@tinyerp.com</email>
</author>
<published>2014-05-22T11:39:52+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=8fa3a17c3918d46e600dd5171229fb58561c5ff7'/>
<id>8fa3a17c3918d46e600dd5171229fb58561c5ff7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[ADD] add wizard to import zipped module</title>
<updated>2014-05-22T10:21:51+00:00</updated>
<author>
<name>tpa-odoo</name>
<email>tpa@tinyerp.com</email>
</author>
<published>2014-05-22T10:21:51+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=41147025b8a634f746ad14c80b7c764ff494a501'/>
<id>41147025b8a634f746ad14c80b7c764ff494a501</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
