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`
189 lines
6.4 KiB
XML
189 lines
6.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<record id="base.res_partner_1" model="res.partner">
|
|
<field name="is_published">True</field>
|
|
</record>
|
|
|
|
<record id="event.event_0" model="event.event">
|
|
<field name="is_published">True</field>
|
|
<field name="twitter_hashtag">odoo</field>
|
|
<field name="description"><![CDATA[
|
|
<section class="s_cover parallax s_parallax_is_fixed pt96 pb96" data-scroll-background-ratio="1">
|
|
<span class="s_parallax_bg oe_img_bg oe_custom_bg" style="background-image: url('/web/image/website.s_background_image_02'); background-position: 50% 100%;"/>
|
|
<div class="container">
|
|
<div class="row s_nb_column_fixed">
|
|
<div class="col-lg-12 s_title bg-black-50" data-name="Title">
|
|
<h1 class="s_title_thin" style="font-size: 62px; text-align: center;">5 Intensive Days</h1>
|
|
<h4 class="text-muted" style="text-align: center;"><font style="color: rgb(255, 255, 255); font-size: 24px;">to learn <i>Odoo Programming</i></font></h4>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<div class="container">
|
|
<div class="text-center mt-5">
|
|
<h2>Course Summary</h2>
|
|
</div>
|
|
|
|
<div class="my-3">
|
|
<p><span style="text-align: -webkit-center; ">This course is dedicated to developers who need to grasp knowledge of the <strong>business applications development </strong>process. This course is for new developers or for IT professionals eager to learn more about technical aspects.</span></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12 text-center mt-5 mb-2">
|
|
<h2>What you will learn?</h2>
|
|
</div>
|
|
|
|
<div class="col-lg-4 mb-4">
|
|
<div class="card bg-info">
|
|
<div class="card-header text-center">
|
|
<h2>Day 1</h2>
|
|
|
|
<p class="text-muted">Introduction to Javascript</p>
|
|
</div>
|
|
|
|
<ul class="list-group list-group-flush"><li class="list-group-item">Hello World</li>
|
|
<li class="list-group-item">Variables & Operators</li>
|
|
<li class="list-group-item">Dive into Strings</li>
|
|
<li class="list-group-item">Functions</li>
|
|
<li class="list-group-item">Loops</li>
|
|
<li class="list-group-item">Arrays</li>
|
|
</ul><div class="card-footer text-center">
|
|
<p class="text-muted"><i>You will be able to develop simple dynamic components in HTML pages.</i></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-4 mb-4">
|
|
<div class="card bg-info">
|
|
<div class="card-header text-center">
|
|
<h2 style="margin: 0">Day 2</h2>
|
|
|
|
<p class="text-muted" style="margin: 0">Odoo Web Client</p>
|
|
</div>
|
|
|
|
<ul class="list-group list-group-flush"><li class="list-group-item">Introduction to JQuery</li>
|
|
<li class="list-group-item">Advanced JQuery</li>
|
|
<li class="list-group-item">Underscore</li>
|
|
<li class="list-group-item">Introduction to QWeb</li>
|
|
<li class="list-group-item">Controllers and Views</li>
|
|
<li class="list-group-item">Bootstrap CSS</li>
|
|
<li class="list-group-item">Calling the ORM</li>
|
|
</ul><div class="card-footer text-center">
|
|
<p class="text-muted"><i>You will be able to create dynamic page interacting with the ORM.</i></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-4">
|
|
<div class="card bg-info">
|
|
<div class="card-header text-center">
|
|
<h2 style="margin: 0">Day 3</h2>
|
|
|
|
<p class="text-muted" style="margin: 0">Building a Full Application</p>
|
|
</div>
|
|
|
|
<ul class="list-group list-group-flush"><li class="list-group-item">Modules</li>
|
|
<li class="list-group-item">Python Objects</li>
|
|
<li class="list-group-item">Report Engine</li>
|
|
<li class="list-group-item">Workflows</li>
|
|
<li class="list-group-item">Training Center Module</li>
|
|
<li class="list-group-item">Integrated Help</li>
|
|
<li class="list-group-item">How to Debug</li>
|
|
</ul><div class="card-footer text-center">
|
|
<p class="text-muted"><i>You will be able to develop a full application with backend and user interface.</i></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-lg-12 text-center mb-3 mt-5">
|
|
<h2>Requirements</h2>
|
|
</div>
|
|
|
|
<div class="col-lg-12 my-3">
|
|
<p><strong>Objectives:</strong></p>
|
|
|
|
<p><strong>Having attended this course, participants should be able to:</strong></p>
|
|
|
|
<ul><li>Understand the development concepts and architecture;</li>
|
|
<li>Install and administer your own server;</li>
|
|
<li>Develop a new module for a particular application.</li>
|
|
</ul><p></p>
|
|
|
|
<p><strong>Our prices include:</strong></p>
|
|
|
|
<ul><li>drinks and lunch;</li>
|
|
<li>training material.</li>
|
|
</ul><p></p>
|
|
|
|
<p><strong>Requirements:</strong></p>
|
|
|
|
<ul><li>Bring your own laptop.</li>
|
|
<li>Participants are expected to have some knowledge in programming. A basic knowledge of the Python programming is recommended.</li>
|
|
<li>Participants preferably have a functional knowledge of our software (see Functional Training).</li>
|
|
</ul><p></p>
|
|
|
|
<p>To get more information, visit the <a target="_blank" href="http://odoo.com/">Odoo Official Website</a>.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="container">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<h1 class="text-center">Read Great Contents</h1>
|
|
|
|
<h3 class="text-muted text-center">What do people say about this course?</h3>
|
|
</div>
|
|
|
|
<div class="mt16 col-lg-6">
|
|
<blockquote class="border-left pl-3 font-italic mb-0 mt-3">
|
|
<i class="fa fa-quote-left"/>
|
|
<p class="font-weight-bold">I did not expect such a great learning experience. I feel like I can develop anything now.</p>
|
|
<small>John Doe, CEO</small></blockquote>
|
|
</div>
|
|
|
|
<div class="mt16 col-lg-6">
|
|
<blockquote class="border-left pl-3 font-italic mb-0 mt-3">
|
|
<i class="fa fa-quote-left"/>
|
|
<p class="font-weight-bold">This course help me build my first application within a month. Definetly worth its price.</p>
|
|
<small>John Doe, CEO</small></blockquote>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
]]></field> </record>
|
|
|
|
<record id="base.res_partner_3" model="res.partner">
|
|
<field name="is_published">True</field>
|
|
</record>
|
|
|
|
<record id="base.res_partner_4" model="res.partner">
|
|
<field name="is_published">True</field>
|
|
</record>
|
|
<record id="event.event_2" model="event.event">
|
|
<field name="is_published">True</field>
|
|
<field name="twitter_hashtag">odoo</field>
|
|
</record>
|
|
|
|
<record id="base.res_partner_2" model="res.partner">
|
|
<field name="is_published">True</field>
|
|
</record>
|
|
<record id="base.res_partner_address_4" model="res.partner">
|
|
<field name="is_published">True</field>
|
|
</record>
|
|
</odoo>
|