Commit Graph
126133 Commits
Author SHA1 Message Date
Pierre Rousseau 405705de2b [IMP] crm, iap, sms, snailmail_account, partner_autocomplete: replace credit checker widget
Remove the check of the balance for the IAP accounts in the settings.
Add a link to buy credits to all of the services in the settings.

Task #1909302
2019-01-02 10:22:12 +00:00
Pierre Rousseau c299225020 [IMP] account: improve snailmail settings
Task #1909302
2019-01-02 10:22:12 +00:00
Pierre Rousseau cf6b979c78 [IMP] base_setup: improve IAP settings
Add a section dedicated to contact services (sms, partner_autocomplete)

Task #1909302
2019-01-02 10:22:12 +00:00
Pierre Rousseau d4ecf4277a [IMP] snailmail_account: rename settings label
Task #1909302
2019-01-02 10:22:12 +00:00
Pierre Rousseau 4eb17b0d4c [IMP] crm: rename module label
Task #1909302
2019-01-02 10:22:12 +00:00
Géry Debongnie 68eefe3cee [FIX] web: do not render invisible filters in search view
In some cases, the web client may receive a search view with invisible
filters.  This is due to the way field_view_get works.  For
example, if there is a group on a filter, then this will be transformed
into an invisible attribute.

In that case, the search view should simply ignore the filter and not
display it.  This was broken in the recent control panel refactoring
(note that the search view lacked the possibility of testing that kind
of situation).

closes odoo/odoo#29430
cherry-pick of 13aae100e2

closes odoo/odoo#29965
2019-01-06 16:54:29 +00:00
qsm-odoo 70f35620ba [FIX] web_editor: restore backend colors
Commit https://github.com/odoo/odoo/commit/52ec536cef2ec84af0b36746f19a8cdf9f23fe2a
made a mistake which made the backend use the website colors. This is
because the web_editor app adds its bootstrap_overridden.scss file in
both backend and frontend assets as the backend needs the editor colors
(alpha, beta, ...). However, the 'primary', 'secondary', etc that the
backend customizes should not be overridden by the web_editor. Therefore
the file contained a hack to determine if it is the backend or not...
hack which did not work anymore with the new system the mentioned
commit implements.

Also some comments were not adapted correctly by the mentioned commit.

closes odoo/odoo#29935
2019-01-04 11:27:07 +00:00
Robot Odoo c2c5785940 [MERGE][REF] mail, various: rename and merge both tracking field parameters
Track_visibility field parameter allows to track field changes in mail. Since
commit c99de45 only updated values are tracked. Previously to that commit it
was possible to have field values being tracked whenever any other change
occurred. This feature has been removed to simplify tracking and avoid having
unnecessary values in the tracking table. In this commit we rename the
track_visibility parameter to tracking. Old parameter value is still supported
in mail for backward compatibility.

Commit ec35eca added sequence on tracking so that display of tracking values
is coherent through various chatter messages. To ease tracking configuration
it is merged with the tracking (old track_visibility) parameter. It means
tracking parameter can either be True (default sequence of 100) or an integer
giving the sequence to apply on the tracking.

Purpose of those changes is to simplify tracking configuration with studio
in mind. That way changing one parameter allow to customize the tracking of
fields in chatter.

Sequence field on mail.tracking.value model is renamed to tracking_sequence to
have a coherent namespace for tracking information. Tracking information on
ir.model.fields is also updated accordingly. To simplify manipulation boolean
value for tracking is automatically transformed into a sequence of 100.

All addons are updated accordingly.

This merge is linked to task ID 1903814 and PR #28430.
2019-01-04 14:00:57 +01:00
Thibault Delavallée b8197ff178 [REF] various: update tracking parameters
Purpose is to clean the use of tracking parameters on fields. Parameters are
merged and is now tracking=<int> or tracking=True.

This commit is linked to task ID 1903814 and PR #28430.
2019-01-04 11:46:14 +00:00
Thibault Delavallée 09ad56bcd6 [REF] mail: rename and merge tracking-related parameters
Track_visibility field parameter allows to track field changes in mail. Since
commit https://github.com/odoo/odoo/commit/c99de4551583e801ecc6669ac456c4f7e2eef1da only updated values are tracked. Previously to that commit it
was possible to have field values being tracked whenever any other change
occurred. This feature has been removed to simplify tracking and avoid having
unnecessary values in the tracking table. In this commit we rename the
track_visibility parameter to tracking. Old parameter value is still supported
in mail for backward compatibility.

Commit https://github.com/odoo/odoo/commit/ec35eca7c6b772139c8fa143b388ad1d936bc9ea added sequence on tracking so that display of tracking values
is coherent through various chatter messages. To ease tracking configuration
it is merged with the tracking (old track_visibility) parameter. It means
tracking parameter can either be True (default sequence of 100) or an integer
giving the sequence to apply on the tracking.

Purpose of those changes is to simplify tracking configuration with studio
in mind. That way changing one parameter allow to customize the tracking of
fields in chatter.

Sequence field on mail.tracking.value model is renamed to tracking_sequence to
have a coherent namespace for tracking information. Tracking information on
ir.model.fields is also updated accordingly. To simplify manipulation boolean
value for tracking is automatically transformed into a sequence of 100.

This commit is linked to task ID 1903814 and PR #28430.
2019-01-04 11:46:14 +00:00
RomainLibert beb1a9dbd0 [IMP] hr_holidays: Merge remaining_leaves/leaves_count compute methods
The fields remaining_leaves and leaves_count have the same computation
(two different methods but they compute the same quantity)

We still need to have two different fields, because they need to both be
in the view at the same time, but we can use the same computation for
both of them.

closes odoo/odoo#29879
2019-01-03 11:05:48 +00:00
jbm-odoo dbf7257971 [IMP] hr_payroll: Add a multi-report printing mechanism
Purpose
=======

We can't have only one report template for all the payslips. Some things
are specific to belgium, or another country. (For example, display the
amount on meal vouchers on the payslip). We should add an multi action,
and a button on the payslip form to print it.

Add a report field on a salary structure. This report is used on printing.

That way we can specify another report for a given salary structure and
print all the document of a employee with the correct report on each
payslip.

closes odoo/odoo#29674
2019-01-03 10:12:36 +00:00
Antoine Prieels (ANP) 3e9102bb50 [IMP] mail: group mailFailures by type in systray
We want to add new kinds of failures to the list in the systray, such as Snailmail or SMS failures.
Until now, failures linked to documents of the same model were grouped together in the systray.
Different types of failures should not be grouped in a single line so we add a '_failureType' variable to mailFailures and group them only if their type is the same.

closes odoo/odoo#29855
2019-01-02 10:14:58 +00:00
Kinjal Mehta d029ee1bcb [FIX] website_sale : make checkout flow working proper on wrong coupon code
eCommerce checkout flow was moving forward on wrong coupon code, now it
stay on same page if promocode is wrong.

Task #1872055

closes odoo/odoo#26242
2018-12-31 09:15:31 +00:00
Nicolas Martinelli ebc09694f5 [FIX] project: outdated message
Issues has been removed some time ago.

opw-1920007

closes odoo/odoo#29837
2018-12-31 14:25:00 +00:00
Paulus Pamungkas 6e1ca5bcf2 [IMP] auth_ldap: hide password in interface
Set ldap password as password field

closes odoo/odoo#29662
2018-12-31 12:51:49 +00:00
Paulus Pamungkas a84422f88d [CLA] signature for ppamungkas 2018-12-31 12:51:36 +00:00
Yenthe V.G 201bd9101d [IMP] base: Add sheet of several basic form views
Add <sheet> tag on the form view for the following models:
- res.bank
- res.country
- res.country.group
- res.country.state
- res.partner.title
- res.partner.category
- res.partner.industry

[IMP] base: add sheet to countries form and add group names for clean xpaths

[IMP] base: add sheet to contact tags form

[IMP] base: add sheet to parter title form

[IMP] base: add sheet in sectors of activity form

[IMP] base: add sheet to federal states form

[IMP] base: add sheet to country group form

[IMP] base: add sheet to bank view and add group names for cleaner xpaths

closes odoo/odoo#27324
2018-11-22 10:47:08 +00:00
Yenthe666 78182af799 [IMP] resource: allow easy xpath on forms
closes odoo/odoo#29817
2018-12-31 14:17:34 +00:00
Andrea 59289eda05 [FIX] link_tracker: _sql_constraints not applied
The unicity was not applied

closes odoo/odoo#29793
2018-12-31 09:16:39 +00:00
Yenthe666 7ca17c402f [FIX] website_forum: fix typos in goal definitions
closes odoo/odoo#29819
2018-12-29 19:26:02 +00:00
Yenthe666 1341877ec9 [FIX] account_test: fix typo in report
closes odoo/odoo#29795
2018-12-28 15:05:37 +00:00
David Tran 784d3cbbcf [IMP] point_of_sale: more convenient in refund extending and inheritance
When creating refund order, Odoo copies the original order and put
some default copy data. All these things were put in the same method
which causes problems for extensions.

This commit split the refund method into multiple dedicated methods so
that others can modify/inject more data easily

closes odoo/odoo#29792
2018-12-28 14:47:01 +00:00
Yenthe V.G 123a77c160 [IMP] analytic: add sheet to form view
For a better rendering

closes odoo/odoo#27345
2018-12-28 15:20:58 +00:00
lul-odoo 68ba96760f [IMP] hr_recruitment: Add application history for same applicant
Purpose
=======

HR users wants to know if an applicant applied to multiple jobs
or if he applied in the past.

Specification
=============

Keep an history of applications based on email.
Add a stat button on the applicant form to display
other applications with the same email.

closes odoo/odoo#29613
2018-12-28 13:21:22 +00:00
Yenthe V.G d4e3b57c76 [IMP] mail: add group names for clean xpath expressions
closes odoo/odoo#27342
2018-12-28 13:03:53 +00:00
sed-odoo ea5c10a11c [IMP] base: Add a new 'Approvals' module category
Will be used in a new module in the enterprise repository

closes odoo/odoo#29384
2018-12-28 10:58:50 +00:00
sed-odoo fd1c610839 [IMP] mail: Pass the session uid on activity renderer
Purpose
=======

We could want to retrieve the session user id when rendering the next
activities on the chatter (For example in the new approvals module on the
enterprise repository).

At the same time, we used 'web.session' to retrieve this valued instead
of 'self.getSession().uid' which is deprecated.
2018-12-28 10:58:50 +00:00
sed-odoo df43defe84 [IMP] mail: Modify activity templates to ease inheritance
These templates are supposed to be modified by a new approvals application
in the enterprise repository.
2018-12-28 10:58:50 +00:00
Cas Vissers e502423f2b [FIX] resource: Rename 'Evening' into 'Afternoon' in default attendances
Evening is not the common way to describe the second shift of the day.

Closes #28253

Co-authored-by: Cas Vissers <c.vissers@brahoo.nl>

closes odoo/odoo#28950
2018-12-27 13:21:36 +00:00
qsm-odoo 52ec536cef [REF] *: make stronger bootstrap assets
* portal, theme_bootswatch, web, web_editor, website

With less2sass and bs3tobs4 tasks, the assets structure was reviewed to
handle the specificities of both framework and to prepare for our next
odoo tasks. In particular, the assets_helpers and bootstrap overrides
were basically split into 4 parts: utils, primary variables, secondary
variables and bootstrap variables.
(see https://github.com/odoo/odoo/commit/6e4db7d13a926845bf82f5b035afede42d6d5a89)

Using the !default system for the bootstrap variables parts seems now
a good improvement. This is part of what this commit does: adding the
default flag for all bootstrap variables overrides and inverting the
order of the files in the _assets_backend_helpers and
_assets_frontend_helpers templates. This allows to avoid code like this:

portal:
```
$body-bg: white;
```

website:
```
@​if $var != null {
    $body-bg: $var;
}
```

This code makes the body white with portal or equal to $var with website
if $var has a value. The same behavior in the new file order is achieved
with:

website:
```
$body-bg: $var !default;
```

portal:
```
$body-bg: white !default;
```

This order is now also followed for the _assets_secondary_variables
templates (there are only a few).

This commit also make better assets hierarchy by making website inherit
from portal assets (instead of web) and portal inherit from web_editor
assets (instead of web) (thus relying on strong dependencies instead of
installation order which is not always right for migrated databases).

closes odoo/odoo#29757
2018-12-26 17:25:23 +00:00
Denis Ledoux ec48392e39 [TODO] service/server: note to remove override that will become useless
The method override `_handle_request_noblock`
is there to solve a bug in Python socketserver library
which has been solved in
- Python 3.6: python/cpython@8b1f52b5a9,
- Python 3.7: python/cpython@9080824513,

through PR python/cpython#9952.

These revisions will be included in Python releases 3.6.8 and 3.7.2,
and the override will then become useless.
We therefore can remove the `_handle_request_noblock` override
as soon as the Python 3 releases installed on operating systems
supported by Odoo are above
- 3.6.8 for Python 3.6
- 3.7.2 for Python 3.7

closes odoo/odoo#29706
2018-12-21 11:27:44 +00:00
Florent de Labarre e0d1fd7ec7 [IMP] base: allow to group modules by state
To easily identify the one installed or in error state

closes odoo/odoo#28938
2018-12-20 15:11:10 +00:00
Yannick Tivisse 89b12e9857 [IMP] hr_payroll_account: Remove unused field
This field seems to be never used.

closes odoo/odoo#28737
2018-11-15 15:20:19 +00:00
Aaron Bohy 4df0a1e31a [FIX] web: wrong tests
This commit fixes two tests that became meaningless after tweaks
in production code:

 - form_tests: use two char fields, as integer fields can't be
   unset since rev. c62a4edcb
 - pivot_tests: the button is disabled since rev. 4f4f111, but
   simulating a click with jQuery bypasses the disabled attribute

This commit also removes unecessary overrides of mockRPC. Those
overrides existed  because the attachments part of the sidebar
used to make a search_read RPC, but this has been removed at rev.
1dbb555.

closes odoo/odoo#28650
2018-11-13 19:56:55 +00:00
Lucas Perais (lpe) 7525455534 [WIP] looking good babe 2018-11-13 16:40:30 +00:00
Wolfgang Taferner 0246887f7b [FIX] account: wrong default journal based on type available in vals
As the journal is mostly set in the Odoo world the _default_journal
method is not needed during create, but in case you only have
partner_id, account_id and type in vals you will have retrieved a wrong
journal in case you have an incoming invoice.

closes odoo/odoo#28635
2018-11-13 16:20:42 +00:00
Florent de Labarre 4e37ce8855 [FIX] project: remove unused field
If `description` contains an image, the loading time of the kanban view
can be rather long. Since the field is not even used in the view, it can
be removed.

opw-1915193

closes odoo/odoo#29034
2018-12-05 08:33:36 +00:00
Goffin Simon 3c8b57dc53 [FIX] sale_stock, stock: Wrong dependency
The field sale_id on model stock.picking is not defined in stock module.
So the rule was wrong when sale_stock was uninstalled.

opw:1912564

closes odoo/odoo#29145
2018-12-04 14:07:56 +00:00
qdp-odoo 069c2f2304 [FIX] account: fix invoice access rights
removed the access right that was granting the read access on invoices to any internal user, because there's no reason to do so.

Fixes #28486
2018-11-13 17:18:43 +01:00
Arnold Moyaux a172166a8b [FIX] purchase_stock: merge po by default
Usecase to reproduce:
- Create a product with a vendor and mto/buy route checked.
- Create 2 SO and confirm them

The system generated 2 RDF instead of a single with 2po lines (same than
v11). It happens because the propagation option of buy rules is
leave empty in v11 and Propagate in v12. It was unintentionally removed
by commit 1e160dffd3

This commit set leave empty as default value for buy rules.

opw-1904165

closes odoo/odoo#28637
2018-11-13 14:22:51 +00:00
Nathan de Pryck 3af06bf47c [FIX] stock_account: view priority
In some case, this view was used to perform a search of product.product.
Before, this modificiation all the search view had the same priority
which means that depending on some situation, the wrong search view was
loaded.

opw-1903611

closes odoo/odoo#28634
2018-11-14 09:35:26 +00:00
len-odoo 93c6d22e01 [FIX] sale_timesheet: fix incoherent demo data
The uom unit of a product on a sale order line was not with the product uom.
As a result, an error would be triggered when trying to edit the SO, without the
possibility to fix it (as the field is not in the view).
Odoo takes a stand against incorrect demo data.

opw 1906315

closes odoo/odoo#28641
2018-11-13 15:11:40 +00:00
Goffin Simon 51982f9199 [FIX] website: Impossible to link an analytic account
Steps to reproduce the bug:

- Go to Website > Dashboard > Analytics and click on "Link my analytics account"
- Enter some data and save

Bug:

A traceback was raised: TypeError: website_set_ga_data() missing 1 required
positional argument: 'website_id'

opw:1905874

closes odoo/odoo#28636
2018-11-13 16:12:47 +00:00
Lucas Perais (lpe) c70bdd0e4e [FIX] account: do not check for company logo when printing reports
Have a company that do not have a logo.

Try to print a "PDF report" from the accounting module

Before this commit, the simple company form popped up
with the purpose of force setting a company logo

After this commit, we assume it is not necessary to have a company logo on the reports

Note, because of 733ce266ef, we cannot do a save and print

OPW 1904764

closes odoo/odoo#28617
2018-11-13 11:15:24 +00:00
Sanjay Jamod 8f99013d01 [FIX] website: method should be called with action not with self
to avoid 'Expected singleton error'

OPW: 1909205

closes odoo/odoo#28648
2018-11-14 06:32:40 +00:00
lul-odoo 21976ca838 [FIX] base: Fix rng for 'templates' tag in calendar view
The following commit https://github.com/odoo/odoo/commit/76e6a0e3560db8257ab0d183463a894ace1e3a7e
renamed in the js calendar view file the template tag from 'template' to 'templates' but forgot
to rename it in the rng file. Since that commit templates in calendar views are not working.
This commit fixes this issue.

closes odoo/odoo#28601
2018-11-13 14:10:36 +00:00
Lucas Perais (lpe) 526bfca3af [FIX] base_address_city: correct view_get with address fields
Have a partner with children exceeding the limit of the kanban.
Edit,
Add a contact > save and quit
Save the partner

Before this commit, there was a traceback, because a check on parent_id was done to compute
the modifier readonly of the city fields in subviews

However, python onchange gets rid of parent_id because child_ids and parent_id are two faces of the same coin
And if that check were not done, we would end up in an infinite recursion

After this commit, there is no traceback, as we stop checking on parent_id in the case of paged subviews
(list and kanban) because we literally know there is one

OPW 1886320

closes odoo/odoo#27114
2018-11-14 08:33:23 +00:00
Goffin Simon 6123cc912c [FIX]purchase_requisition: Creating requistions from OP
Steps to reproduce the bug:

- Create a product : stockable + purchase : propose a call for tenders + reordering rule (qty min 0, max 0, multiple 1)
- Create a SO for that product.
- Run the scheduler once : a requistion is generated (Purchases > Purchase > Purchase Agreements), which is normal behavior
- Run the scheduler a second time

Bug:

A new requistion was generated for the same product, by the same reordering rule

opw:1892950

closes odoo/odoo#28611
2018-11-13 15:08:20 +00:00
Nicolas Martinelli da2d415b79 [FIX] sale: date on Sales Analysis
Use a consistent date between both views of the Sales Analysis report,
otherwise switching from one view to another shows a different
information.

opw-1903091

closes odoo/odoo#28625
2018-11-13 12:56:57 +00:00