The `website_published` field from the website's mixins is basically a readonly
from `is_published` field.
On read, this field will simply read `is_published` and check if the record's
website_id is accessible (only for the multi mixin).
On write, it will always write on `is_published`.
This commit improves a few things:
- A lot of code was writting on website_published which was just then writting
on is_published. Writting directly on is_published makes more sense.
- Some backend fields would still reference `website_published` instead of
`is_published` which would just go through the related for no reason.
Plus, using `is_published` will make the field tooltip more accurate as we
are not in a website context ('Visible on current website' to 'Is Published')
- Filter and search on tree view were still using the `website_published`
related field, which is just a readonly when we are not in a frontend
context.
- Some create and write function would have security check on
`website_published` value but that was wrong as the user could bypass that by
simply writting on `is_published`. For the write method, check `is_published`
is more accurate as it will cover both case since `website_published` will
then call the write method on `is_published`
123 lines
7.0 KiB
XML
123 lines
7.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
|
|
<record id="base.res_partner_2" model="res.partner">
|
|
<field name="is_published" eval="True"/>
|
|
<field name="website_short_description">Deco Addict designs, develops, integrates and supports HR and Supply Chain processes in order to make our customers more productive, responsive and profitable.</field>
|
|
<field name="website_description" type="xml">
|
|
<p>
|
|
Deco Addict designs, develops, integrates and supports HR and Supply
|
|
Chain processes in order to make our customers more productive,
|
|
responsive and profitable.
|
|
</p><p>
|
|
Our experts invent, imagine and develop solutions which meet
|
|
your business requirements. They build a new technical
|
|
environment for your company, but they always take the already
|
|
installed IT software into account. That is why Idealis
|
|
Consulting delivers excellence in HR and SC Management.
|
|
</p><p>
|
|
Deco Addict integrates ERP for Global Companies and supports PME
|
|
with Open Sources software to manage their businesses. Our
|
|
consultants are experts in the following areas:
|
|
</p>
|
|
<ul>
|
|
<li>Sales and Distribution</li>
|
|
<li>Materials Management</li>
|
|
<li>Inventory and Warehouse management</li>
|
|
<li>Customer Relationship Management</li>
|
|
<li>Personnel Administration</li>
|
|
<li>Talent Management</li>
|
|
<li>Reporting</li>
|
|
</ul>
|
|
</field>
|
|
</record>
|
|
<record id="base.res_partner_3" model="res.partner">
|
|
<field name="is_published" eval="True"/>
|
|
<field name="website_short_description">A non-profit international educational and scientific organisation, hosting three departments (aeronautics and aerospace, environmental and applied fluid dynamics, and turbomachinery and propulsion).</field>
|
|
<field name="website_description" type="xml">
|
|
<p>
|
|
A non-profit international educational and scientific
|
|
organisation, hosting three departments (aeronautics and
|
|
aerospace, environmental and applied fluid dynamics, and
|
|
turbomachinery and propulsion).
|
|
</p><p>
|
|
It provides post-graduate education in fluid dynamics
|
|
(research master in fluid dynamics, former "Diploma
|
|
Course", doctoral program, stagiaire program and lecture
|
|
series) and encourages "training in research through
|
|
research".
|
|
</p><p>
|
|
It undertakes and promotes research in the field of fluid
|
|
dynamics. It possesses about fifty different wind tunnels,
|
|
turbomachinery and other specialized test facilities, some
|
|
of which are unique or the largest in the world. Extensive
|
|
research on experimental, computational and theoretical
|
|
aspects of gas and liquid flows is carried out under the
|
|
direction of the faculty and research engineers, sponsored
|
|
mainly by governmental and international agencies as well
|
|
as industries.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
<record id="base.res_partner_4" model="res.partner">
|
|
<field name="is_published" eval="True"/>
|
|
<field name="website_short_description">Deco Addict designs, develops, integrates and supports HR and Supply Chain processes in order to make our customers more productive, responsive and profitable.</field>
|
|
<field name="website_description" type="xml">
|
|
<p>
|
|
Deco Addict designs, develops, integrates and supports HR and Supply
|
|
Chain processes in order to make our customers more productive,
|
|
responsive and profitable.
|
|
</p><p>
|
|
Our experts invent, imagine and develop solutions which meet
|
|
your business requirements. They build a new technical
|
|
environment for your company, but they always take the already
|
|
installed IT software into account. That is why Idealis
|
|
Consulting delivers excellence in HR and SC Management.
|
|
</p><p>
|
|
Deco Addict integrates ERP for Global Companies and supports PME
|
|
with Open Sources software to manage their businesses. Our
|
|
consultants are experts in the following areas:
|
|
</p>
|
|
<ul>
|
|
<li>Sales and Distribution</li>
|
|
<li>Materials Management</li>
|
|
<li>Inventory and Warehouse management</li>
|
|
<li>Customer Relationship Management</li>
|
|
<li>Personnel Administration</li>
|
|
<li>Talent Management</li>
|
|
<li>Reporting</li>
|
|
</ul>
|
|
</field>
|
|
</record>
|
|
<record id="base.res_partner_3" model="res.partner">
|
|
<field name="is_published" eval="True"/>
|
|
<field name="website_short_description">A non-profit international educational and scientific organisation, hosting three departments (aeronautics and aerospace, environmental and applied fluid dynamics, and turbomachinery and propulsion).</field>
|
|
<field name="website_description" type="xml">
|
|
<p>
|
|
A non-profit international educational and scientific
|
|
organisation, hosting three departments (aeronautics and
|
|
aerospace, environmental and applied fluid dynamics, and
|
|
turbomachinery and propulsion).
|
|
</p><p>
|
|
It provides post-graduate education in fluid dynamics
|
|
(research master in fluid dynamics, former "Diploma
|
|
Course", doctoral program, stagiaire program and lecture
|
|
series) and encourages "training in research through
|
|
research".
|
|
</p><p>
|
|
It undertakes and promotes research in the field of fluid
|
|
dynamics. It possesses about fifty different wind tunnels,
|
|
turbomachinery and other specialized test facilities, some
|
|
of which are unique or the largest in the world. Extensive
|
|
research on experimental, computational and theoretical
|
|
aspects of gas and liquid flows is carried out under the
|
|
direction of the faculty and research engineers, sponsored
|
|
mainly by governmental and international agencies as well
|
|
as industries.
|
|
</p>
|
|
</field>
|
|
</record>
|
|
</data>
|
|
</odoo>
|