Commit Graph
120894 Commits
Author SHA1 Message Date
Martin Trigaux b2d2be0a4a [I18N] base,mrp: export source terms 2018-09-25 15:30:45 +02:00
jem-odoo 40778d883d [IMP] doc: add selection method guideline
Sometime, we need to get selection values from
a method. Here are the guidelines about how
to correctly name method and place it in the
code.
2018-09-25 15:19:30 +02:00
jem-odoo 3c35678ce7 [IMP] doc: adapt guidelines for 12.0
Odoo evolves and its coding guidelines too.
This commit :
 - put some news guidelines, case to take
 into account when making new dev
 - update some guidelines that are difficult
 to applied in the real life
 - remove deprecated stuff (RML report, ...)
 - remove references to old
 api mainly, since all new dev must be done in
 new api

Task #1817988
2018-09-25 15:19:30 +02:00
Romain Derie bcd405efa3 [FIX] website_slides: fix website_meta_og_img right on partial channel
156955de6b introduced a new property `website_meta_og_img` in
`website.seo.metadata`.

When rendering a template, `render()` is calling `get_website_meta` that will
end up reading `website.seo.metadata` fields.

But `website_slides` module is overriding `check_field_access_rights` to allow
partial read on the record.
The new `website_meta_og_img` was missing from the allowed fields, thus
crashing when an user without the required slide's group would try to read the
slide.
2018-09-25 15:15:57 +02:00
Géry Debongnie 30302bc116 [FIX] payment: remove ES6 specific construct
Using the arrow syntax from ES6 is nice, but it breaks the doc build
process.
2018-09-25 14:46:58 +02:00
Thibault Delavallée 0e3d5941da [FIX] mail: also find escaped heart <3 emojis
Otherwise <3 is not correctly translated into :heart which makes a lot of
people very very sad.

Commit linked to task ID 1887949.
2018-09-25 14:44:45 +02:00
Thibault Delavallée 83b9c376ab [IMP] imp_livechat: add one shortcode as data
Purpose is to show people shortcode actually exists. Moreover having
im_livechat_mail_bot requires to have a least one shortcode available
in order to complete the onboarding with odoobot.

Commit linked to task ID 1887949.
2018-09-25 14:44:41 +02:00
Thibault Delavallée 224aedd30f [FIX] im_livechat_mail_bot: import user model file
Otherwise you **might** ran into issues with missing selection field key.

Commit linked to task ID 1887949.
2018-09-25 14:44:38 +02:00
Thibault Delavallée 6e6b82c7cd [IMP] mail_bot: add odoobot status field available on user form view in debug mode
Otherwise tweaking it requires an access to the database or making a custom
view which is not the most user-friendly way of doing it.

Commit linked to task ID 1887949.
2018-09-25 14:44:27 +02:00
qsm-odoo 2f1255c160 [FIX] website: add a filter on cover parallax
Without filter, this does not automatically work with theme images.
2018-09-25 14:13:41 +02:00
Adrien Dieudonne 1a16f4239b [FIX] web: display empty pie chart for embedded view
Before this commit, every pie chart without any data displayed
the non content helper in the middle of the screen.
This behavior is intended most of the time except for embedded
pie chart (such as in the dashboard views).

Now, an embedded pie chart without any data is rendered and displays
the error message in the middle of it.
We had to render it with nv.d3 to match the size of the other
graph in comparison mode.

Another commit in enterprise will add a test for this fix.
For the moment, embedded empty pie charts are only used on
dasboard views.
2018-09-25 14:04:31 +02:00
sri-odoo f5a86259f1 [FIX] portal, account: portal invoice alert layout
Fix broken layout issue
2018-09-25 12:57:22 +02:00
sri-odoo 553d3dbaad [REF] portal: keep breadcrumbs design across all pages 2018-09-25 12:57:22 +02:00
sri-odoo c25689fa0e [REF] portal, *: portal background is now gray by default
* account, project, sale, website_crm_partner_assign

- adapt table bg to new default page background
- keep searchbar design across pages
2018-09-25 12:57:22 +02:00
Anshuman Sharma 7f8898db36 [FIX] website_crm_partner_assign: remove useless BS3 classes
Closes https://github.com/odoo/odoo/pull/26576
2018-09-25 12:35:15 +02:00
Sébastien Theys 0027544779 [FIX] website_slides: fix bs4 bugs
PR: #27131
2018-09-25 12:20:55 +02:00
Jeremy Kersten 9c5ee042a5 [FIX] website_theme_install: fix install theme
Active field was ignored in all case instead of just update
Button 'update theme' call wrong function
2018-09-25 11:50:19 +02:00
Kishan Gajjar 98ee0f766c [FIX] website: BS4, restore gallery snippet 2018-09-25 11:38:56 +02:00
Dipalee Bhalodia 4ae0005438 [FIX] website_sale_options: restore website_sale_options dialog
Before this commit, on click on 'Continue Shopping' / 'Process Checkout'
button of the product options wizard, it opened the wizard again and
again.

Commit https://github.com/odoo/odoo/commit/8a85cb9ea48b0d25f38a8795c5e25f30cd5bb3f7
selector was made more general so this commit will solve this issue
by using a more specific selector and will not open wizard again on
click of 'Continue Shopping' button.

Closes https://github.com/odoo/odoo/pull/27079
2018-09-25 11:24:36 +02:00
Thibault Delavallée 82f361a318 [FIX] models: add filter method on access rules
Currently check_access_rule method checks for record rules and raises an error
if there are either missing ids (deleted records) or forbidden ids (records
hidden due to a record rule).

Purpose of this commit is to have a method allowing to filter a given recordset
and receive only valid records. Its implementation is basically a refactoring
of check_access_rule.

This commit is linked to task ID 1856417 and PR #26565.
2018-09-25 10:51:34 +02:00
Raphael Collet 13fc1380ba [FIX] ir_ui_view: do not check arch twice upon install/upgrade
After a module upgrade, validate the architecture of the module's views that
are impacted by updates, but have not been checked yet.  Before this patch,
views were checked twice on average.

This patch speeds up the installation of modules by about 15% without demo
data.  With demo data, the speedup is around 10%.
2018-09-25 10:41:55 +02:00
Martin Geubelle 587b21fb46 [FIX] base: correctly keep report values
When rendering a report (`render_qweb_html` for example), one can pass `data`
(a dict of values, used for the template rendering).

This dict was overriden in `_get_rendering_context` if the method
`_get_report_values` on the report model was not correctly written.

This was causing an issue when rendering a report in Studio because the `studio`
key was overriden.

Now, the `data` dict is updated (instead of replaced) with the rendering context.
2018-09-25 09:53:48 +02:00
Pratima Gupta 15f811c47a [FIX] mrp: mrp document kanban image.
The mrp document attachment could exceed its container size.

Task-1881068.
2018-09-25 09:46:57 +02:00
qsm-odoo 83aaaf259a [FIX] website: adapt column snippet option to BS4
Broken because col-md-offset-* -> offset-lg-*.
2018-09-24 18:31:25 +02:00
Dhaval Panchal 7347ac4c23 [FIX] web: restore mobile search menu color/position 2018-09-24 17:59:27 +02:00
Nicolas Seinlet 8da4007bae [FIX] mail: is_blacklisted is group protected
as the field is_blacklisted require the group base.group_users,
attrs using is_blacklisted should also use this group
2018-09-24 17:45:57 +02:00
Martin Trigaux c3270c4998 [FIX] project: default value should be translatable 2018-09-24 16:26:38 +02:00
Xavier Morel c9e421a12d [FIX] *: move some data over from root to admin
* "alert" mail alias, could be useful for the admin to get these
* the weekly mail digest
* the getting started project (& its tasks)
2018-09-24 15:55:06 +02:00
Xavier Morel e1837721a8 [FIX] *: reassociate various demo data to admin instead of root 2018-09-24 15:55:06 +02:00
Martin Trigaux 6ce2354d68 [I18N] project: make label_tasks translatable 2018-09-24 15:45:55 +02:00
RomainLibert 949381680f [FIX] crm: don't change sale team when salesman hasn't got one
We shouldn't overwrite the saleteam when changing to a salesman that is
linked to no salesteam
2018-09-24 14:58:02 +02:00
ThanhDodeurOdoo b428bf1023 [FIX] ir.attachment: thumbnails.
- attachments with res_field do not get thumbnails anymore.
2018-09-24 14:37:59 +02:00
Nimesh Jethva dd7c0774de [IMP] project: improve project form view usability
Some points have to be improved

 * 'Name of the tasks' field should always be visible. It shows the user such
   a change in configuration is possible;
 * tasks stat button is a way for the user to create a new task from the
   project form view. Just like the subtasks stat button that always shows
   on the task formview;
 * as he might be changing the 'name of the tasks', he should see the
   consequence of this change in the stat button (as the 'name of tasks'
   field might not directly speak to everyone, it is a way to show them what
   this field does);

This commit is linked to task ID 1884015 and closes PR #26906 .
2018-09-24 14:27:44 +02:00
Fabien Pinckaers c53da322a9 [IMP] website: SEO dialog, remove trach icon in th (it's not clickable) 2018-09-24 14:15:15 +02:00
Fabien Pinckaers 8a487a2ba4 [IMP] website: SEO dialog CSS html cleanup 2018-09-24 14:12:11 +02:00
Hiral Bhavsar 78c16df769 [FIX] stock_account: Removed filters
Purpose : remove the "Available Products", "Exhausted Products" and
 "Negative Products" filters from 'Inventory Valuation' as these filters
 are not working. They are defined on product.product.qty_at_date that
 is not stored.

Related to task: 1886360
2018-09-24 14:10:49 +02:00
Arnold Moyaux 0ce512d211 [IMP] stock: package.destination kanban view
Add a kanban view in order to have a better display when the user is in
mobile mode.

task-1872345
2018-09-24 14:02:08 +02:00
Adrien Dieudonne a533b9f290 [FIX] web: graph_renderer: show graph title
Since odoo/enterprise@e3b0d2a, the title wasn't set anymore.

This logic is now moved in the graph renderer to be able to
set a title in every graphs.

For now, we only use the title attribute for pie charts embedded
in dashboard views.
Additional tests has been added in 'web_dashboard' (enterprise).
2018-09-24 13:22:06 +02:00
Jeremy Kersten 411ce6a79e [FIX] website: don't force website_id on view in all cases
It make test of studio red, and better to have website broken that studio
2018-09-24 12:45:07 +02:00
Olivier Dony cb2862ad2a [IMP] core: require install mode for db bootstrap
The registry loading system should not alter databases unless it is
asked to do so, by a module installation or update instruction.
This property should hold true as well for database bootstrap, and this
is what this commit changes..

In order to avoid any behavior change for command-line users, an
implicit `-i base` is assumed when starting the server from the
command-line with `-d <db>`, causing the db boostrap to happen if the
database did not exist yet.
2018-09-24 12:30:49 +02:00
qsm-odoo 925fdbc683 [IMP] website: add snippets showcase demo data
Reaching the URL /demo/snippets-debug will now showcase all snippets
*automatically* (if a theme uses different snippets or if the snippets
change in the future, this page will not have to be adapted).
2018-09-24 12:20:35 +02:00
qsm-odoo 9f2750d9eb [IMP] website: add BS4 showcase demo data
Reaching the URL /demo/bs-debug will now showcase all bootstrap main
components and utilities.
2018-09-24 12:20:35 +02:00
sri-odoo 2b9cad5953 [FIX] web: table rows' contextual color
Increase readability for contextual (success, warning..) table rows.
2018-09-24 12:16:12 +02:00
sri-odoo 8052553893 [FIX] web: correctly set 'text-muted' color value 2018-09-24 12:16:12 +02:00
Mathieu Duckerts-Antoine 5ca2d15b24 [IMP] web: center texts of measures cells in pivot view 2018-09-24 11:41:41 +02:00
Toufik Benjaa 8d090e0835 [FIX] sale: crash when creating a transaction
- When creating a transaction, the method render_sale_button was called
  with an extra parameter.
2018-09-24 11:21:16 +02:00
mreficent a2632331fb [FIX] account: fix undefined variable type
Commit 82e1aed split a method in two methods and the field type was not copied

Closes #27159
2018-09-24 10:33:57 +02:00
Martin Trigaux 19523ea21b [IMP] base: use a generic warning message
l10n_mx_edi is a specific enterprise module
amount_to_text may be used in different modules (e.g. account_check_printing)
2018-09-24 09:58:21 +02:00
Odoo Translation Bot 1d79bf0273 [I18N] Update translation terms from Transifex 2018-09-23 02:29:29 +02:00
Jeremy Kersten 5eb674e03f [FIX] wesbite*: reorder res_setting form views
FGI request
https://drive.google.com/file/d/1S2LnQtFgA4zIaTMcK2LkFsp11buruJjn/view
2018-09-21 19:04:18 +02:00