Commit Graph
132631 Commits
Author SHA1 Message Date
qsm-odoo 823397bdd7 [REF] website: move s_text_block snippet to dedicated file 2019-12-18 00:13:45 +01:00
qsm-odoo 1dd8794653 [REF] fake move of snippets.xml 2019-12-18 00:13:03 +01:00
qsm-odoo 944b90812a [REF] move history of snippets.xml to s_text_block.xml 2019-12-18 00:13:03 +01:00
qsm-odoo aeee2d28f2 [REF] website: move s_banner snippet to dedicated file 2019-12-18 00:09:02 +01:00
qsm-odoo 3c3876929d [REF] fake move of snippets.xml 2019-12-18 00:04:11 +01:00
qsm-odoo 7e3b3f9749 [REF] move history of snippets.xml to s_banner.xml 2019-12-18 00:04:11 +01:00
qsm-odoo 9e8b0b0a8c [REF] website: move s_image_text snippet to dedicated file 2019-12-18 00:03:26 +01:00
qsm-odoo ba6c8c2fbe [REF] fake move of snippets.xml 2019-12-18 00:01:47 +01:00
qsm-odoo d51fc7a0fe [REF] move history of snippets.xml to s_image_text.xml 2019-12-18 00:01:47 +01:00
qsm-odoo d8560e1d1f [REF] website: move s_text_image snippet to dedicated file 2019-12-18 00:00:41 +01:00
qsm-odoo dda7681344 [REF] fake move of snippets.xml 2019-12-17 23:58:44 +01:00
qsm-odoo f386931251 [REF] move history of snippets.xml to s_text_image.xml 2019-12-17 23:58:44 +01:00
qsm-odoo 772e7222b1 [REF] website: move s_cover snippet to dedicated file 2019-12-17 23:57:44 +01:00
qsm-odoo 6cf6b511cb [REF] fake move of snippets.xml 2019-12-17 23:56:37 +01:00
qsm-odoo 56221dd04d [REF] move history of snippets.xml to s_cover.xml 2019-12-17 23:56:37 +01:00
qsm-odoo 46628978ef [REF] website: move s_title snippet to dedicated file 2019-12-17 23:55:17 +01:00
qsm-odoo 4fa4c75915 [REF] fake move of snippets.xml 2019-12-17 23:53:19 +01:00
qsm-odoo a0ce851167 [REF] move history of snippets.xml to s_title.xml 2019-12-17 23:53:19 +01:00
qsm-odoo b619388ada [REF] website: move snippets.xml file into dedicated folder 2019-12-17 23:53:11 +01:00
qsm-odoo 1917e8fd2a [REF] website: create dedicated file for assets 2019-12-17 23:39:43 +01:00
qsm-odoo 40e09923fa [REF] fake move of website_templates.xml 2019-12-17 23:38:20 +01:00
qsm-odoo de25524df4 [REF] move history of website_templates.xml to assets.xml 2019-12-17 23:38:20 +01:00
LiLEE 44bac1b270 [FIX] website_sale_stock: allow override of context
closes odoo/odoo#42062

X-original-commit: 885f24f4ffe400abea7efc8012a4a81d222b5607
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-12-17 11:03:22 +00:00
LiLEE feb4f90ac7 [CLA] Signature for Derek Lee
X-original-commit: 75704bf8d70101459a4752c999bb8075d3413f13
2019-12-17 10:58:07 +00:00
Jeremy Kersten 546f3cac3f [IMP] website: redo res config settings
task-2088625

closes odoo/odoo#40715

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-12-17 17:07:30 +00:00
Jeremy Kersten 7921616aea [IMP] website: allow to submit sitemap to Google
partial of opw-2123610
2019-12-16 11:07:19 +00:00
Jeremy Kersten ab56c9e464 [IMP] website: add edit robots.txt in settings
task-2091358
2019-12-16 11:07:19 +00:00
jerome hanke (jhk) 767f25cc4e [FIX]website_partner:partner description is now translatable
Steps to reproduce:
-install website, website_partner, contacts and studio
-go to contacts and open any partner
-click the studio icon (top-right corner of the screen)
-add the 'website_description' field to the partner

Previous behavior:
the description field is not translatable and attempting to
change the "translatable" option in technical > fields spawns
an error

Current behavior:
the description field is translatable

opw-2155115

closes odoo/odoo#42043

X-original-commit: 186b599246321465eae937b875b6c970656b145a
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
2019-12-17 10:30:57 +00:00
Romain Estievenart 4e536a4ac0 [FIX] web_enterprise: stat buttons not align on iPad
Steps to produce:

1. Go to 'Contacts'
2. Select a contact
3. Click on "More" stat button

To fix this, we need to force the padding to avoid touch_device rules.

closes odoo/odoo#42033

X-original-commit: 2761fec0e152c08dcd2d63bf5dbce94fee2b6a7b
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-12-17 11:07:19 +00:00
qdp-odoo 4ddac940c8 [FIX] account: access rights for billing user on reconcile model
The recent refactoring made at 30cf7bc798 introduces a new object for the different writeoff lines that could be created from a reconciliation model. Unfortunately, Billing users were forgotten during that refactoring which made them unable to read/use the reconciliation models anymore.

This patch grants them the Read and Create permission on the new account.reconcile.model.line object, as they already have to the reconciliation model.

closes odoo/odoo#42009

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2019-12-17 12:20:08 +00:00
FedericoLaTorre 0ba4d6f079 [CLA] signature for FedericoLaTorre
closes odoo/odoo#42016

X-original-commit: 026224ce2855d01b1827d0f4fb402f471a8060cc
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-12-17 10:33:56 +00:00
Thibault Delavallée 9219944a5a [REF] crm: quickly reorganize crm_lead file
In this commit we perform some small code move in order to better understand
the huge crm_lead.py file. Notably

  * add some code sections headers (actions, PLS, opp/leads merge);
  * move crm.lead.tag and crm.lost.reason in their own file;
  * reorganize fields by main category because it is a mess;
  * remove some unnecessary help messages on fields;
  * merge two _auto_init methods definitions;

No functional change occur with this commit as it contains only some code
move.

It prepares some further technical cleaning in CRM application, notably
onchange -> compute move.

LINKS

Related to Task ID 2092799 (not really spec, spotted while working on it)
PR odoo/odoo#42015

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-17 12:50:46 +00:00
Thibault Delavallée bfda483d21 [REM] crm: remove dead code about sales team dashboard
CRM still holds code dead since more than 2 years about sales / crm dashboard.
Custom ugly un-onboarding not-wow headers have been removed at ea66192276.

LINKS

Related to Task ID 2092799 (not really spec, spotted while working on it)
PR odoo/odoo#42015
2019-12-17 12:50:46 +00:00
Florent Lejoly 135dab0f41 [FIX] crm: fix archive / restore PLS inconsistencies
SPECIFICATIONS

Fixes following issue: when a lead is marked as lost, the probability is
correctly set to 0 but not the automatic one. If one clicks on the "Set to
automatic", the probability is updated, which un-archives it without really
restoring it, meaning we get in a very strange state outside the expected flow
(no Won/Lost buttons, ...).

With this commit the automated probability is set to 0 when setting as lost.
Moreover restoring a lead recomputes its probabilities.

LINKS

Related to Task ID 2092799 (not really spec, spotted while working on it)
PR odoo/odoo#42015
2019-12-17 12:47:47 +00:00
Jason Van Malder b66af0d707 [FIX] website: fix mega menu close while translating it
Issue

    - Install website
    - Add another language
    - Edit > Click on a menu item > Edit menu
    - Add mega menu & save
    - Change language
    - Click on the translate button
    - Try to translate a mega menu's item

    You can't, it always closes.

Cause

    This is the default bootstrap behavior.

Solution

    Override the default bootstrap behavior.

OPW-2151710

closes odoo/odoo#42012

X-original-commit: d19489350f23ed245db5a2efa9e08ba878ba77f5
Signed-off-by: Jason Van Malder <jvm-odoo@users.noreply.github.com>
2019-12-17 11:00:05 +00:00
Dao Tuan Phong 85b6536d50 [FIX] web: use rec_name to display imported record
When expending a many2x record, a field named 'name' was used to
represent the exported record.
If there was no field 'name' on the record, expanding the many2x field
raised a KeyError in the export screen with "import-compatible export"
enabled.

Use the _rec_name instead as fallback

closes odoo/odoo#42004

X-original-commit: 914d4f8ce9dbfd8380caa429a0aeac0513cf5ff9
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-12-17 10:00:58 +00:00
Julien Mougenot 51483c3e7d [IMP] web/list: multi edition ux
This commit introcudes two changes to the multi edition in list views:
1. Editing one record does not require confirmation through a dialog
2. Successfully saving multiple records unselects all currently checked records

Task 2146429

closes odoo/odoo#41099

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-12-16 11:34:33 +00:00
Nicolas Martinelli ee4bd62019 [FIX] base: new Mauritanian currency
A new currency has been introduced in Mauritania in 2018:
https://en.wikipedia.org/wiki/Mauritanian_ouguiya

opw-2156411

closes odoo/odoo#42003

X-original-commit: 321fc5b316d052d3db89d0d5f6e2b7efab14e266
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-12-17 08:02:09 +00:00
Fabrice Henrion 7a00ced9e3 [IMP] hr_holidays: fixed grammar errors
closes odoo/odoo#41151

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-12-17 10:08:39 +00:00
Nicolas Seinlet 0c695bd8ed [FIX] sale: Allow a salesman to invoice
closes odoo/odoo#41984

X-original-commit: 79b8c00f3e255b038bccad217acee608643558b2
Signed-off-by: Nicolas Seinlet (nse) <nse@odoo.com>
2019-12-10 08:25:53 +00:00
alt-odoo 36e4818b17 [FIX] calendar: wrong user updated when setting last notif ack
Since commit 91560fae56f1cba0914, we are using sudo to write
calendar_last_notif_ack, but we need to update the real partner stored
in the context.

opw-2133566

closes odoo/odoo#41982

X-original-commit: 4d6416dbc82f07c91111457b503ccfc737f802c9
Signed-off-by: Alex Tuyls <alt-odoo@users.noreply.github.com>
2019-12-17 07:03:32 +00:00
Debauche Stéphane c2cf0b52b1 [FIX] tools, mail: improve styling recognition in html fields
Purpose of this commit is to better support custom styling used notably
for mass mailing and outgoing emails. Indeed styling is whitelisted when
storing html. Finding it in html requires some parsing. This commit improves
the regex used to find it when semicolons are involved. It allows more use
cases to be correctly supported.

Task ID #2125856
PR #40433

closes odoo/odoo#41969

X-original-commit: 5235a49a5cd0f79f5590c96afa26dce25465fe06
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-16 14:41:35 +00:00
Laurent Smet e4eb845af5 [FIX] account: Fix missing constrains about multi-companies.
There is actually nothing preventing changing the company of some records even
there is some journal entries/items that are using them.

closes odoo/odoo#41945

X-original-commit: b3b66304eb98819cd87d6e4c7a29ca4803ffc3ff
Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-12-16 13:34:45 +00:00
jev-odoo b4587e9553 [FIX] google_account: no access error when token refresh fails
Before this fix, when a refresh of the google token was triggered
and error 400 where returned, if the user did not have write rights
on res_users, an access rights was raised

Now, the write is done and the real error is raised for the client.

Part of OPW-2123045 (needed to further investigations)

closes odoo/odoo#41777

X-original-commit: b4f794c55bdfbf2a5482b7ee30780fdef8d4978f
Signed-off-by: Richard Mathot (rim) <rim@openerp.com>
2019-12-10 14:47:32 +00:00
Nans Lefebvre c0ee3f423f [FIX] account: invoice report template for multi-company
Be in multi-company with companies C1, C2.
Let user U1 in company C1 create a vendor bill V.
Then U1 change to company C2.
Another user U2, in company C1, tries to print the vendor bill.
Traceback: Access error trying to access U1 to render the template

opw 2145738

closes odoo/odoo#41977

X-original-commit: 5b7b12c9907d7da03e08df4f5bac2198c3dc9cba
Signed-off-by: Nans Lefebvre (len) <len@odoo.com>
2019-12-10 14:38:11 +00:00
David Monjoie bce6aa351b [IMP] web: rejected click handlers should not close the dialog
Prior to this commit, there was no clean way to have a button
triggering asynchronous work (like asking user for confirmaton
for example) and close or not close the modal according to the
user choice. Your options were:

1. Swallow the pill and just accept that the modal will close
   even if the user chose not to undertake the action.
2. Set the `close` parameter of the button to false and handle
   the conditional closing by yourself from outside the dialog.

This commit introduces a way to tell the form view dialog that
the action has not been processed correctly and that the modal
should not be closed by returning a rejected promise. Prior
behavior can still be obtained (close no matter the result)
by having the handler not returning a promise at all.

closes odoo/odoo#33837

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-12-17 07:21:39 +00:00
Odoo's Mergebot b0d2cd0041 [MERGE] mass_mailing(_sms): move from onchange / default to stored editable computed fields
PURPOSE

Try to move from onchange / default_get to stored editable computed fields.
Normally behavior should be the same (computed or set by user), with support
in create / write + onchange without additional code.

SPECIFICATIONS

Update classic fields with onchange to stored editable computed fields. It
means their value will come either from manual user input, either computed
based on triggers. Purpose is to remove all onchange and default_get when
possible.

Clean fields definition inconsistencies, like default / required on computed
fields. Indeed computed fields should always have a value, maybe coming from
user input. They should not have default / required that are attributes for
classic fields.

Mailing domain computation is also cleaned and is now reset once the
mailing domain is changed. Indeed trying to keep a previous domain
based on try / except has no meaning from functional point of view. If model
changes then domain should change as it is a business record, not just a
technical domain to try to apply.

Finally add some tests to help develop and maintain those fields computation.

LINKS

Task ID 2088577
PR #41877
Enterprise PR odoo/enterprise#7278

Related: odoo/enterprise#7278
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-12-16 17:48:19 +01:00
Thibault Delavallée f807b636fa [IMP] mass_mailing: add some tests related to fields computation
LINKS

Task ID 2088577
PR #41877
Enterprise PR odoo/enterprise#7278
2019-12-16 15:58:16 +00:00
Thibault DelavalléeandAurélien Warnon 110decad00 [REF] mass_mailing(_sms): force domain reset when changing model / type
In this commit we rewrite the compute on mailing domain to simply reset it
once the mailing domain is changed. Indeed trying to keep a previous domain
based on try / except has no meaning from functional point of view. If model
changes then domain should change as it is a business record, not just a
technical domain to try to apply.

LINKS

Task ID 2088577
PR #41877
Enterprise PR odoo/enterprise#7278

Co-Authored-By: Thibault Delavallée <tde@odoo.com>
Co-Authored-By: Aurélien Warnon <awa@odoo.com>
2019-12-16 15:58:16 +00:00
Rémy Voet ffe1d4047d [REF] mass_mailing: move from onchange / default to stored editable computed fields
PURPOSE

Try to move from onchange / default_get to stored editable computed fields.
Normally behavior should be the same (computed or set by user), with support
in create / write + onchange without additional code.

SPECIFICATIONS

Update classic fields with onchange to stored editable computed fields. It
means their value will come either from manual user input, either computed
based on triggers. Purpose is to remove all onchange and default_get when
possible.

Clean fields definition inconsistencies, like default / required on computed
fields. Indeed computed fields should always have a value, maybe coming from
user input. They should not have default / required that are attributes for
classic fields.

LINKS

Task ID 2088577
PR #41877
Enterprise PR odoo/enterprise#7278
2019-12-16 15:58:16 +00:00