Commit Graph
117975 Commits
Author SHA1 Message Date
Martin Trigaux 76840643ad [I18N] sale: export source terms
Some where missing, followup of opw-805838
2018-01-29 16:30:47 +01:00
Martin Trigaux b0ce9ce8ca [FIX] hr: open in list view
This action was not working as the tree view has been removed
This feature was replaced by hr_org_chart module
Just display a list of the employee and subordinates

Fixes #20203
Fixes #22312
Fixes #22536
2018-01-29 16:26:21 +01:00
qsm-odoo b3c5392b6a [REF] *: convert sass content to less content
* note, payment, sales_team, website_forum, website_sale(_options)

(prepare for all less -> scss conversion)
2018-01-29 15:37:28 +01:00
qsm-odoo 6bdb979b39 [REF] *: rename sass files to less files
* note, payment, website_forum, website_sale(_options)

This is a simple renaming of sass files to less files. The real
convertion will be done in the commit that follows.
2018-01-29 15:37:28 +01:00
Pierre Masereel 52a85e57b9 [IMP] stock: configurable product's weight UOM
This commit adds the possibility to chose between pounds and kilograms
to express the weight field on the product. This is done so that
companies that worked internally in pounds do not have to convert their
weights back to kilograms for a consistent computation of the rates in
delivery.

We complete the general settings with the selection of the weight's uom.
Validating the setting will create an ir.config.parameter. A static
method defined on product template will return the chosen UOM.

We display "weight_uom_name" on the form view so that the UOM is not
clickable/editable because we fear user would want to edit the UOM
instead of changing it in the res config.

We move the view definition allowing to fill the product's weight from
stock to product to help the generation of the intrastat report without
installing inventory.
2018-01-29 15:20:56 +01:00
Goffin Simon 110613b2cc [FIX] l10n_in_hr_payroll: Error printing payslip details
Programming error

opw:803169
2018-01-29 15:14:50 +01:00
Thibault Delavallée 304e6cf90b [IMP] mail: make notification layout a real parameter of message post
Purpose of this commit is to add a new parameter to message post that
is the layout used when sending notification emails. It will soon
replace the context use of custom_layout in some case. It will also
allow to control a bit the notification process from the message_post
API in more or less planned future mail updates.

This commit also slightly changes the way notification process handles
deleted or unknown rendering templates. Before this commit any missing
custom template was replaced by the base template. A missing base
template was leading to a crash. Now it simply logs a warning and avoid
crashing.
2018-01-29 14:53:54 +01:00
Olivier Colson 75857a2c34 [FIX] account: don't ignore default journal_id in payments' onchange on amount field
onchange function getting called when modifying the 'amount' field of account.payment always changed the journal of the payment when this amount was equal to zero. This caused a bug with batch deposits, when trying to create a new payment from the tree view contained in the form view of account.batch.deposit: passed default value for journal_id was ignored.
2018-01-29 14:42:36 +01:00
Thibault Delavallée 951cb8bf40 [REF] hr_holidays: remove unnecessary mail.thread notification override
Notification emails contain a link to the record. Before 6187ffa258
it was necessary to choose whether to display leave or allocation as
button label. It is not necessary anymore since each concept has its own
odoo model. Standard behavior is now sufficient as it displays the model
description, now leave or allocation. The unnecessary code is therefore
removed.
2018-01-29 14:33:23 +01:00
Thibault Delavallée 11d2d30e91 [REM] mail: remove follow / unfollow buttons in notification emails
Notification emails contain a link allowing to follow or unfollow
documents directly from the notification email. However there are
several issues with this button

 * it require people to login to follow or unfollow documents;
 * it is not linked to the email;
 * if the customer does not have a login it is not possible to perform
   the action;
 * there is no confirmation step;

This commit removes the follow / unfollow button in the notification
emails. Indeed as people have the "Access document" button there is
only one more click to perform in order to subscribe or unsubscribe.
Concerning customers adding a complete control of the follow mechanism
would be costly in term of code and access rights checks. We therefore
decided to remove this button.

It also allows to simplify a bit the notification process as there
are less parameters to take into account when grouping recipients. It
allows to lessen the number of required template rendering when sending
notification emails.
2018-01-29 14:19:53 +01:00
Nicolas Martinelli 5c5098f740 [FIX] stock: performance issue inventory at date
On a production database with ~10000 products and multiple stock
locations, uunning the 'Inventory at date' tales ~50 minutes. Most of
the time is spent in the loop populating `group_lines` thanks to
multiple search queries.

We get rid of this loop by selecting the stock history lines and making
the match between these lines and the `read_group` result manually. On
the reference database, the duration falls to ~30 seconds.

Based on preliminary work by amoyaux

opw-803460
2018-01-29 13:58:18 +01:00
Nicolas Martinelli 6a91ae0c18 [FIX] event: mail after event
Prevent sending emails that were scheduled before the event to be sent
after the end of the event.

opw-802973
2018-01-29 13:53:40 +01:00
Nicolas Lempereur 5b230c34cb [FIX] web: noshow list view aggregates w/ currency
In df69b5bb the aggregates of a column with currency was shown only if
records were of the same currency when a grouping was closed.

But when the list view is grouped, this would cause a number of issue:

- error if with first grouping is opened, another one is closed
- if the first grouping was closed aggregates were always shown
- the code only acts when closing a grouping
- aggregates could be shown when they should not
- aggregates could be not shown when they should

So this commit change things so this feature is ignored when the list
view is grouped.

There is also a fix so `currency_field` of the column is used instead of
just using `currency_id` that may be wrong.

note: only for saas-14 and saas-15 (feature is not present in saas-16)

opw-810835
closes #22598
2018-01-29 13:37:22 +01:00
Christophe Simonis 9af65a7efe [MERGE] forward port branch saas-16 up to 0b188b5804 2018-01-29 13:37:12 +01:00
Christophe Simonis 0b188b5804 [MERGE] forward port branch saas-15 up to 2629029d03 2018-01-29 13:29:14 +01:00
Christophe Simonis 2629029d03 [MERGE] forward port branch saas-14 up to 8b8f04e14c 2018-01-29 13:28:18 +01:00
Christophe Simonis 8b8f04e14c [MERGE] forward port branch 10.0 up to 6d682cea25 2018-01-29 13:27:28 +01:00
tbe-odoo 6d682cea25 [REV] http: Implicit session deactivation -> Explicit destruction
- This commit degrade the performance and introduce a bug for multiple database servers.

This reverts commit bc69b47073.
2018-01-29 13:25:21 +01:00
Suraj Shukla 27b30daea5 [IMP] calendar: get first day of week from user's current language.
The first day of week is a cultural habit usually linked to the language. An additionnal option could be added later on the user preferences to allow a user to change the first day of the week in his calendar view.
2018-01-29 12:21:11 +01:00
Raphael Collet 2bfc23030d [FIX] base, test_mail: logger names in tests 2018-01-29 11:08:35 +01:00
Nicolas Martinelli 8ed7570b1c [FIX] tools: float_round DOWN
The result of the following:
```
float_round(2.5, precision_rounding=0.05, rounding_method='DOWN')
```
is 2.45. Instead, 2.5 is expected.

In case of the `DOWN` method, epsilon should be added, not subtracted.
In the meantime, we introduce a slight reorganization of the method to
make it clearer.

opw-805008
2018-01-29 11:06:33 +01:00
Pierre Masereel 149e7a7084 [REF] repair: tests
- create new repair instead of using the demo data to make further
  extensions easier
- integrate the fees testing in an existing test
- test the created moves of a repair order
2018-01-29 11:02:12 +01:00
dip-odoo 355f59eb5d [REF] mrp_repair: locations handling
This commit removes the location_dest_id on repair orders. This field
was used to move the product to a specific location after the repair was
done. It makes the usability of the repair order smoother and the user
can still make a transfer to move the product to another location
afterwards.
2018-01-29 11:02:05 +01:00
David Arnold eaf537338c [IMP] stock: take preferred routes into account for push rules
The user is able to specify a route on a SO line. The pull rules are
correctly used however the push rules are not apply.

This patch adds a check in order to apply possible push rules associated
to the route specified on the SO lines.

Closes #22141
2018-01-29 11:01:25 +01:00
Simon Lejeune 3dc37a4ffc [REF] stock: allow returns in another warehouse
Previously, it was only possible to make a return in
- the location the move was coming
- a return location that is child of the parent_location, actually
  meaning a return location in the warehouse

This commit now allows making return in all return location, even one
located in another warehouses.
2018-01-29 11:00:49 +01:00
Adrian Torres aae4d8a013 [FIX][IMP] doc: document manifest features (#22474)
Some manifest features, such as external_dependencies, hooks, etc. were
not previously documented, this commit documents these features.

Closes #22471
2018-01-29 10:59:32 +01:00
Nicolas Martinelli 39b65efbad [IMP] stock: stored related
Slight improvement of the performance when creating thousands of stock
move lines, e.g. for a product tracked by unique SN.

opw-807588
2018-01-29 10:12:32 +01:00
jem-odoo e3a58b4d3f [IMP] hr: make working calendar required on employee view
When trying to save an employee without working calendar, we
get an error message, since the resource_calendar_id of the
related resource object is required. To have a better error
setting the field required on view is more explicit.
We don't want to set it directly on the field as it is
a related stored field, to avoid recompute problem.
2018-01-29 10:11:29 +01:00
jem-odoo a9c4521178 [FIX] sale_timesheet: avoid division by zero in case of timesheet line with 0 hour 2018-01-29 10:11:22 +01:00
jem-odoo 528136c1b6 [IMP] project: update forecast module description in settings 2018-01-29 10:10:54 +01:00
jem-odoo 8386773a5b [IMP] resource: define a conversion factor hour to day on working calendar
Using a working calendar, you might want to know
how much hour correspond a work day. This depends
of you working calendar. This might be usefull to
compute leave duration (half a day is not 8 hours,
but 4).

The hours_per_day field is not computed as the
average of working hour of all work day of calendar
to allow customization. By default, it is 8, as
the default attendances are the one from the
40h/week calendar.

A constant is also available to handle case where
resource calendar is not available.
2018-01-29 10:10:46 +01:00
jem-odoo c667853f59 [IMP] project: add hook name to extend settings view 2018-01-29 10:10:40 +01:00
Martin Trigaux 43bf9ff29d [IMP] sale: display which field was actually modified in the error message
Was previously displaying the whole list of fields
In error such as #22333 the error was not clear which field is nodified
2018-01-29 10:03:54 +01:00
Yenthe V.G 74c91f4afe [FIX] doc: typos
Closes #22341
2018-01-29 10:01:42 +01:00
Yoshi Tashiro 116e3bdbba [FIX] website_slides: typo
Closes #22567
2018-01-29 09:52:23 +01:00
Lucas Perais (lpe) af17cd76e4 [FIX] account: onchange payment type to internal displays all journals
on account.payment, when changing the payment type to Internal Transfer,
the result of the onchange was erroneous as inbound and outbound methods
lack relevance in that case
After this commit, We choose to display all bank and cash journals in this case

OPW 804214
2018-01-29 09:29:24 +01:00
Fabien Pinckaers ccc1764c7c [IMP] web: LESS: reduce kanban col padding: cleaner + avoid larger right than left (folded cols) 2018-01-29 08:56:38 +01:00
Rémi Rahir 4669a4a91f [FIX] iap: account link not wworking in saas
Before this commit, the dashboard pill taht allows the user to consult
his iap accounts was hidden for saas users as it is grouped with the
app store and theme buttons which are not supposed to be shown since
they are not available in saas.

This commit ensures taht the button will be shown both on saas and premise instances.
2018-01-28 16:32:14 +01:00
Odoo Translation Bot d06bf070cb [I18N] Update translation terms from Transifex 2018-01-28 07:04:23 +01:00
Odoo Translation Bot 53c9858656 [I18N] Update translation terms from Transifex 2018-01-28 04:29:24 +01:00
Odoo Translation Bot e8d719e977 [I18N] Update translation terms from Transifex 2018-01-28 00:43:32 +01:00
Aaron Bohy 16b8f2136b [MERGE] web,*: Kanban QuickCreate widgets improvement
*: mainly crm, hr_recruitment and project

This branch improves the RecordQuickCreate and ColumnQuickCreate
widgets of the Kanban view, in order to ease user onboarding.

The RecordQuickCreate is no longer limited to the display_name: it
instantiates a real form view, whose xmlid has to be referenced in the
root node of the Kanban arch (attribute 'quick_create_view'). This
branch already defines quick create form views for models 'crm.lead',
'hr.applicant' and 'project.task'.

The ColumnQuickCreate's main change is that it may now contain a link
leading to a dialog with examples of how to configure the columns (by
specifying a JS registry key under attribute 'examples' in the root node
of the Kanban arch, and by defining the examples to display in the
dialog in that registry). Examples have already been specified for the
'project.task' Kanban view. Several other tweaks have been done on the
ColumnQuickCreate (e.g. it now opens directly in grouped Kanban views
with no column, its style has been improved...)

Tasks #27475 and #38740.
2018-01-26 20:24:55 +01:00
Géry Debongnie cb339842d4 [REF] web,*: move fvg processing from DataManager to Views
*: mail, web_diagram
2018-01-26 19:26:03 +01:00
Aaron Bohy fbb6942326 [FIX] project: adapt tour to flow changes
The ColumnQuickCreate widget is now automatically open when
entering a grouped Kanban view with no column. Moreover, the DOM
of the quick create has changed. The tour had to be adapted
accordingly.
2018-01-26 19:26:03 +01:00
Géry Debongnie 12fa4e565a [REF] web: move _loadSubviews() from FormView
... as this function is only used by the FormView.
2018-01-26 19:26:03 +01:00
Parth Patel b96a4f6296 [IMP] web,project: Kanban onboarding
The goal of this rev. is to improve the user onboarding on the
Project app: when the user creates a new project, he is now guided
to properly configure the stages of its project.

To do so, we added a new mechanism in the Kanban view, allowing to
define examples of processes that can be used in the corresponding
view.

The style of the ColumnQuickCreate widget has also been changed.

Part of task #38740
2018-01-26 19:26:03 +01:00
Aaron Bohy 36a9cb2059 [IMP] web: Kanban open ColumnQuickCreate if no column
Part of task #38740
2018-01-26 19:26:03 +01:00
Aaron Bohy 563c31fe49 [IMP] web: Kanban: hide Create button if no column yet
Onboarding process: the user has to create a column first.

Part of task #38740
2018-01-26 19:26:03 +01:00
Aaron Bohy 6ea347a490 [REF] web: Kanban: move quick create widgets
... in their own file.
2018-01-26 19:26:03 +01:00
Aaron Bohy 7ed3bd40a7 [FIX] crm,test_main_flows: adapt tours to flow changes
The 'crm_tour' and 'main_flow_tour' tours both create a 'crm.lead'
record from the Kanban view at some point. Since last commit, this
doesn't open a form view in a dialog anymore, but instead opens a
form view in the QuickCreate widget. Some steps of those tours had
to be adapted accordingly.
2018-01-26 19:26:03 +01:00