<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Odoo/odoo/addons/base/data/res_users_data.xml, 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] base: add default image for users + placeholder if unassigned</title>
<updated>2020-01-21T09:22:46+00:00</updated>
<author>
<name>Xavier Bol (xbo)</name>
<email>xbo@odoo.com</email>
</author>
<published>2019-11-20T12:54:35+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=51b36c3dbbce04ba6d459c8890f82ac3fdbd91bd'/>
<id>51b36c3dbbce04ba6d459c8890f82ac3fdbd91bd</id>
<content type='text'>
1/ When the new database is created without demo data, the admin has a
   'silhouette' as a default picture. When a new user is created without
   picture given by the current user, the new user will have a 'silhouette'
   as a default profile picture.

2/ web: image for fa-user-slash. This image will be used when a record is
   unassigned.

3/ web, *: Change placeholder by default when record is unassigned.
   We want to have a fa-user-slash icon when a record is unassigned instead
   of 'placeholder.png'. A method is created in the BaseModel to have a
   generic method to change easily the placeholder for other models.

4/ Adapt kanban test to keep the same behaviour. Attention the behaviour is
   a bit different. Because, now the default image is given by the server to
   change easily the default image when a record doesn't have an image.
   Thus, we don't say if it's the default placeholder, but we can say it's
   not the same image of the record (in this test, the record, it's the
   partner).

5/ misc: display 'Unassigned' in the hover on kanban cards if record is unassigned

closes odoo/odoo#41356

Taskid: 2060206
Related: odoo/enterprise#7758
Signed-off-by: Yannick Tivisse (yti) &lt;yti@odoo.com&gt;
Co-authored-by: jdoutreloux &lt;jud@odoo.com&gt;
Co-authored-by: Yannick Tivisse &lt;yti@odoo.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1/ When the new database is created without demo data, the admin has a
   'silhouette' as a default picture. When a new user is created without
   picture given by the current user, the new user will have a 'silhouette'
   as a default profile picture.

2/ web: image for fa-user-slash. This image will be used when a record is
   unassigned.

3/ web, *: Change placeholder by default when record is unassigned.
   We want to have a fa-user-slash icon when a record is unassigned instead
   of 'placeholder.png'. A method is created in the BaseModel to have a
   generic method to change easily the placeholder for other models.

4/ Adapt kanban test to keep the same behaviour. Attention the behaviour is
   a bit different. Because, now the default image is given by the server to
   change easily the default image when a record doesn't have an image.
   Thus, we don't say if it's the default placeholder, but we can say it's
   not the same image of the record (in this test, the record, it's the
   partner).

5/ misc: display 'Unassigned' in the hover on kanban cards if record is unassigned

closes odoo/odoo#41356

Taskid: 2060206
Related: odoo/enterprise#7758
Signed-off-by: Yannick Tivisse (yti) &lt;yti@odoo.com&gt;
Co-authored-by: jdoutreloux &lt;jud@odoo.com&gt;
Co-authored-by: Yannick Tivisse &lt;yti@odoo.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] *: use image.mixin when appropriate</title>
<updated>2019-08-02T16:47:58+00:00</updated>
<author>
<name>Sébastien Theys</name>
<email>seb@odoo.com</email>
</author>
<published>2019-08-01T11:20:38+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=1e9772889ba6969961aab0e87fd018494d6b15bb'/>
<id>1e9772889ba6969961aab0e87fd018494d6b15bb</id>
<content type='text'>
The following models are already using big images, or they might need big images
in the future:

- partner
- hr employee
- shop category
- lunch product
- gamification badge and karma rank

PR: #34925</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The following models are already using big images, or they might need big images
in the future:

- partner
- hr employee
- shop category
- lunch product
- gamification badge and karma rank

PR: #34925</pre>
</div>
</content>
</entry>
<entry>
<title>[FIX] base: Set a default email address for admin</title>
<updated>2018-08-24T09:05:22+00:00</updated>
<author>
<name>Yannick Tivisse</name>
<email>yti@odoo.com</email>
</author>
<published>2018-08-24T09:05:22+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=265263dbce6c117eeac825c114df90ec9a8375ba'/>
<id>265263dbce6c117eeac825c114df90ec9a8375ba</id>
<content type='text'>
Purpose
=======

Currently, as the admin as no email address, it's now impossible to install
the mail module without demo data, because of the following data:

        &lt;record model="mail.message" id="module_install_notification" context="{'mail_notify_noemail': True}"&gt;
            &lt;field name="model"&gt;mail.channel&lt;/field&gt;
            &lt;field name="res_id" ref="mail.channel_all_employees"/&gt;
            &lt;field name="message_type"&gt;email&lt;/field&gt;
            &lt;field name="subtype_id" ref="mail.mt_comment"/&gt;
            &lt;field name="subject"&gt;Welcome to Odoo!&lt;/field&gt;
            &lt;field name="body"&gt;&lt;![CDATA[&lt;p&gt;Welcome to the #general channel.&lt;/p&gt;
            &lt;p&gt;This channel is accessible to all users to &lt;b&gt;easily share company information&lt;/b&gt;.&lt;/p&gt;]]&gt;&lt;/field&gt;
        &lt;/record&gt;

Because when creating a mail.message a user error is raised if no email address is found.

    @api.model
    def _get_default_from(self):
        if self.env.user.email:
            return formataddr((self.env.user.name, self.env.user.email))
        raise UserError(_("Unable to post message, please configure the sender's email address."))

In a general way, all the users should have an email address.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Purpose
=======

Currently, as the admin as no email address, it's now impossible to install
the mail module without demo data, because of the following data:

        &lt;record model="mail.message" id="module_install_notification" context="{'mail_notify_noemail': True}"&gt;
            &lt;field name="model"&gt;mail.channel&lt;/field&gt;
            &lt;field name="res_id" ref="mail.channel_all_employees"/&gt;
            &lt;field name="message_type"&gt;email&lt;/field&gt;
            &lt;field name="subtype_id" ref="mail.mt_comment"/&gt;
            &lt;field name="subject"&gt;Welcome to Odoo!&lt;/field&gt;
            &lt;field name="body"&gt;&lt;![CDATA[&lt;p&gt;Welcome to the #general channel.&lt;/p&gt;
            &lt;p&gt;This channel is accessible to all users to &lt;b&gt;easily share company information&lt;/b&gt;.&lt;/p&gt;]]&gt;&lt;/field&gt;
        &lt;/record&gt;

Because when creating a mail.message a user error is raised if no email address is found.

    @api.model
    def _get_default_from(self):
        if self.env.user.email:
            return formataddr((self.env.user.name, self.env.user.email))
        raise UserError(_("Unable to post message, please configure the sender's email address."))

In a general way, all the users should have an email address.
</pre>
</div>
</content>
</entry>
<entry>
<title>[IMP] base: add regular user admin as uid 2</title>
<updated>2018-08-23T19:38:57+00:00</updated>
<author>
<name>Raphael Collet</name>
<email>rco@odoo.com</email>
</author>
<published>2018-07-23T08:47:19+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=2f7c03d9ca5809b65dc6eaa778064668d34fcd2e'/>
<id>2f7c03d9ca5809b65dc6eaa778064668d34fcd2e</id>
<content type='text'>
User 1 simply becomes a technical user (inactive, no password).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
User 1 simply becomes a technical user (inactive, no password).
</pre>
</div>
</content>
</entry>
<entry>
<title>[SPLIT] base: split base_data</title>
<updated>2017-11-27T10:15:13+00:00</updated>
<author>
<name>Thibault Delavallée</name>
<email>tde@odoo.com</email>
</author>
<published>2017-10-17T15:01:45+00:00</published>
<link rel='alternate' type='text/html' href='http://erp.ceuconsult.com:9000/Odoo/commit/?id=22f02af6bf002324ebafc38d4eefeda60063247a'/>
<id>22f02af6bf002324ebafc38d4eefeda60063247a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
