<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/doc/reference/orm.rst, 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>[MOV] doc: move documentation to a dedicated repository</title>
<updated>2021-05-04T08:09:20+00:00</updated>
<author>
<name>Victor Feyens</name>
<email>vfe@odoo.com</email>
</author>
<published>2021-04-30T13:24:57+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=27bad8c3e32049ec69a588df0558e57a0b928309'/>
<id>27bad8c3e32049ec69a588df0558e57a0b928309</id>
<content type='text'>
In odoo/documentation-user#945, the developer documentation is merged
with the user documentation in a single repository and build config.

This commit then removes source files for the developer documentation
from the odoo/odoo repository.

DOC PR: https://github.com/odoo/documentation-user/pull/945

task-2351938
task-2352371
task-2205684
task-2352544

Co-authored-by: Victor Feyens &lt;vfe@odoo.com&gt;
Co-authored-by: Antoine Vandevenne &lt;anv@odoo.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In odoo/documentation-user#945, the developer documentation is merged
with the user documentation in a single repository and build config.

This commit then removes source files for the developer documentation
from the odoo/odoo repository.

DOC PR: https://github.com/odoo/documentation-user/pull/945

task-2351938
task-2352371
task-2205684
task-2352544

Co-authored-by: Victor Feyens &lt;vfe@odoo.com&gt;
Co-authored-by: Antoine Vandevenne &lt;anv@odoo.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] doc: warn about pitfalls of inverse batching</title>
<updated>2020-10-15T14:14:14+00:00</updated>
<author>
<name>Adrian Torres</name>
<email>adt@odoo.com</email>
</author>
<published>2020-10-14T12:44:26+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=343ab221569c202d5067913c0d453de40acdbad2'/>
<id>343ab221569c202d5067913c0d453de40acdbad2</id>
<content type='text'>
This commit updates the documentation surrounding compute and inverse
methods for fields, explicitly warning API consumers that grouping
multiple compute fields under a single inverse method is error-prone and
could not work at all (it can still work under specific conditions but
henceforth it shall be considered bad practice).

This case was found at https://github.com/odoo/enterprise/pull/13815/commits/a651413df915f166697d26a83084582207405858

closes odoo/odoo#60103

X-original-commit: 1d21924c1da0bed59cd105a3d9bf9b60fa2d7bc4
Signed-off-by: Raphael Collet (rco) &lt;rco@openerp.com&gt;
Signed-off-by: Adrian Torres (adt) &lt;adt@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit updates the documentation surrounding compute and inverse
methods for fields, explicitly warning API consumers that grouping
multiple compute fields under a single inverse method is error-prone and
could not work at all (it can still work under specific conditions but
henceforth it shall be considered bad practice).

This case was found at https://github.com/odoo/enterprise/pull/13815/commits/a651413df915f166697d26a83084582207405858

closes odoo/odoo#60103

X-original-commit: 1d21924c1da0bed59cd105a3d9bf9b60fa2d7bc4
Signed-off-by: Raphael Collet (rco) &lt;rco@openerp.com&gt;
Signed-off-by: Adrian Torres (adt) &lt;adt@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] doc: related fields do not support chained x2m dependencies</title>
<updated>2020-09-16T08:33:19+00:00</updated>
<author>
<name>Victor Feyens</name>
<email>vfe@odoo.com</email>
</author>
<published>2020-09-15T12:23:01+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=6ae421f551ee36afa836494bc8563fc9276ab31e'/>
<id>6ae421f551ee36afa836494bc8563fc9276ab31e</id>
<content type='text'>
The behavior isn't exactly undefined: it will appear to work if the
relation refers to only 1 instance. If there are multiple it will give
results for 1 instance and ignore the others. This behavior should not
be relied upon, hence I'm documenting it as undefined. I confirmed this
with mat from the ORM team.

Even better would be to raise an error or warning if `related` is used
in this context.

closes odoo/odoo#57270

closes odoo/odoo#57797

Signed-off-by: Victor Feyens (vfe) &lt;vfe@odoo.com&gt;
Signed-off-by: Raf Geens &lt;raf-odoo@users.noreply.github.com&gt;
Co-authored-by: Raf Geens &lt;raf@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The behavior isn't exactly undefined: it will appear to work if the
relation refers to only 1 instance. If there are multiple it will give
results for 1 instance and ignore the others. This behavior should not
be relied upon, hence I'm documenting it as undefined. I confirmed this
with mat from the ORM team.

Even better would be to raise an error or warning if `related` is used
in this context.

closes odoo/odoo#57270

closes odoo/odoo#57797

Signed-off-by: Victor Feyens (vfe) &lt;vfe@odoo.com&gt;
Signed-off-by: Raf Geens &lt;raf-odoo@users.noreply.github.com&gt;
Co-authored-by: Raf Geens &lt;raf@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] core: orm doc</title>
<updated>2020-07-28T13:03:12+00:00</updated>
<author>
<name>Xavier Morel</name>
<email>xmo@odoo.com</email>
</author>
<published>2020-07-20T08:49:56+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=48335c04bf8b96a9b8a80b222b58981515ec3ce7'/>
<id>48335c04bf8b96a9b8a80b222b58981515ec3ce7</id>
<content type='text'>
* fix link from backend tutorial to log_access section
* flesh out log access documentation
* add documentation for log_access itself &amp; improve doc for a few
  other model-level attributes</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* fix link from backend tutorial to log_access section
* flesh out log access documentation
* add documentation for log_access itself &amp; improve doc for a few
  other model-level attributes</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] doc: _inherits usage warnings</title>
<updated>2020-07-23T16:18:11+00:00</updated>
<author>
<name>Victor Feyens</name>
<email>vfe@odoo.com</email>
</author>
<published>2020-07-23T14:09:50+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=c69a092b98ad7a7f8e03024d170efa30038c89a0'/>
<id>c69a092b98ad7a7f8e03024d170efa30038c89a0</id>
<content type='text'>
The delegation inheritance is very useful in some cases,
but its usage shouldn't be encouraged.

Furthermore, chained _inherits may result in unexpected
behavior/results,
and really shouldn't be used.

closes odoo/odoo#54864

X-original-commit: 4a06a4c79e962906832f98147fe87a2c19efaa75
Signed-off-by: Victor Feyens (vfe) &lt;vfe@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The delegation inheritance is very useful in some cases,
but its usage shouldn't be encouraged.

Furthermore, chained _inherits may result in unexpected
behavior/results,
and really shouldn't be used.

closes odoo/odoo#54864

X-original-commit: 4a06a4c79e962906832f98147fe87a2c19efaa75
Signed-off-by: Victor Feyens (vfe) &lt;vfe@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[REF] ir.autovacuum: declarative garbage collector registration</title>
<updated>2020-05-19T13:38:19+00:00</updated>
<author>
<name>Julien Castiaux</name>
<email>juc@odoo.com</email>
</author>
<published>2020-03-17T11:58:14+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=c5d3a109f530cd0763a1c3860086b5b7abef1b64'/>
<id>c5d3a109f530cd0763a1c3860086b5b7abef1b64</id>
<content type='text'>
The ir.autovacuum model purpose is to run several garbage collecting
operations like removing files from the filestore when no attachment
references them anymore.

The precedent strategy to register new garbage collection tasks was to
override the `power_on` method and to imperatively execute a vacuum
cleaning method on a given model. All calls were executed in a single
SQL transaction without any error handling, meaning a single fail during
any call resulted in a complete failure of the entire vacuum cleaning
chain.

We introduce a new `@autovacuum` api decorator, its purpose it to
register garbage collecting methods that will be safely executed in
their own transaction by the vacuum cleaner. In order to ensure this
new strategy is used, we deprecate `power_on` extensions.

By the way, garbage-collecting methods can be quite heavy and we don't
want users to directly call them. We now ensure they are private.

closes odoo/odoo#47842

Task: 2154079
Signed-off-by: Raphael Collet (rco) &lt;rco@openerp.com&gt;
Co-authored-by: Raphael Collet &lt;rco@odoo.com&gt;
Co-authored-by: Olivier Dony &lt;odo@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ir.autovacuum model purpose is to run several garbage collecting
operations like removing files from the filestore when no attachment
references them anymore.

The precedent strategy to register new garbage collection tasks was to
override the `power_on` method and to imperatively execute a vacuum
cleaning method on a given model. All calls were executed in a single
SQL transaction without any error handling, meaning a single fail during
any call resulted in a complete failure of the entire vacuum cleaning
chain.

We introduce a new `@autovacuum` api decorator, its purpose it to
register garbage collecting methods that will be safely executed in
their own transaction by the vacuum cleaner. In order to ensure this
new strategy is used, we deprecate `power_on` extensions.

By the way, garbage-collecting methods can be quite heavy and we don't
want users to directly call them. We now ensure they are private.

closes odoo/odoo#47842

Task: 2154079
Signed-off-by: Raphael Collet (rco) &lt;rco@openerp.com&gt;
Co-authored-by: Raphael Collet &lt;rco@odoo.com&gt;
Co-authored-by: Olivier Dony &lt;odo@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] base: document all field types.</title>
<updated>2020-04-07T12:11:57+00:00</updated>
<author>
<name>Victor Feyens</name>
<email>vfe@odoo.com</email>
</author>
<published>2020-04-07T11:14:25+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=57eb96418221176f3d8adb11f4fce0b720edbfa3'/>
<id>57eb96418221176f3d8adb11f4fce0b720edbfa3</id>
<content type='text'>
closes odoo/odoo#49135

X-original-commit: cc653d3f1a49e2b7b2cc0ec833097bd7cf3528a1
Signed-off-by: Victor Feyens (vfe) &lt;vfe@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
closes odoo/odoo#49135

X-original-commit: cc653d3f1a49e2b7b2cc0ec833097bd7cf3528a1
Signed-off-by: Victor Feyens (vfe) &lt;vfe@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] doc: document the api.model decorator</title>
<updated>2020-02-07T14:00:12+00:00</updated>
<author>
<name>Victor Feyens</name>
<email>vfe@odoo.com</email>
</author>
<published>2020-02-07T09:43:57+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=3e9b73b1ee06a1b1014fbfeeba6b04b2d3c5d1a1'/>
<id>3e9b73b1ee06a1b1014fbfeeba6b04b2d3c5d1a1</id>
<content type='text'>
X-original-commit: efa3a148cb178693b73af054cd6e19870d068454</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
X-original-commit: efa3a148cb178693b73af054cd6e19870d068454</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] doc: orm page missing information + UI</title>
<updated>2020-02-05T14:00:15+00:00</updated>
<author>
<name>Victor Feyens</name>
<email>vfe@odoo.com</email>
</author>
<published>2020-02-05T14:00:15+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=59a7738be2c0402d64525ce68b98edf325ff4242'/>
<id>59a7738be2c0402d64525ce68b98edf325ff4242</id>
<content type='text'>
* Some fields types were missing
* Add information on multi-record field access
* UI finetuning</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Some fields types were missing
* Add information on multi-record field access
* UI finetuning</pre>
</div>
</content>
</entry>
<entry>
<title>[ADD] doc: multi-company howtos</title>
<updated>2019-11-28T10:16:48+00:00</updated>
<author>
<name>Victor Feyens</name>
<email>vfe@odoo.com</email>
</author>
<published>2019-11-19T15:25:40+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=5a1d603c5f437f9f05da3b6d5be70929fe8c7fca'/>
<id>5a1d603c5f437f9f05da3b6d5be70929fe8c7fca</id>
<content type='text'>
closes odoo/odoo#41038

X-original-commit: eaabad20516a73a97b23343a22357659c29945f7
Signed-off-by: Antoine Vandevenne (anv) &lt;AntoineVDV@users.noreply.github.com&gt;
Co-authored-by: Antoine Vandevenne (anv) &lt;anv@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
closes odoo/odoo#41038

X-original-commit: eaabad20516a73a97b23343a22357659c29945f7
Signed-off-by: Antoine Vandevenne (anv) &lt;AntoineVDV@users.noreply.github.com&gt;
Co-authored-by: Antoine Vandevenne (anv) &lt;anv@odoo.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
