Commit Graph
130965 Commits
Author SHA1 Message Date
c8c8eb3d56 [IMP] website_forum, *: revamp design
* web_editor, website_profile

Part of https://github.com/odoo/odoo/pull/35749
task-2024197

Co-authored-by: Jérémy Kersten <jke@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
Co-authored-by: fja-odoo <fja@odoo.com>
2019-10-01 16:52:20 +00:00
fja-odooandqsm-odoo 83284a962c [IMP] website_forum: make the user auto-follow the posts he favorites
Part of https://github.com/odoo/odoo/pull/35749
task-2024197

Co-authored-by: qsm-odoo <qsm@odoo.com>
2019-10-01 16:52:20 +00:00
sri-odoo 75e64d63cd [FIX] website_forum, *: review header nav layout
* website_slides_forum

Move the '.container' inside the navbar in order to avoid unnecessary
horizontal padding.

Part of https://github.com/odoo/odoo/pull/35749
task-2024197
2019-10-01 16:39:05 +00:00
sri-odoo da3cb117ea [IMP] website_mail: allow two different designs for the follow button
Part of https://github.com/odoo/odoo/pull/35749
task-2024197
2019-10-01 16:39:05 +00:00
sri-odooandqsm-odoo 2aa77b10f4 [REF] website, *: allow classes injection in search-box
* website_event, website_sale

Part of https://github.com/odoo/odoo/pull/35749
task-2024197

Co-authored-by: qsm-odoo <qsm@odoo.com>
2019-10-01 16:39:05 +00:00
sri-odoo 48b4459a5b [REF] portal: change website default bg color
Part of https://github.com/odoo/odoo/pull/35749
task-2024197
2019-10-01 16:39:05 +00:00
Thibault Delavallée e558c80d81 [FIX] crm_sms: fix class inheritance
closes odoo/odoo#37686

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-10-01 16:08:51 +00:00
Thibault Delavallée ec329190c0 [IMP] website: allow custom classes in publish short button
Purpose is to be able to somehow control the display of publish buttons.
Indeed in some bases you want for example to display small buttons that
takes less place than current standard bootstrap button.
2019-10-01 16:08:51 +00:00
Florian Gilbert 8d99d63bee [IMP] base: Add VAT field as optional field on partner tree view.
closes odoo/odoo#37670

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-10-01 14:42:41 +00:00
Florian Gilbert 0098865627 [FIX] account: Fix tax group edit on account move.
Fix problems about multi currency on account move
when you modify tax group via tax group widget.
2019-10-01 14:42:06 +00:00
qsm-odoo 6991f300cd [FIX] web, *: review Bootstrap tooltip/popover sanitization
* website_sale_comparison

The Bootstrap sanitization introduced with BS 4.3.1 was disabled with
https://github.com/odoo/odoo/commit/36caf5fc16b5a95a0bf37f08f0caf974683b2df6
https://github.com/odoo/odoo/commit/ee94decd30c4514d5bc410b1652bc6464bb600aa

This commit re-enables it by default but extends it to accept more
common tag names like tables and buttons. If a specific tooltip or
popover must accept custom tags or attributes (such as data-* attributes
required by a related JS), they must be supplied through the whitelist
BS parameter explicitely (see example with website_sale_comparison in
this commit).

Note: data-oe-* attributes are also whiteListed by default.

We cannot disable sanitization because bootstrap uses tooltip/popover
DOM attributes in an "unsafe" way.

closes odoo/odoo#37631

Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2019-10-01 15:33:28 +00:00
Arnaud Joset 28931034c0 [IMP] account_payment,Sale: rename button Pay now to Pay Now
task-2052537

closes odoo/odoo#37625

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-10-01 15:24:28 +00:00
Arnaud Joset 5713d891f5 [IMP] Portal : UI
Align Accept & sign button to the right

task-2052537
2019-10-01 15:24:28 +00:00
Arnaud Joset 4b59cf941c [IMP] sale: remove obvious tooltips from sale.order form
- Tooltips of fields in the top of the form of sales order (outside of the notebook) were mostly useless and added noise when navigating on the screen.
    - This commit removes those that were not necessary and leaves only the tooltips that provided valuable information.
    - Additionnally, this commit removes a useless filter

Author: AntoineVDV
task-2052537
2019-10-01 15:23:05 +00:00
Antoine Vandevenne (anv) 2bd2bca2cf [IMP] product: rename label sale price to sales price
task-2052537
2019-10-01 15:13:18 +00:00
Antoine Vandevenne (anv) 849be97f5a [IMP] Product, purchase, stock : Modify placeholder of notes.
Placeholder contained some errors.

task-2052537
2019-10-01 15:11:55 +00:00
Antoine Vandevenne (anv) 4da9469569 [IMP] Payment: Remove margin in payment template and payment acquirer order
Space was needed between the payment acquirer and its state.
The payment acquirers were not properly sorted in the kanban view.

task-2052537
2019-10-01 15:08:00 +00:00
Odoo Translation Bot 40deff7cbe [I18N] Update translation terms from Transifex 2019-10-01 21:21:46 +02:00
wan f7edc27505 [IMP] account: reconcile model remove onchange name for label
We do not want ot have the name of the reconiliation model as label for
the created line in the vast majority of cases.

closes odoo/odoo#37705

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-10-01 13:40:33 +00:00
svs-odoo 2980369e0b [IMP] product, stock_account: editable prod. tmpl.
Makes the product.template list view multi-editable.
Sets field `standard_price` readonly when stock_account is installed.

Task #2078163

closes odoo/odoo#37697

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-01 14:24:02 +00:00
svs-odoo a6bdb90c56 [IMP] maintenance: editable maintenance list view
Task #2078163
2019-10-01 14:24:02 +00:00
svs-odoo f8d8d6e2b0 [IMP] repair: editable repair order list view
Task #2078163
2019-10-01 14:24:02 +00:00
svs-odoo a4ecbdb90d [IMP] mrp: editable mrp production list view
Set also `origin` and `user_id` fields as readonly when the
manufacturing order state is done or cancel.

Task #2078163
2019-10-01 14:24:02 +00:00
svs-odoo e394aeba62 [IMP] purchase: editable purchase order list view
Task #1938656
2019-10-01 14:24:02 +00:00
svs-odoo eb7db0c8b8 [IMP] product: editable supplier price list view
Task #2078163
2019-10-01 14:24:02 +00:00
svs-odoo 97bb455c06 [IMP] stock: editable lot list view
Makes the production lot list view multi-editable.
Also, sets the `product_id` field readonly because there is an onchange
on this field in the addon product_expiry. So, it's better the field is
always readonly than editable then become readonly when an another addon
will be installed.

Task #2078163
2019-10-01 13:53:27 +00:00
svs-odoo 31c8ebaac5 [IMP] stock: editable reordering rules list view
Task #2078163
2019-10-01 13:53:27 +00:00
svs-odoo 40c0a7ed38 [IMP] stock: editable scrap order list view
Sets `date_done` and `state` fields as readonly in the model as they
must not be editable in the list view and they were already readonly
in form view.

Task #2078163
2019-10-01 13:53:27 +00:00
svs-odoo dc5254cb14 [IMP] stock_picking_batch: editable batch picking
Makes batch picking list view multi-editable. Also, sets `name` and
`state` fields as readonly in the model as they must not be editable in
the list view and they were already readonly in form view.

Task #2078163
2019-10-01 13:53:27 +00:00
svs-odoo 8c4507e7e3 [REM] stock: remove assign responsible
Removes the action assign responsible on picking since it can be assign
directly on the list view now.
The wizard must be deleted in the next version.

Task #2078163
2019-10-01 13:53:27 +00:00
svs-odoo 06aeb07cff [IMP] stock: editable picking list view
Makes the picking view list multi-editable, and some readonly conditions
was moved form the view to in the model (for the `backorder_id`, `name`,
`scheduled_date` fields).

Task #2078163
2019-10-01 12:34:17 +00:00
sri-odooandAurélien Warnon 2a10328c13 [IMP] utm,crm,mass_mailing,link_tracker,sale: improve utm.campaign kanban view
This commit slightly improves the utm.campaign kanban view by reordering statistics and changing
their display.

The recent changes introduced in 09c9d1f0d0 were not satisfying after all.

Task#2077579

closes odoo/odoo#37612

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Co-authored-by: Aurélien Warnon <awa@odoo.com>
2019-10-01 13:38:17 +00:00
wan 63de98b9b4 [FIX] *: remove en_US as fallback for lang code
en_US may not be activated as it is possible to create a database in
another language using the database manager.

When trying to install a chart of account, the tax return entry tried
to format a date at the installation of the module, with no lang in
the context. The fallback was made on en_US but an error is raised if
that language is not activated.

As it is a very common scenario to retrieve a language from the
context, add a generic tool method to do it.

Replace and closes odoo/odoo#37629

closes odoo/odoo#37568

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-10-01 10:05:17 +00:00
qsm-odoo f28f787c10 [FIX] website_event: fix error in scss
A variable was not used where it should have, breaking the events page
background with the upcoming forum redesign.

closes odoo/odoo#37703

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-10-01 12:48:35 +00:00
Simon Lejeune fae07f3bd5 [REF] stock_account: filters on valuation layer
closes odoo/odoo#37701

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-01 12:28:52 +00:00
Lucas Lefèvre 1c5958e14b [FIX] account: Allow to post move with follower in other company
Since 6f2efae, posting an account move automatically adds
the partner_id and commercial_partner_id to the record's followers.
However, if some existing followers are in an other company and
the current user doesn't have access to the company, it
would raise an access error.

This commit fixes the multi-company issue and adds a test
for the feature.

closes odoo/odoo#37696

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-01 12:22:55 +00:00
Martin Trigaux f751dda50c [I18N] *: export saas-12.5 source terms
Still without demo data

closes odoo/odoo#37695

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-10-01 12:23:22 +00:00
Martin Trigaux ed04564647 [FIX] social_media: rename module
Was a technical name
2019-10-01 11:54:56 +00:00
Jorge Pinna Puissant 79afa204e0 [FIX] mail: missing attachment icon
Since 1d766c067d the attachment icon was
missing when it wasn't a pdf or image type file.

opw-2064128

closes odoo/odoo#37687

X-original-commit: c44cec7e5ed9de3be495eb44b351eda6b0f6aeee
Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
2019-10-01 11:34:05 +00:00
Damien Bouvy d69ded69cc [FIX] payment_test: allow to disable it
closes odoo/odoo#37621

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-09-30 15:11:18 +00:00
Damien Bouvy ad94c1e712 [IMP] payment_stripe: sca completitude
Althought most of the SCA compliance stuff was already there,
the flow was slighlty changed to better support some flows in 12.0

Reflect this changes in 12.5.
2019-09-30 15:11:16 +00:00
Antony Lesuisse 4ddce229c4 [IMP] l10n_generic_coa: improve chart
Renamed xml ids of the main accounts (in prepartion for a future multi l10n
demo system). Change account numbering to match quickbook and other US GAAP
convention and recommendations.

closes odoo/odoo#37606

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-10-01 13:09:50 +00:00
ryv-odoo 3bca1d52a0 [FIX] mass_mailing_sms : fix KPI in draft
There is the % Clicked stat button in SMS marketing form view when it
is on draft or test. Fix to be only visible
when the state is not in draft or test

TASK_ID : 2078918

closes odoo/odoo#37615

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-10-01 11:14:04 +00:00
ryv-odooandStéphane Debauche a7489feed0 [FIX] mass_mailing: mail template become invisible after saving
Bug
===
In the mailing mailing form view, after saving the email and creating it, the body is invisible and one needs to edit and save again to see the content
The view has two fields with the same name

Fix
===
At the end, we have only one field and some condition on the attributes (class, widget)

TASK_ID : 2078918

Co-authored-by: Stéphane Debauche <std@odoo.com>
2019-10-01 11:04:10 +00:00
ryv-odoo 43a880eb6c [FIX] mass_mailing_sms : diplay count pf contact list incorrect
In the sms marketing, the display name of the contact list was wrong
during the search of the many2one widget (contact list field,
count of valid number was the count of valid email).
Add a context attribute on the widget depending of the global context
to force the rigth count.

TASK_ID : 2078918
2019-10-01 11:04:10 +00:00
ryv-odoo f422cfdbb9 [FIX] mass_mailing_sms : the sms_allow_unsubscribe field invisible for mailing marketing
The field sms_allow_unsubscribe field was visible and checkable on the
email marketing app, but this field is reserved to the
sms marketing. Add a invisible condition.

TASK_ID : 2078918
2019-10-01 11:04:10 +00:00
Samuel Degueldre 74e23b2e2b [IMP] Prevent reverse tabnabbing in plaintext2html, linkify, _makeLink
These functions convert plain text links into clickable hyperlinks.
These open in new tabs but did not have the "noreferrer noopener" rel
attributes, which made them susceptible to reverse tabnabbing.

A lot of attack vectors were available to unregistered, uninvited
anonymous users and presented a significant phishing threat (such as
posting links in the instant-chat, through a mail-alias, in a forum post
or in a twitter post) and leading the operator to believe he had been
disconnected from odoo in the original tab, prompting them to enter
their credentials.

while these three places will add the noreferrer and noopener attributes
on the anchor tags generated by them, there are still many places that
create hyperlinks without the use of these functions, although most of
them are static links, they still represent a transitive security
vulnerability to the linked sites.

There are also a few modules and widgets that roll out their own links
or open new tabs unsafely using window.open(), these will need to be
patched separately.

closes odoo/odoo#37591

Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2019-10-01 08:24:59 +00:00
Laurent Smet e121bacbd0 [FIX] account: Fix editable fields on editable grouped list views
Nothing is editable on account.move.line tree view.
On grouped tree views, only account_id, name, ref, tag_ids, date_maturity are editable.
The account hierarchy must not be visible on the partner ledger view.

closes odoo/odoo#37528

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-10-01 08:02:25 +00:00
Laurent Smet 790da8b463 [FIX] account: Prevent messing invoices when writing account_id
When writing an account from the editable groupby list view, prevent
the user to messing up the invoices by writing receivable accounts everywhere.
2019-09-30 14:31:22 +00:00
Nicolas Bayet 14116b3b9e [IMP] add ability to unlink databases from subscription more easily
closes odoo/odoo#37431

Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2019-10-01 07:58:02 +00:00