Commit Graph
129357 Commits
Author SHA1 Message Date
David Beguin c5500e685a [FIX] tools : use babel to format timedelta
Babel is already taking the language into account while
formating a time delta into a readable string like '2 minutes ago'.

_format_time_ago was put in translate.py file to be able to use
the _ translate class. But it can be placed in misc like other
format function already using babel.

This fix the PR #34624
and is linked to Task ID : 2028059

Task ID: 2055847
Closes PR #35806

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-08-20 08:02:46 +00:00
Luis Torres b4ef0299db [FIX] account: Remove supplier/customer in default_partner_type
The fields supplier/customer was removed from the partner, then, they
cannot be used in the default for the views.

Avoid the next traceback in the next case:
'''raise ValueError("Invalid field %r in leaf %r" % (left, str(leaf)))
ValueError: Invalid field 'supplier' in leaf "<osv.ExtendedLeaf: ('supplier', '=', True) on res_partner (ctx: )>"```

1. Go to create a new payment for supplier
2. Try select the supplier

closes odoo/odoo#35743

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-21 15:07:23 +00:00
Jigar Patel 4a771a6763 [FIX] web: use correct avatar field for many2many_tags_avatar field widget
The issue has occurred after rename image fields https://github.com/odoo/odoo/commit/58a2ffa26f1a3b0f9630ce16d11b758d18e20a21

closes odoo/odoo#35596

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-08-09 11:21:09 +00:00
Antoine Prieels f918003028 [FIX] hw_drivers: Setup IoT Box
The setup of IoT Boxes failed since the merge of the task about
barcode scanners: odoo/odoo#35084

We tried to get the list of available keyboard layouts from the IoT
Box. The request was sent from the server, which cannot reach the Box
because it's not located on the same server.

We now perform this task the other way around. When a device of type
printer is created on the Box, we send the list of available layouts
to the server.

TaskID: 1961025

closes odoo/odoo#35925

Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2019-08-21 14:43:03 +00:00
Géry Debongnie f926318a78 [IMP] web: keep dirty fields dirty
Before this commit, a simple optimization was done: if a field was
modified in such a way that the new value is the same as the initial
value, then it is not considered changed.

However, with the new changes in the ORM, it may be an issue, because
doing so loses the intent of the user.  If an onchange changes a field,
then the user changes it back, the server is not aware of that fact.

With this commit, we simply keep the field in the list of changes to
send to the server.

opw #2057230

closes odoo/odoo#35890

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-08-21 08:27:42 +00:00
jem-odoo 0133426ec7 [IMP] sale_expense: employee can see all name_get of Sales Order
As f871908e86 wants to allow simple empoyee
to select any SO on which the expense should be reinvoice, we need a little
adjustement. Indeed, before this commit, the ir.rule of current user are
still apply (bad comprehension of `name_get_uid` parameter), so a salesman
will only be alble to reinvoice on its own SO while an employee can do the
same on any SO.
This commit fixes this strange use case with rco's advice to make this
mecanism work in a cleaner way.
To restrict this `name_search` done in `sudo`, we apply a context key, and
an hardcoded domain (combine with a AND) to minimize the divulgation.

Also, we want the saleman to be able to open and see the SO.

Task-1843241

closes odoo/odoo#35938

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-08-22 06:51:01 +00:00
William Henrotin 2137e45bb5 [IMP] stock, mrp: do not compute quantities on service product
This commit avoid searching into quants and stock.moves, the quantities
(available, forecasted, ...), for service product in order to speedup the search
on big recordset

closes odoo/odoo#35920

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2019-08-21 12:22:53 +00:00
William Henrotin 60f2262df7 [IMP] mrp: compute quantities speedup
The computation of kit quantities was not efficient. A loop on each product
of the recordset to consider performed. Each time a product was seen as 'not a kit',
a new computation on the complete recordset was done. This leads to a N^2 complexity

This commit only compute stock quantities for non kit product in one batch
2019-08-21 12:16:27 +00:00
Arnaud Baes 590fee2ec2 [FIX] mrp: Byproduct views
For some reasons (probably missing sheet & group), the form view for the byproduct
wasn't displaying properly. This commit implement and force a cleaner view when
you're coming from the form view of the Bill of Materials.

TaskID: 2057347

closes odoo/odoo#35918

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-08-21 15:22:16 +00:00
Robot Odoo 0c52c94f8e [IMP] web_editor, mass_mailing, website: restore the 12.0 editor
This PR reverts the saas-12.2 editor by restoring the 12.0 editor.

The saas-12.2 editor was an intermediate work between the previous
editor of Odoo 12 and the new one slated for Odoo 13. It was unstable
but it was expected to be replaced by the new editor of version 13.

However, since the new editor has been postponed to Odoo 14, the
saas-12.2 one would have been staying in Odoo 13, which would have
been a nightmare to maintain. To avoid this outcome, we chose to
put back the 12.0 editor in its place.

This has the particular advantage that Odoo 13 will share the same
bugfixes as Odoo 12 and 11 as they all run under the same core
editor, while the saas-12.2 one would have been an entirely
different beast to maintain.

Despite its title, this PR is not a revert of PR 29775 per se, as
we are using the wysiwyg abstraction layer that was introduced in
that PR.

The goal of the wysiwyg abstraction layer is to provide an
interface for other modules that want to use the editor feature
such that the editor core itself can be changed without requiring
extensive changes in the other modules.

This PR uses the wysiwyg abstraction layer to restore the 12.0
editor with minimal changes to the modules that use the editor.

closes odoo/odoo#35677

Signed-off-by: David Monjoie (dmo) <dmo@odoo.com>
2019-08-22 09:56:16 +02:00
56d0c1ed97 [REF] web_editor, mass_mailing: new iframe mechanism
Since we reverted the saas-12.2 editor in favor of the 12.0 one,
we faced a dilemna regarding how the editor iframe is handled in
mass_mailing.

The 12.0 version was using a special controller to get the website
assets required for mass_mailing while the saas-12.2 version used
a completely different mechanism that was, obviously, not handled
by the 12.0 version.

We did not want to reintroduce the old controllers who were
considered to be a hack to load the assets in the mass_mailing
iframe. However, we were very cautious about changing the editor
itself to avoid introducing new bugs in the editor core of 13.0.

The approach we chose at the end, is to use the loadAsset mechanism
introduced in saas-12.2 to load the necessary assets and inject them
in the mass_mailing iframe. This did not reintroduce the controllers
nor did it require to change the code of the editor itself. However,
it required moderate changes to the wysiwyg interface.

Part of PR 35677.

Co-authored-by: Nicolas Bayet <nby@odoo.com>
Co-authored-by: Antoine Guenet <age@odoo.com>
Co-authored-by: Christophe Matthieu <chm@odoo.com>
Co-authored-by: David Monjoie <dmo@odoo.com>
2019-08-22 06:41:05 +00:00
1eb1c2b029 [REF] web_editor: adapt wysiwyg tests to older summernote version
These modifications crystalize the behavior of the old editor, even
if it makes less sense than the behavior of the saas-12.2 one.

In some cases, the only reasonable adaptation we could do for 13.0
was to delete the tests, as these tests relied on mechanisms of
the newer version of summernote introduced in saas-12.2 which
cannot be easily replicated in the older version from 12.0 that
we are reintroducing in this PR.

It is sad to see these tests go, but we knew this was going to be
something we would lose in reverting back to the older editor.

That being said, since these tests were not present back in 12.0,
we are simply back to the 12.0 state of things, not worse. Don't
weep for them though, they will be back in Odoo 14.

Part of PR 35677.

Co-authored-by: Nicolas Bayet <nby@odoo.com>
Co-authored-by: Antoine Guenet <age@odoo.com>
Co-authored-by: Christophe Matthieu <chm@odoo.com>
Co-authored-by: David Monjoie <dmo@odoo.com>
2019-08-21 19:11:31 +00:00
912996fe90 [REF] web_editor, website: adapt wysiwyg to 12.0 editor
The wysiwyg abstraction layer was introduced in saas-12.2 by
commit f2969923. Its goal was to provide an external interface
for other modules that wanted to use the editor feature such
that the editor core itself could be changed without requiring
extensive changes in the other modules.

This commit is adapting the wysiwyg interface to instantiate
the 12.0 editor below it rather than the saas-12.2 one, thus
reverting the "new editor" part of f2969923 itself.

Part of PR 35677.

Co-authored-by: Nicolas Bayet <nby@odoo.com>
Co-authored-by: Antoine Guenet <age@odoo.com>
Co-authored-by: Christophe Matthieu <chm@odoo.com>
Co-authored-by: David Monjoie <dmo@odoo.com>
2019-08-21 19:11:31 +00:00
35b61822a8 [REV] wev_editor, website: revert saas-12.2 editor
This commit reverts the saas-12.2 editor by putting back the editor
of Odoo 12.

The saas-12.2 editor was an intermediate work between the previous
editor of Odoo 12 and the new one slated for Odoo 13. It was unstable
but it was supposed to be replaced by the new editor of version 13.

However, since the new editor has been postponed to Odoo 14, the
saas-12.2 one would have been staying in Odoo 13, which would have
been a nightmare to maintain. To avoid this outcome, we chose to
put back the 12.0 editor in its place.

This has the particular advantage that Odoo 13 will share the same
bugfixes as Odoo 12 and 11 as they all run under the same core
editor, while the saas-12.2 one would have been an entirely
different beast to maintain.

This is a partial revert of f2969923.

Part of PR 35677.

Co-authored-by: Nicolas Bayet <nby@odoo.com>
Co-authored-by: Antoine Guenet <age@odoo.com>
Co-authored-by: Christophe Matthieu <chm@odoo.com>
Co-authored-by: David Monjoie <dmo@odoo.com>
2019-08-21 18:52:36 +00:00
f14cecfc0a [REV] web_editor: revert summernote update
Summernote was updated alongside the new editor of saas-12.2. However,
since we are putting back the editor of 12.0, summernote needs to be
downgraded back to the version that was compatible with the 12.0 editor.

This is a revert of 17c6d005.

Part of PR 35677.

Co-authored-by: Nicolas Bayet <nby@odoo.com>
Co-authored-by: Antoine Guenet <age@odoo.com>
Co-authored-by: Christophe Matthieu <chm@odoo.com>
Co-authored-by: David Monjoie <dmo@odoo.com>
2019-08-21 18:52:19 +00:00
Kevin Baptiste 3dccf0dffd [FIX] product: add "variants" back to stat button
The word "variants" was missing from the stat button.

Task: 2046482

closes odoo/odoo#35413

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-21 12:26:18 +00:00
Humberto Arocha 480fdfbb7c [FIX] account: 'account.move' object has no attribute 'partner_bank_id'
closes odoo/odoo#35894

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-21 09:09:09 +00:00
Florian Gilbert 9bc4a19d74 [IMP] accounting : Usability back2basics.
task #2041848

closes odoo/odoo#35381

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-08-21 19:07:26 +00:00
jbm-odoo fa77ef1d2a [FIX] stock_sms: Wrong function name in button
closes odoo/odoo#35922

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-21 14:12:30 +00:00
Denis Ledoux 47f488a564 [FIX] calendar: recurrent event no longer working
Creating a recurrent event was no longer displaying
all recurring events in the calendar, only the base
event.

This is following odoo/odoo@9920f20e4c

closes odoo/odoo#35919

Signed-off-by: Denis Ledoux <beledouxdenis@users.noreply.github.com>
2019-08-21 13:44:56 +00:00
Arnaud Baes 78619cbe7e [IMP] stock: sequence duplication on picking types.
When a picking type is duplicated, the sequence was by default copied into
the new picking type. This behaviour has become misleading since the sequence_id
is shown only on debug mode. We now simply prevent sequence_id of being copied.

TaskID: 2057311

closes odoo/odoo#35908

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-08-21 11:59:15 +00:00
RomainLibert 9a27710aa7 [FIX] lunch: fix lunch product report
closes odoo/odoo#35904

Signed-off-by: Romain Libert (rli) <rli@odoo.com>
2019-08-21 11:04:28 +00:00
Yannick Vaucher f3c1e6cfbe Move ISR subscription fields under res.partner.bank
An Inpayment Slip with Reference (ISR) subscription number is provided by the bank or by Postfinance
ISR When the ISR subscription comes from Postfinance it is a direct
subscription.
ISR (bank) When the ISR subscription comes from a bank it is the bank subscription
toward Postfinance.

Having the subscription number on res.bank has 2 drawbacks:

If you have multiple accounts at Postfinance
or
If you have multicompany and each company has a Postfinance account

you won't be able to emit with different ISR subscriber numbers.

This also renames the fields to be accurate on the meaning.
An ISR reference is a Payment reference that will apear on the invoice.
It is better to name it subscription number.

closes odoo/odoo#35873

Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-08-21 12:51:24 +00:00
Raphael Collet 1d2bccd0db [IMP] fields: stricter rules on selection fields overridings
One cannot override the attribute `selection`, and list selections can only be
extended with `selection_add`.

Adapt the bad extensions to be consistent with the new warnings

closes odoo/odoo#35663

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-08-21 14:36:19 +00:00
Raphael Collet 4cd093a001 [IMP] fields: extend selection with a given order
When extended with the selection_add parameter, a singleton (value,)
where `value` appears in the overriden selection, can be used.
The new values are inserted in an order that is consistent with the
overridden selection and this list.

selection = [('a', 'A'), ('b', 'B')]
selection_add = [('c', 'C'), ('b',)]
> result = [('a', 'A'), ('c', 'C'), ('b', 'B')]
2019-08-21 13:47:17 +00:00
Parth Choksi ebaa132d5d [IMP] various: Clean settings UX (back2basics)
TaskID: 2028958

closes odoo/odoo#35551

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-08-21 12:12:33 +00:00
wan 1576c91c9a [IMP] account_reports: add off sheets acount type
Task 1998268

closes odoo/odoo#35150

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-08-21 14:28:19 +00:00
Kaushalya MandaliyaandMohammed Shekha e8e3ba96dc [FIX] mrp: work order overlap issue when applying group by status
workcenter overview kanban view card width is not same for all cards,
also kanban card overlap in grouped view, to fix this apply width on
o_kanban_record class instead of inline css, also apply width in
o_kanban_group to have same width for all cards in grouped view

task-2052465

closes odoo/odoo#35803

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>


Co-authored-by: Mohammed Shekha <msh@odoo.com>
2019-08-21 12:53:49 +00:00
Kaushalya Mandaliya 03c2083890 [FIX] mrp: traceback while printing BOM structure report
From the commit: 36b976ccee
A traceback is generated while printing BOM structure
report, which is fixed in this commit.

task-2024247
closes: #34899

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-07-30 10:33:16 +00:00
Shreya Modi af80c68ae5 [IMP] mail: improve create_uid heuristics in mail gateway
PURPOSE

Currently mailgateway runner user is used to create most documents through
incoming emails. Purpose of this commit is to try to link document creation
and update to users, using the email to make the matching.

SPECIFICATIONS

New sudo implementation allow to bypass access rights while keeping effective
user as creator. Use this mechanism to create documents still using the
mailgateway runner user while linking creator to matching user.

Heuristic to use to match email_from and users

* if route is linked to an alias: check its owner record and check in its
followers;
* find users having this emails;
* if route is linked to an alias: use alias_user_id field;
* fallback on mailgateway user;

Other side effect is that creator and author of incoming email linked to the
new record will now better match the document creator when linked to an
existing user.

LINKS

Task 1919267
PR #30597

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-08-21 13:28:03 +00:00
Thibault Delavallée 109f390756 [IMP] mail: remove unnecessary decorators
Purpose of this commit is to lessen complexity of stack chain in mail main
methods. Removing decorators is a good start for this.

LINKS

Task 1919267
PR #30597
2019-08-21 13:28:03 +00:00
Raphael ColletandMartin Trigaux a9567a7f21 [FIX] base: allow to remove fields when the registry is not ready
When the registry is not ready, allow modifications of the selections

The following use case must reset the values:
- removing a selection on a custom field via studio
- changing the static selection definition and updating the module

The value must NOT be reset when:
- trying to remove manually a base field
- updating a module without all override being computed yet
(i.e. install)

Fully replacing the selections in an override should not happen

Instead of relying on the context, check if the registry is ready
before marking the selections as to remove.
If a static selection is removed and the module updated, it will be
removed correctly during the _process_end method as the selections
will not be present in pool.loaded_xmlids

Before this commit, updating a module A was doing a SET NULL for
selection values added by a module B via a selection_add

closes odoo/odoo#35871

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>


Co-authored-by: Martin Trigaux <mat@odoo.com>
2019-08-20 15:56:09 +00:00
Robot Odoo c2d4873e71 [MERGE] portal, website_{mail, rating}: fix frontend rating and reorganize portal chatter overrides
PURPOSE

Fix frontend rating and clean a bit module organization.

SPECIFICATIONS

Fix rating in frontend (website_slides, website_sale): rating is halved at each
update and new entries have no rating.

Also reorganize portal chatter overrides

* rename files to ease code reading and discovering;
* move assets in their own file to better understand modules;
* move rating widget in its own file;

LINKS

Task 2057301
PR #35870

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-08-21 17:25:47 +02:00
Robot Odoo 59ac728175 [ADD] pos_epson_printer: Use Receipt printer without IoT Box
Linked to odoo/enterprise#5182

Add possibility to print receipts and orders on an ePOS compatible
Epson receipt printer located in the same local network than the
browser running the pos.

TaskID: 2033442

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#35829

Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2019-08-21 17:25:28 +02:00
Hetal Dhanak 9412695d08 [FIX] mrp: cast datetime from web interface
Updating a datetime field in a form view will fill the 'values' dict
with a string.
This commit casts the dates in mrp.production and mrp.workorder that are given to
their respective stock move into actual datetime object. This prevent any
converting error later in the process

Task : 2055912

closes odoo/odoo#35825

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-08-21 13:45:23 +00:00
Thibault Delavallée 532b1a5093 [FIX] portal, website_rating: re-allow rating from frontend
PURPOSE

Fix frontend rating and clean a bit module organization

SPECIFICATIONS

Broken since 3620cb68a0

LINKS

Task 2057301
PR #35870
2019-08-21 12:50:51 +00:00
Thibault Delavallée 26b7b0e286 [MOV] website_rating: rename portal files
PURPOSE

Fix frontend rating and clean a bit module organization

SPECIFICATIONS

In order to ease understanding of portal chatter dependencies let us name
files according to guidelines. In this commit we rename a bit files in
website mail to understand which widgets and portal parts are impacted by
website mail bridge module.

Assets are also moved in their own file to ease module discovering.

LINKS

Task 2057301
PR #35870
2019-08-21 12:50:51 +00:00
Thibault Delavallée d6ac39c6c3 [IMP] website_rating: remove useless templates
PURPOSE

Fix frontend rating and clean a bit module organization

SPECIFICATIONS

Remove unused template to lessen noise in this module.

LINKS

Task 2057301
PR #35870
2019-08-21 12:50:51 +00:00
Thibault Delavallée 241453aaec [MOV] website_mail: rename portal related files
PURPOSE

Fix frontend rating and clean a bit module organization

SPECIFICATIONS

In order to ease understanding of portal chatter dependencies let us name
files according to guidelines. In this commit we rename a bit files in
website mail to understand which widgets and portal parts are impacted by
website mail bridge module.

Assets are also moved in their own file to ease module discovering.

LINKS

Task 2057301
PR #35870
2019-08-21 12:50:51 +00:00
Thibault Delavallée 226e21c403 [IMP] website mail: remove useless public channel data
PURPOSE

Fix frontend rating and clean a bit module organization

SPECIFICATIONS

Remove useless mail.channel data as it makes noise without any added value.

LINKS

Task 2057301
PR #35870
2019-08-21 12:50:51 +00:00
ryv-odoo 57d51a4050 [FIX] website_rating: correctly take into account rating ratio in frontend
PURPOSE

Fix frontend rating and clean a bit module organization

SPECIFICATIONS

Currently when updating a review on slides, the rating value is divided
by 2 on each update as the rating ratio is not taken into account. In this
commit we correctly update the hidden input value during the start function
using the rating ratio.

LINKS

Task 2057301
PR #35870
2019-08-21 12:50:51 +00:00
svs-odoo 9ff7758c79 [FIX] mrp: can't open workorders from mrp overview
How to reproduce:
- Install mrp & mrp_workorder;
- Open Manufacturing and plan a workorder;
- Go on the Work Centers Overview;
- Click on "WORK ORDERS" button -> You got a "Something went wrong !".

closes odoo/odoo#35900

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-08-21 11:17:09 +00:00
Hardik Prajapati 8b495f3989 [IMP] mrp: better labels for the fields on the WO to consistency with the MO.
-hide the quantity done when the workorder has not start to work
-change the label of done to consumed when finish workorder

pad- https://pad.odoo.com/p/r.ed6d2ceefdd46214b72dc4e79552350e

task-1889396

closes odoo/odoo#34202

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-08-21 11:15:14 +00:00
Robot Odoo dc9c3aae96 [MERGE][ADD] project_expense: setting project on expense
This merge commit provide the possibility for project user to select
a project on an expense. Selectable project are only the one with an
analytic account set. Setting the project will set the analytic
account, so posting the expense will create analytic entries, and will
finally appear on the project overview.
If the analytic account still match an open sale order (and if the
product is reinvoicable), a new SO line will be added on the SO (this
flow does not change here).

Task-1843241 (previsouly Task-1911581)

closes odoo/odoo#29638

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-08-21 14:53:47 +02:00
jem-odoo f871908e86 [IMP] sale_expense: cost tracking and reinvoice flow for expense
Since 12.0, we wanted the employee to select directly the sales order on which
the expense should be reinvoiced. The goal was to avoid employee to select the
analytic account (too technical and usually unknown for employee). Problem is
that we had to give read access to SO to simple employee, breaking the access
rules "See your own document".

As we want to allow all internal employees to determine if the expense should
be reinvoice and on which sales order it should be, we need to allow them to
select that sales order.
This commit allows user to search on SO (simply get their name_get), no information
more to avoid breaking "See your own document" for salesman. Falty ir.rule and
access rights are now removed.

We now clearly split the cost tracking and reinvoicing flow:
- the analytic account field (visible only with group 'analytic' as considered
as advance feature) allows user to track their expenses in some accounts.
- the sales order is displayed for users or approvers to reinvoice the expense.
As this operation implies the tracking, if the AA is not give, the SO will create
its own AA in which the expense will be tracked.
This SO field is only relevant when the product has a reinvoice policy, so we hide
it if there is no reinvoice policy defined.

Reinvoicing an expense has now a different flow from reinvoicing a "Vendor Bill",
which still do magic to determine the SO from the AA set on its lines.

Technical:
to allow user to select SO from a m2o dropdown, the `name_search` is done in `sudo`
for internal user. This is a borderline 'feature' of the system. A few thing show
that the system does completely supports this ("Search More" gives access error, ...).
We still keep this solution, as we don't want a sub group giving access to SO to all
employee (aka an option allowing people to break the sales rights).

Task-1843241
2019-08-21 11:22:59 +00:00
jem-odoo 1f77ff3cd6 [FIX] sale: name get uniformize API
This commit makes the override of the `name_search` more
consistent the basic implementation of the ORM (using lazy
name_get and supports the `name_get_uid` parameters)

Task-1911581
2019-08-21 11:22:58 +00:00
jem-odoo 7c5ce75aeb [FIX] analytic: missing depends
This commit adds a missing `depends` on the `debit` and `credit` computed
field on analytic account model. Indeed, without that, the recompute is not
done when accessing thoses fields after adding lines in the same
transaction (like in tests).

Task-1911581
2019-08-21 11:22:58 +00:00
jem-odoo 00ac6c60f6 [FIX] project: portal user can not read AA
For historical reason (problably the inheritS between project and AA, removed in 12.0), portal
user can read Analytic Account. This makes no sense, as it is a purely internal resource
for companies. Removing the access rights don't change anything for portal user and make
those data secure.

Task-1911581
2019-08-21 11:22:58 +00:00
jem-odoo ba92261148 [FIX] sale_timesheet_purchase: correct action xmlid
Since the refactoring of the accounting model, some action changed
but their xmlid were not adapted everywhere.

Task-1843241
2019-08-21 11:22:58 +00:00
Denis Ledoux 4737e01691 [FIX] sale: fix _compute_quotations_to_invoice following odoo/odoo@9920f20e4c
closes odoo/odoo#35895

Signed-off-by: Denis Ledoux <beledouxdenis@users.noreply.github.com>
2019-08-21 09:59:06 +00:00