Commit Graph
130551 Commits
Author SHA1 Message Date
Samuel Degueldre c2ff5075ae [FIX] snailmail: fix traceback on re-send or cancel failed letter, open \"Buy credits\" in new tab
PURPOSE

Fixes traceback when clicking on "re-send letter" or "cancel letter" buttons
(RPCs were being made with wrong number of arguments)
makes the "Buy credits" link open in a new tab to not interrupt the user's workflow

task-2068271

closes odoo/odoo#36667

Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2019-09-24 07:51:38 +00:00
Bhavita Bhatt 42834e4eb3 [FIX] mrp: Explicitely label by-products
In this commit,  replaced label string 'Finished Products' to 'By-Products'
inside the work order form view. It's more readable and useful to the user

task-2058431

closes odoo/odoo#36343

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2019-09-24 08:24:23 +00:00
Arnaud Joset 60f03666ab [IMP] product, sale, *: clean the views of attributes and values
* = point_of_sale, sale_management, sale_product_configurator, stock,
    website_sale, website_sale_comparison, website_sale_wishlist

- Remove Attribute Values menu to ease onboarding because everything can be done
  more cleanly through Attributes menu.
- Remove unwanted new lines from help texts.
- Hide color fields when attribute type is not color.
- Move Attribute "Related Products" into a tab because it is less important than
  the rest of fields.

The opportunity is also taken to rename the `type` field of `product.attribute`
to `display_type` to better convey its meaning.

task-2058142

closes odoo/odoo#36313

Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2019-09-20 14:59:05 +00:00
Juhil Somaiya ececa1f7bf [FIX] *: hide technical field widgets in non-debug mode (Studio)
*:
- account
- barcodes
- calenndar
- hr_timesheet
- mail
- mass_mailing
- partner_autocomplete
- web
- website_slides

This commit removes description of fields that should not be shown in
non-debug mode Studio. Only field widgets whose own description is
set are displayed in non-debug mode Studio in "Widget" of sidebar.
In other words, even if any ancestor has a description but not the
current widget, it won't be displayed in the sidebar in non-debug
mode.

Task-Id 2056992

closes odoo/odoo#35902

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-09-23 15:00:44 +00:00
Raphael Collet e4fc7568c1 [FIX] tests: clean up environments in SavepointCase
The following issue occurs nondeterministically: a test fails when
trying to flush pending updates with a user id that does not exist.
This only happens with `SavepointCase` tests.

Here is the explanation: the method `cr.savepoint()` retrieves an
environment to flush pending updates, and the chosen environment has a
user that was created in another test, and thus no longer exists.  The
problem is that `Environments.envs` contains environments that are no
longer supposed to be used.

The solution consists in, after the test, discarding the environments
that were not present before the test.

closes odoo/odoo#37341

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-09-24 08:45:54 +00:00
Benjamin Vray a15d3a710c [FIX] crm_iap_lead_enrich: correctly fill name and description
The company description in the chatter was replaced with our internal note
Same thing if we filled the company name in the Follow-Up tab before the lead was enriched

TASK-ID : 2069155

closes odoo/odoo#36625

Signed-off-by: Pierre Rousseau (pro) <pro@odoo.com>
2019-09-11 08:23:28 +00:00
wan beaa293377 [IMP] account: tell which invoice are duplicated
There was no way of knowing which vendor bills were duplicated if you
uploaded multiple vendor bills and the warning from
_check_duplicate_supplier_reference was raised.

closes odoo/odoo#37131

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-19 10:10:18 +00:00
wan b487537c24 [FIX] account: wrong filter_domaini on move_id from aml
closes odoo/odoo#36964

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-16 11:18:50 +00:00
Sébastien Theys d0a4b20d36 [FIX] auth_signup: prevent crash if http_routing not installed
Follow up of 269aa59411

`request.lang` is only set on `http_routing` so it cannot be used here.

The fix here is the same as what was done on `web` on the mentioned commit.

To reproduce the issue:
- install any module, but not `http_routing`
- use reset password
- try to set a new password from the received link with token

A few notes about the mentioned commit:
- the `lang` `lazy_property` was removed because it was a string before and a
  record now, and lazy_property cannot return a record
- the `lang` on the `request` is now a record
- the `lang` on the `context` is still a string

closes odoo/odoo#36468

Signed-off-by: Romain Derie (rde) <rde@odoo.com>
2019-09-05 12:31:57 +00:00
wan 8ad3e221bb [IMP] account: name get unification
f67ee39c0c4639d7445cc341189a0b1092937f22 added Change the label "/" by "Draft <document type>" for draft entries (change name_get() of account.move)

We should have used _get_move_display_name instead. Not using it was
causing 2 different behavior (group by name in Sale/Purchase/... and
Journal Entry in Partner Ledger list view)

Also, _get_move_display_name was only differentiating draft invoices,
not bills, credit notes,...

closes odoo/odoo#37273

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-23 11:49:58 +00:00
Raphael Collet 85f33da8ed [FIX] models: also consider inactive records in modified()
closes odoo/odoo#37257

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-09-23 10:09:14 +00:00
Denis Ledoux 1ee3ec071e [FIX] base, hr_attendance: missing else in compute field, following odoo/odoo@9920f20e4c
closes odoo/odoo#37258

Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
2019-09-23 10:09:59 +00:00
Yannick Tivisse 5cc0c447aa [IMP] website: Improve test robustness
Purpose
=======

A lot a demo data are added in enterprise for the Belgian company.

It implies for example a private address for a Belgian employee for
Mitchell Admin.

This commit improves the test to work even with this new demo data.

closes odoo/odoo#37088

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-09-23 09:03:44 +00:00
Yannick Tivisse dea1add336 [FIX] crm: Harmonize some demo data 2019-09-23 09:03:44 +00:00
Yannick Tivisse 4f6de10d41 [FIX] resource: Fix typo 2019-09-23 07:56:12 +00:00
Yannick Tivisse b72aaca051 [FIX] hr: Correctly compute last_activity date 2019-09-23 07:56:12 +00:00
Yannick Tivisse cb55db51b7 [FIX] hr,hr_presence: Correctly retrieve config parameters values 2019-09-23 07:56:12 +00:00
RomainLibert 39ebe4094e [FIX] hr: fix button layout 2019-09-23 07:56:12 +00:00
Yannick Tivisse 285f2f9d47 [FIX] hr*: Grant user's rights to demo user for HR applications 2019-09-23 07:56:12 +00:00
Yannick Tivisse 1b21a9cf55 [FIX] hr_holidays: Reset leave type if employee changes actually 2019-09-23 07:56:12 +00:00
Yannick Tivisse 213b9bda7d [FIX] hr_holidays: Fix expected singleton issue 2019-09-23 07:56:12 +00:00
qsm-odoo fbae846daf [FIX] website_mass_mailing: adapt snippet options
The snippet options UI was not adapted to the new web_editor UI.

closes odoo/odoo#37250

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-23 09:30:01 +00:00
qsm-odoo 7b92e13533 [FIX] web_editor: fix section drag and drop error (2)
Forward-port of https://github.com/odoo/odoo/commit/6f14b488fb380c6a3f1b7361b9901de3f07fd9ea
was not properly done.
2019-09-23 09:00:45 +00:00
Josse Colpaert 83ce8859c8 [FIX] l10n_cn: states moved to base
closes odoo/odoo#37201

Signed-off-by: Romain Libert (rli) <rli@odoo.com>
2019-09-20 09:14:23 +00:00
Odoo's Mergebot bfab398889 [MERGE] (mass_mailing_)sms: replace icons
Improve branding and icons quality.

TASK 2061424
PR #37243

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-23 11:42:15 +02:00
William Henrotin 070456169b [FIX] mrp: open stat buttons with proper id
On the workcenter form view, the stats button open some analytics but
the wrong worcenter id is given into context. it uses active_id but this
id refers to the first object of the breadcrum and so could be something else
than a workcenter.

closes odoo/odoo#37233

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-23 08:13:34 +00:00
Kevin Baptiste b354f017a0 [FIX] hr_recruitment: remove 'active' statbutton
Since the introduction of the ribbon widget, the boolean_button widget
does not exist anymore.

closes odoo/odoo#37232

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-09-23 07:33:24 +00:00
Martin Trigaux ade9341212 [IMP] website: do not use a default name for visitors
See 'Webiste Visitor (date)' as display name
Remove default value as a way to easily detect if somebody has already
a name or not

Note using the id in the display name is a bad (may not be set yet)
but is used knowlingly as a short way to differentiate 2 visitors.

Linked to task id: 2073714

closes odoo/odoo#37230

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-23 08:14:43 +00:00
Martin Trigaux 33dc3bd995 [REV] website: revert commit 5b9a81a2
Comparing on translated string does not work as two people in different language
won't get the same result in the name_get
2019-09-23 06:15:09 +00:00
sri-odoo 4be2cdf623 [REF] mass_mailing_sms: replace app icon 2019-09-22 09:33:17 +00:00
sri-odoo 6d76501345 [REF] sms: redesign mail thread icon 2019-09-22 09:33:17 +00:00
sri-odoo ec9eadc352 [REF] sms: replace mail/systray fail icon
Use SVG format to improve rendering in HiDPI display while keeping tiny
the file size.
2019-09-22 09:33:17 +00:00
sri-odoo 59498db811 [REF] sms: redesign composer button 2019-09-22 08:21:33 +00:00
Jinal Patel 59c90e9b1d [FIX] mail: pass context from schedule activity
Problem is that while creating Opportunity from schedule activity at the
bottom of the activity view, context was not applied.
For Example, CRM > Pipeline, while creating opportunity that will create
a lead because context was not applied.
In this commit, context should be applied.

task-2072491

closes odoo/odoo#37139

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-19 11:28:00 +00:00
wan efd97b7ea0 [IMP] account: review the hierarchy of account type selection
* Add an equity section inside the balance sheet
* Divide profit and loss into Expense and Income
* Reorder the Expense and Income types

closes odoo/odoo#36599

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-10 09:11:35 +00:00
wan f98f5fea0c [IMP] account: change the accrual wizard action name
The previous name (change period) was misleading and not really correct.
2019-09-10 08:33:07 +00:00
Geoffroy Larue 7294c377db [IMP] hr_timesheet: access logic
Fix various incoherences related to timesheets :

- Hide the progress field on the task form view if user hasn't
- timesheet user access.  Remove the possibility to link a new
   timesheet to a task belonging to a project not allowing timesheets.

Task-2066533

closes odoo/odoo#36475

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-09-19 09:26:27 +00:00
Kevin Baptiste c48648a7a5 [FIX] hr_org_chart: prevent line from appearing on transparent image
Before this commit, the tree line of the org chart was appearing under
images with a transparent background.

closes odoo/odoo#37212

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-09-20 14:36:32 +00:00
Odoo's Mergebot 2461caf620 [FIX] hw_drivers, point_of_sale: Fix receipts & keyboards
- In KeyboardUSBDriver, we use xlib to translate keysyms. The encoding
of returned chars is now utf-8. We don't need to treat special
characters differently anymore.

- Some receipts still had part of their backgrounds black.

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

closes odoo/odoo#37168

Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2019-09-23 10:55:41 +02:00
Antoine Prieels e8f041ac3d [FIX] point_of_sale: Black background receipts
Some receipts still had part of their backgrounds black.
2019-09-19 11:29:46 +00:00
Antoine Prieels d8a2cf04bd [FIX] hw_drivers: xlib encoding with keysyms
In KeyboardUSBDriver, we use xlib to translate keysyms. The encoding
of returned chars is now utf-8. We don't need to treat special
characters differently anymore.
2019-09-19 07:44:55 +00:00
Antoine Prieels 37bdade9a2 [IMP] hw_drivers: Add manufacturer on IoT Devices
Add the possibility to set a manufacturer on IoT Devices.

closes odoo/odoo#36748

Taskid: 2062227
Signed-off-by: Quentin Lejeune (qle) <qle@odoo.com>
2019-09-19 06:01:08 +00:00
Odoo Translation Bot 974261f7e9 [I18N] Update translation terms from Transifex 2019-09-22 01:19:57 +02:00
David Beguin 7f485c8d10 [IMP] website, website_* : improve visitor kanban view
This commit review the design of the visitor kanban view.
There is now two style for kanban card.
Ungrouped : the card takes all the width of the screen. It's simulate a nice tree view.
Grouped : Same design as before. ('normal' kanban card)

Apply visitor kanban views redesign also in :
- website_livechat
- website_crm
- website_sms

Task ID: 2073714
PR #37081

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-20 09:40:26 +00:00
David Beguin 368c4be99b [IMP] website : remove is_connected filter by default in visitor views
In order to see all the visitors, we remove the is_connected filter.
So that a visitor that disconnect 2 sec ago can still be visible.
Anyway, there is a connection status in the views.

Task ID: 2073714
PR #37081
2019-09-20 08:55:38 +00:00
David Beguin 5b9a81a2c6 [IMP] website : increment visitor name to be identifiable
This commit aims to rename the visitor that has no lead and no res.partner
to 'Website Visitor #id'.
So that the visitors can be identified when, for example,
an operator talk with multiple visitors.

Task ID: 2073714
PR #37081
2019-09-20 08:55:38 +00:00
qmo-odoo 79bfdbf30c [MOV] mass_mailing_sms,link_tracker: Move convert_links_text to link_tracker
This method being needed in the new social app, it made sense to move it to
the link_tracker module to make it available for mass_mailing_sms and social
to avoid unnecessary duplicated code.

LINKS:

closes odoo/odoo#34973

Taskid: 2045210
Pr: 37143
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-20 14:44:57 +00:00
qmo-odoo 6c531b3afb [IMP] utm: Add header to utm.campaign form
This commit moves the header previously defined in mass_mailing
in preparation for the cta added in the social module.

Task ID: 2045210
PR: #36416
2019-09-20 14:44:56 +00:00
David Beguin 17e8402523 [IMP] website : store visitor timezone
In order to be able to send push notifications using recipients timezone,
the visitor timezone is now stored in DB.

The visitor timezone is only updated once, when found_visitor_timezone
cannot be found in localstorage. Once the timezone is updated,
found_visitor_timezone is added to localstorage.

Task ID : 1936643
PR #34973
2019-09-20 14:44:56 +00:00
Aurélien Warnon 08108486d5 [FIX] fix translations URL in translation.js
The URL given to load the translations had an extra '/'.
(/website//translations/xxx)

This caused a http redirection that failed for "Mixed Content" on https environments.
2019-09-20 13:34:53 +00:00