Commit Graph
126256 Commits
Author SHA1 Message Date
mreficent 0632274451 [IMP] base: add hook to be able to hide more module categories
closes odoo/odoo#32662

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-05-10 10:21:44 +00:00
jbm-odoo 86c9ec91ae [IMP] sale_subscription: Change payment method popup
In payment dialog, add a button to manage payment methods.

closes odoo/odoo#33204

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-05-07 07:43:31 +00:00
Shreya Modi a375471bea [IMP] account : show type of tax in fiscal position.
On fiscal position, there is a mix of sales & purchases invoice
which makes it difficult to understand.

So display the type of tax on fiscal position and
improve the name_get so type must be translated.
also improve the default tree view of tax so it will display the
same on 'search more' of many2one.

Task-ID: 1943502
Closes: #32241

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-05-10 09:39:36 +00:00
Robot Odoo b48d47b806 [MERGE] digest, various: improve digest email layout and content
Purpose of this merge is to provide improvements in digest emails layout

- Added "Connect" button to connect to the database.
- Changed the messages count which will now only consider real messages and not notes, notifications etc.
- Fixed some margin , padding issues and minor message improvements.
- Added a tip for administration users which will be sequentially sent first to them.
- Moved recipients to a new tab.
- Changed to company's email as email author.
- Changed '>' to greaterthan and '<' to lessthan in default template. (according to updated Jinja2)
- In one of the tip, we are showing all kinds of users in the list. So, it was replaced with only internal active users.

Related to task 1918364

closes odoo/odoo#29599

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-05-10 13:06:06 +02:00
Jinal Patel 356e04a06d [IMP] mail: add default values coming from activity types when scheduling activities
Purpose of the commit is that in some cases people would like to add a
default user and a default description on their activity types. Those
default values will be propagated to created activities.

This commit adds fields to set the default description and default user on
activity type and propagate them through the various scheduling methods as
default values when the user did not give specific one.

Other usability improvements
* rename "Category" into "Action to Perform";
* change 'Other' value to 'None';
That way it is clearer that standard activities perform no action.

Related to task 1929742

closes odoo/odoo#30511

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-05-10 08:31:31 +00:00
William Henrotin 563eec5ece [IMP] mrp: workorder kanban view suitable for tablets
This commit adapt the kanban view of workorder in order to
set card more easily clickable on tablet

Task : 1940358

closes odoo/odoo#31230

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-05-08 13:59:39 +00:00
William Henrotin ca35f98c7f [IMP] stock: hide 'reserved quantity' column in receipt
A reception don't need any reservation. The column 'Reserved
Quantity' on picking are so useless

Task: 1940358
2019-05-08 08:03:36 +00:00
William Henrotin e28cc1775d [IMP] stock: supplier info view clean up
Required field should be asked before optional ones

Task : 1940358
2019-05-08 08:03:36 +00:00
William Henrotin 02e537e52e [IMP] mrp: rename 'raw material' by 'component'
Uniformity across all views

Task : 1940358
2019-05-08 08:03:36 +00:00
Robot Odoo f147fed9af [MERGE][IMP] (website_)sale: send and improve emails when payment is processed from portal or ecommerce
Purpose of this merge is to improve emails sent when confirming
sale orders. A new template is added that contains lines with image
for bought product to be used in eCommerce.

See sub commits and task for more details.

Related to task ID 1873634

closes odoo/odoo#33283

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-05-09 18:11:52 +02:00
Mitali Patel 74c5c00aff [IMP] sale, website_sale : improve emails sent on confirmation and payment
Purpose of this commit is to send the order and payment details email to user
when they purchase any order from ecommerce or when do the payment from
portal. Currently it was sending quotation mail when the payment is processed.
Now it send an email for quotation, and one email for sale confirmation that
may contain more detailed content if coming from website (eCommerce).

In sale

 * create new confirmation template and set the default template in sales
   settings;
 * when payment enabled in sales settings then display template option to send
   default confirmation mail when payment is processed or order signed;
 * add tool method to find the right template to use when sending the
   quotation / SO by email;
 * ensure email is sent everytime SO is confirmed;

In website_sale

 * add option in website setting in order, to set the confirmation mail
   template;
 * ensure email is sent everytime SO is confirmed;

Related to task ID 1873634
Linked to PR #28781
2019-05-09 14:58:21 +00:00
Mitali Patel b55b4a42a6 [REF] sale: get rid of 'Send email' context key
Purpose is to prepare improvements in emails sent in confirmation and payment.
A context key forcing email used only once in the code is removed. Method
used to send email is inlined. It allows to better understand flow.

Related to task ID 1873634
Linked to PR #28781
2019-05-09 14:58:21 +00:00
Barad Mahendra b12ab8008b [IMP] mail: improve "Pay Now" email notification layout
In mail custom layout template display 'best regards' and signature in email
only when user exists and is not odoobot.

Border-bottom style is also now white-listed in sanitizer in order to ease
customization of emails.

Related to task ID 1873634
Linked to PR #28781
2019-05-09 14:58:21 +00:00
Nikunj Ladava d0be25d277 [FIX] payment: fix error msg display
when we get an error while making the payment, it should be shown to the user.
But the message is not getting from proper dict, so it will break every time.

closes - https://github.com/odoo/odoo/pull/33231

closes odoo/odoo#33231

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-05-08 07:05:45 +00:00
Nikunj Ladava 0aefe72b77 [FIX] payment_alipay: improvement as per the current payment
No need of return URL as '/payment/process' will handle all the cases for payment.
use of _set_transaction_state as per the state of the transaction.

closes - https://github.com/odoo/odoo/pull/33231
2019-05-08 07:05:11 +00:00
Xavier Morel 2cc7f0dd49 [IMP] core: allow auto_install restriction on a subset of dependencies
Currently, auto_install is triggered when all dependencies get
installed, but there are cases where one would want such trigger on
only a subset thereof.

e.g. we want `website_sale_dashboard` to auto-install when
`website_sale` is installed. Currently, it requires `web_dashboard` to
also be auto-installed otherwise `website_sale_dashboard` would "wait"
for both dependencies to be explicitly installed before the
auto-install triggers. That's despite `web_dashboard` not being very
useful on its own. More generally this is an issue with technical
modules which need to be marked as auto_install so as not to block
e.g. bridge modules from automatically installing.

This change allows setting `auto_install` to a subset of `depends`:

* if auto_install is set to `False`, the module does not get
automatically installed (no change in semantics)
* if auto_install is set to `True`, the module gets automatically
installed if and only if all its dependencies are installed (also no
change in semantics)
* if auto_install is set to a list of dependencies, the module will be
installed when all *these* dependencies are installed, other
dependencies (excluded from auto_install) will be installed
alongside as a consequence
* auto_install can be set to an empty list, in this case the module
will always be automatically installed regardless of its
dependencies (and will force their installation).

So after this change, `web_dashboard`'s auto_install can be set to
`False` (such that it's not installed if no module defining dashboards
is installed) and `website_sale_dashboard`'s manifest can be edited
to:

'auto_install': ['website_sale']

possibilities:

# no automatic installation
'depends': ['a', 'b'],
'auto_install': False

# automatic installation if both a and b are installed
'depends': ['a', 'b'],
'auto_install': True

# automatic installation if both a and b are installed (explicit)
'depends': ['a', 'b'],
'auto_install': ['a', 'b']

# automatic installation if b is installed, a will get forcefully
# installed if it isn't yet
'depends': ['a', 'b'],
'auto_install': ['b']

# always automatically installed, will cause the installation of
# its dependencies even if they're not marked explicitly
'depends': ['a', 'b'],
'auto_install': []

Task 1851328

closes odoo/odoo#29431

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-05-07 11:44:26 +00:00
Martin Geubelle b9ec983571 [FIX] mail: first column width in activity view
The first column should have a minimum width to avoid the table to
resize when changing the domain for example.

Task 1894990

closes odoo/odoo#33273

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-05-09 11:23:53 +00:00
Priyanka Kakadiya b01ce6e7ef [FIX] mrp: add group for 'plan production order' server action
added group to hide a server action of 'Mrp: plan production orders' when 'work orders feature of settings is inactive'

before this commit:
when 'WO feature(group_mrp_routings)' is inactive it still displays 'Mrp: Plan production Orders' server action.

after this commit:
'Mrp: plan production orders' server action will display only when 'WO feature(group_mrp_routings)' is active.

task id - 1945291

closes odoo/odoo#33117

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-05-08 09:40:11 +00:00
Priyanka Kakadiya ac77a6ce8e [REF] base: handle groups for server action
Users may not do all actions bound to a model. We add the `groups_id` field
on `ir.actions.server` so that `get_bindings` can filter out unauthorized ones.

task id- 1945291
2019-05-08 09:40:11 +00:00
Parth Choksi 9e6cb6e62f [IMP] digest: active internal users in tip
One of the first tip is about using @ in chatter.
It should only take active internal users who already have logged in.
Currenly it takes all the users (eg: portal, inactive etc)

This commit will allow only internal users to be shown in the list.

Task-1918364
2019-05-07 07:04:34 +00:00
Parth Choksi 8776306e80 [FIX] digest: using greaterthan and lessthan builtins
Before this commit, when you send a digest template to the user,
the user would receive a blank mail(without any content).
And while rendering the template we were getting the following error:
jinja2.exceptions.TemplateSyntaxError: unexpected char '&' at 4039

This was due to the changes made in commit:
https://github.com/odoo/odoo/commit/a7ac71ed4404aa2630619c331d725f4f545626f8#diff-705145eec648d5ef61b7b4060ae96b9dR8
In this instead of using CDATA, there was a change of the field type to 'html' and thus there were issues of parsing for jinja.

Now after this commit, we will be using builtins of jinja:
 - 'greaterthan' instead of '>'
 - 'lessthan' instead of '<'

Task-1918364
2019-05-07 07:04:34 +00:00
Parth Choksi 52b4942525 [IMP] digest: improve the digest email layout
Purpose of the task is to improve the usability of digest email layout.

- Click on Connect button to connect to the database.
- Use same left padding in the header as in the section title.
- 2 decimal digits for monetary amounts, no space with currency symbol.
- Count real messages only, not notes or notifications.
- Add new tips for video tour.
- Moved recipients to a new tab.
- Changed email author to company's email.
- Some minor layout fixes.

Task-1918364
2019-05-07 07:04:34 +00:00
Olivier Dony e554ce345f [FIX] requirements: bump up jinja2 reqs
Recommended by GitHub's repository alerts.

We normally stick as close as possible to the version we depend
on in the official DEB packages. This in turn depends on the version of
Debian stable at the time of release - for 11.0 that would be Debian 9
(stretch) and thus Jinja 2.8 (with security backports).

However Jinja2 before 2.10.1 suffers from a few issues that could lead
to crashes of Odoo processes.

It seems it's worth an exception to our rule for pip users, similarly to
previous bump up at d2605bccdb.

closes odoo/odoo#32601

Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-05-07 07:04:34 +00:00
Parth Choksi a6ee929bb1 [FIX] digest: tips will be displayed properly
Currenly in the digest when you send the template, tips are not being seen.

The reason for this is, we are getting tips from the context but we dont have it in the context.
Instead, we are fetching the tips by calling the compute_tips method and assigning it to 'tips'.

Hence, this commit will remove the usage of context to get the tips as we are getting it
from the method and not from the context.

Task ID: #1918364
2019-05-07 06:54:29 +00:00
William HenrotinandHetal Dhanak 5c24b68a75 [IMP] mrp: improved views
-replaced domain with context in workorder view. user cannot work on
done or canceled workorder.
-added a default, removable filter to show orders of current workcenter
from dashboard.

This commit is related to task id: 1911218

Co-Authored-By: Hetal Dhanak <hdh-odoo@users.noreply.github.com>

closes odoo/odoo#29492

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-04-01 14:35:01 +00:00
jem-odoo 58bcd394ca [IMP] sale: make confirmation_date required for confirmed SO
Somehow, when a sales order is confirmed, its confirmation date might not be set (or it is
possible to remove it). This makes no sense as we expect it to be set when the SO is confirmed.
This commit adds an SQL constraint to ensure the confirmation date is required when the SO is
confirmed or done.
To populate this column, the confirmation can be deduced from the mail.message, with the confirmed
subtype.

Task-1930506

closes odoo/odoo#33230

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-05-07 14:05:35 +00:00
Raphael Collet a38dc1ccb9 [FIX] test_mail: adapt query counts
closes odoo/odoo#32905

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-05-06 09:44:10 +00:00
Raphael Collet d0dbcacfff [IMP] models: new implementation of prefetching 2019-05-06 09:44:10 +00:00
Geoffroy Larue 84fd8db144 [IMP] sale_timesheet: remove assign SO item action
If timesheets are recorded on tasks that aren't linked to any Sales
Order, the user can assign a SOL (in batch) later on by going to the
Action > Assign Sale Order Item.  Since the introduction of FSM, the
user can directly create Sales Orders from the Project Overview and
from Tasks. This makes the "Assign Sale Order Item" action redundant.

This commit removes this action.

Task-1968074

closes odoo/odoo#32696

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-05-08 07:02:53 +00:00
Hetal Dhanak b5b7396b84 [IMP] base: updated tooltip of implementation field in ir.sequence
-customers were misunderstanding the concept of "no gap" sequence
implementation hence updated the tooltip of the same to make it more useful and
clearer.

Task-1973967

closes odoo/odoo#33017

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-05-08 05:13:39 +00:00
jem-odoo ea0ddf474d [IMP] sale: use float tools on reinvoicing flow
Comparing float is a sensitive matter. Odoo creates specific tools
to manipulate float values. This commit makes the reinvoicing flow use
those tools to avoid rounding mistakes, ....
Task-1962608

closes odoo/odoo#33229

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-04-08 08:31:09 +00:00
Martin Geubelle 05d3048511 [FIX] web: correctly display list column name
Rev. odoo/odoo@5dc971b introduced a `description` attribute on AbstractField.

Sadly, the attribute was already used for something else (in `handle`
and a widget in asset, to hide the column name). So the widget new
description is now displayed in the list header (instead of the field
name).

A new attribute `noLabel` has been now added on AbstractField (currently
only used in list) to fill the same purpose as the previous `description`.

Task 1981757

closes odoo/odoo#33060

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-05-07 09:34:28 +00:00
Martin Geubelle db64af9b9c [FIX] web: correctly display header tooltips in list
A traceback occured when displaying the tooltip (only visible in debug) on a list
view header if the field had a `widget` attribute (introduced in rev. odoo/odoo@5dc971b).

The issue here was linked to the fact that a widget is not always rendered in list view
(compared to form view) so the `Widget` property in the attributes was not there.

Task 1981757
2019-05-07 09:34:28 +00:00
Yenthe666 19a2797b2d [IMP] product: add sheet to attribute form view
Remove unnecessary group

closes odoo/odoo#30622

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-05-07 09:36:03 +00:00
Parth Choksi 33b75bb48b [IMP] base: added margin to all module info buttons
Before this commit, there was no space between:
 - Install button and Upgrade button.
 - Uninstall button and Upgrade button.

After this commit, margin will be added to all the buttons for proper layout.

Task ID: #1937131

closes odoo/odoo#30829

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-05-06 08:47:55 +00:00
Swapnesh Shah 6344cd0112 [FIX] calendar: readonly attribute expects boolean
Followup on https://github.com/odoo/odoo/commit/6bc14c9142baedd98d8833c7cf77d1ee174e3f7f

closes odoo/odoo#33155

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-05-04 05:26:00 +00:00
Kaushalya Mandaliya f2a547761f [IMP] mail: prevent to add empty lines in channel member creation
Before this commit, it was allowed to add empty lines while adding a member in channel.
After this commit, it'll not be allowed to add empty lines as partner_id is required.

Task-1973972
closes #32958

Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-05-01 06:39:52 +00:00
Jinal Patel 4cd8fd7228 [IMP] stock: define stock.location form view in a sheet
Related Task: 1935522

closes odoo/odoo#30785

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-05-06 09:14:24 +00:00
Juhil Somaiya 1414470d34 [IMP] auth_signup: reset password settings should be enabled by default
As it's easy to forgot user's password and if user do,
user currently have no way to reset it if user didn't activate
the settings to enable the Reset Password.

so enable this options by default to avoid people getting blocked
because they forgot their password.

task-1925281

closes odoo/odoo#30391

Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-04-24 11:14:07 +00:00
Florent de Labarre 32eee7b6ec [IMP] tools: add Tb
Tera byte is now common.

closes odoo/odoo#33151

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-05-03 16:41:01 +00:00
Thanh Dodeur 46b0b33d06 [REF] web: extracts category value selection in a function
This commit extracts the logic of the selection of the default
value for search panel categories into a private function
so it can be hooked in other modules.

task: #1959112

closes odoo/odoo#32448

Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-04-25 07:21:19 +00:00
Damien Bouvy 85f3f5d662 [IMP] payment: make non-essential field not required
This prevent the uninstallation of all payment provider through the
NOT NULL constraint. There is no reason for this field to be explicitely
required - it will fail if the template is wrong anyway.

closes odoo/odoo#33170

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-05-06 06:34:30 +00:00
mreficent 47c9b60969 [FIX] payment_alipay: call of create_missing_journal_for_acquirers
closes odoo/odoo#33152

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-05-03 17:41:01 +00:00
Aaron Bohy ea1b3254bb [IMP] web: multi-line many2one: only highlight first line
Rev. a3489be33 removed this feature to fix a bug (when the single
line many2one, e.g. a product, is too long and displayed over
several lines). However, we (fp) still want this for res_partner
many2ones with show_adress.

This rev. re-introduced the feature without re-introducing the bug.

closes odoo/odoo#33139

Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-05-03 12:00:34 +00:00
Nikunj Ladava e335d235f6 [ADD] payment_alipay: added new Alipay payment acquirer
This commit introduces the Alipay payment provider, a popular acquirer
in the Chinese market.

There are 2 possible ways to use this acquirer:
- express checkout mode (only available for merchants located in CN)
- standard checkout mode (availabe for foreign merchants)

Note that this provider does not support server-to-server payments,
tokenization or any other bells and whistles besides fees. There are no
specific behaviours related to this acquirer, it behaves like most 'form
based' payment acquirers with a form submission, s2s notification from
the provider as well as redirect in case the s2s did not reach the
server in time.

closes odoo/odoo#21855

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-05-03 11:40:05 +00:00
mgh-odoo 728ca33cb9 [IMP] sale_stock: schedule activity on picking on change of so shipping address
purpose of this commit is to schedule an activity exception on delivery picking
when user change address of the SO, to notify user that
sales order address is changed.

Task-1888829

closes odoo/odoo#28191

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-05-02 05:00:53 +00:00
Hetal Dhanak c83f6852c5 [FIX] project: typo in project tag name
Tag name should be "Need Assistance" instead of "NeedAssistance".

Task-1891795

closes odoo/odoo#32146

Signed-off-by: Jérome Maes (jem) <jem@openerp.com>
2019-04-24 09:25:02 +00:00
Robot Odoo b880bfffe4 [IMP] mail, *: activity view 2.0
The activity view has been greatly improved to allow to customize it
more easily. It works quite similarly to the kanban view, defining
`<field>` tags at the top and using these fields in the `<template>`
section. The template name used to define the activity cards is
`activity-box`.

Other features have also been added (see each commit for more information).

closes odoo/odoo#29271

Signed-off-by: Martin Geubelle (mge) <mge@openerp.com>
2019-05-03 14:28:30 +02:00
Hiral Bhavsar f8d7728bd7 [IMP] *: add activity views on multiple models
The activity view has been added on multiple models (invoice, fleet
contract, vehicles, leads, employee, contract, expense, expense sheet,
leave, leave allocation, applicant, partner, product, task, purchase
order, sale order) to ease the creation and the management of
related actvities.

Task 1894990
2019-05-03 10:19:40 +00:00
Martin Geubelle d75a976054 [REF] mail: correctly promisify activity renderer
None of the promise created in the activity renderer was correctly managed.
This is now the case.

Related to task 1894990
2019-05-03 10:19:40 +00:00