Commit Graph
134429 Commits
Author SHA1 Message Date
Sébastien Theys b9e1f0d700 [IMP] test_mail: introduce performance test for message_format
It was partially tested already as part of some other performance tests, but
this new test will cover more specific cases of `message_format` and
`_message_read_dict_postprocess`.

The goal is to ensure the performances are not made worse by the following
commits, or even to be able to notice when they are made better.

Part of task-2180311
PR: #43841
2020-03-06 16:15:42 +00:00
Sébastien Theys 70eeb2ece9 [IMP] test_mail: adapt query count
Part of task-2180311
PR: #43841
2020-03-06 16:15:42 +00:00
Sébastien Theys 60dc58cdf4 [IMP] test_mail: clean test log with appropriate mute logger
Similar to what is done for the other tests, mute unnecessary log such as
`odoo.tests: skip sending email in test mode`.

Part of task-2180311
PR: #43841
2020-03-06 16:15:41 +00:00
Hiral Bhavsar 0712c5222c [FIX] mail: allow to switch on form view
Currently, when clicking on the systray activity action icon and click on any
record from the activity, kanban or list view, not redirecting to its form view.

This commit adds the form view for that action and now click on record will
redirect to its form view.

task-2198480
Closes https://github.com/odoo/odoo/pull/46877

closes odoo/odoo#47208

X-original-commit: 3fd30316c0af9a6ca2ea4962f2e2f832e68dee54
Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2020-03-09 14:03:25 +00:00
Nicolas Martinelli 835974c35c [FIX] website_sale_product_configurator: prevent context loss
Prevent unexpected loss of context.

closes odoo/odoo#47194

X-original-commit: d6299de8c83d56fc5e05ba0efd8558c4e5b21572
Related: odoo/enterprise#9111
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-09 11:53:29 +00:00
Nicolas Martinelli 6b666b8840 [FIX] account: error on tax rounding
- Active 'Round Globally'
- Create the tax:
  Amount: 21 %
  Tax Included
- Create the following invoice:
  Line 1: qty 1.0, price 11.90
  Line 2: qty 1.0, price 2.80

The Taxes amount should be 2.56 since we apply a 'Round per line' logic
in case of included taxes.

opw-2181486

closes odoo/odoo#47175

X-original-commit: a55bc67f0797f412c3bd82074c3f8f5d1497bce2
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-09 09:50:30 +00:00
Aurélien Warnon 825d687cca [FIX] survey: remove undefined variable in survey form validation
This commit removes an unused and undefined variable that raised an error when
the user tries to answer a mandatory char_box question.

Oversight of commit: 0675d68afb

Task 2212021

closes odoo/odoo#47174

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-03-09 09:41:13 +00:00
Debauche Stéphane db2ec4888c [FIX] web: fix edition of a reference field
How to reproduce
================
You must have
- a form view with a one2many list
- in this one2many list add a column of a reference field

How to reproduce
1. open the record associated to the reference field
2. edit this record in the form modal view
3. click on save
-> Traceback

Bug
===
In `basic_model` the attribute `localData` become inconsistent
because of the method `_fetchReferenceData`.

We want to store the ID of the parent and not the all dict.

closes odoo/odoo#47171

X-original-commit: af411b866aa2052c01168342f8f05ae3dabad83e
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-03-09 09:41:27 +00:00
Tiffany Chang (tic) 3ec104ed3c [IMP] sale_stock: Show only 2 dates after delivery
In order to ease user comparison of expected vs actual delivery date in
sales orders, we make it so there are only 2 dates displayed in the
form related to expected/actual delivery dates. This is done by hiding
the 'expected_date' after the first delivery has occurred (i.e.
'effective_date' is non-empty) when a 'commitment_date' value is set.
If no 'commitment_date' value is set, then we display the 'expected_date'
so users still have a date to compare to.

This is addresses specification 10 of overall usability improvement task.

closes odoo/odoo#45724

Task: 2041853
Related: odoo/enterprise#8566
Related: odoo/upgrade#904
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-03-05 13:04:11 +00:00
Tiffany Chang (tic) 10250b1722 [IMP] purchase_stock: add to existing PO w/o user_id
Product purchases triggered by a stock rule currently searches existing
draft RFQs for matching 'partner_id' and 'company_id'. This commit makes
it so it also takes into account 'user_id' (i.e. "Purchase Representative")
and only selects ones without a user_id so as to not randomly add lines
to POs of different Purchase Representatives.

Supports Task: 2041853
2020-03-05 13:04:11 +00:00
Tiffany Chang (tic) 69c4b628c3 [IMP] mrp,(purchase_)stock: set autogenerated doc creators to Odoobot
Make it so documents auto-generated by other actions have Odoobot set as
the creator rather than the user triggering the action. This includes
the following documents:

1. Delivery (stock.picking) - generated by Sales orders (including MTO)
2. Purchase orders - generated by dropshipping, manual replenishment,
	             and run scheduler
3. Manufacturing orders - generated by made to order (MTO)

This is addresses specification 2 of overall usability improvement task.

Task: 2041853
2020-03-05 13:04:11 +00:00
Tiffany Chang (tic) 2552fcc94e [IMP] stock: Match transfer operations order in report
This commit makes it so the order of the products in the Operations tab
of a transfer (stock.picking) form is the same order in the "Picking
Operations" report. Previously the products were being printed by
product id in the report and this is no longer desired as it makes it
more difficult for stock managers/workers to work. This addresses
specification 4 of overall usability improvement task.

Task: 2041853
2020-03-05 13:04:10 +00:00
Tiffany Chang (tic) 99252f3d93 [IMP] stock/mrp: Update UX
This commit updates product, stock and manufacturing views for improved
usability. Handles view only changes of overall usability improvement
task. Specifically spec numbers:

1. Add "Run Scheduler" (from stock) to the manufacturing app under operations
5. Make "detailed operations" wizard modal have more intitutive footer
   buttons (i.e. don't say "Confirm"/"Cancel" when changes aren't
   possible.
8. Rearranging of vendor pricelist view
9. Updating of tooltip content for "property_stock_account_input_categ_id"

Task: 2041853
2020-03-05 13:04:10 +00:00
Odoo's Mergebot 70146bed17 [FW][FIX] web: some mobile fixes
This PR adds some compatibility fixes needed for a rather large set
of improvements to make using sign easier on a mobile device (sign is
an enterprise module; cfr. enterprise PR counterpart for details).

- Adapt some CSS rules to fix the control panel
- Avoid displaying the keyboard on the name_and_signature widget (mobile device)
- Allow _ir_act_window_ to display on fullscreen on mobile

Task 2155601

Counterpart odoo/enterprise#8871

closes odoo/odoo#47110

Forward-port-of: odoo/odoo#47025
Forward-port-of: odoo/odoo#46520
Related: odoo/enterprise#9085
Signed-off-by: res-odoo <res-odoo@users.noreply.github.com>
2020-03-09 14:45:27 +01:00
Arnaud Baes bf242977e2 [FIX] survey: allow mail templates updates.
Otherwise, users will ending up with broken templates if
they update from v12

closes odoo/odoo#47120

X-original-commit: 3f84cae060c62839e8d493c0b90539363469f5f3
Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2020-03-06 16:36:33 +00:00
Romain Estievenart c4755151bd [FIX] web: the signature content is drop when the browser is resized
Step to reproduce:

1. Go to sign
2. Click on the button 'Share' inside a template.
3. Click on Sign now'
4. Click on a field signature
5. Draw a signature
6. Resize the browser

Before this commit the code of the widget drops the content when a browser is triggering a resize.

But with a mobile devices (like Android phone). A resize event is trigger when the keyboard is displayed.

=> The resize drop redraw all the widget content when the user fill the displayed input.

Task ID: 2155601

X-original-commit: a6af5a12efb0da9d8ee7526e6b4738c9595f9816
2020-03-06 15:34:21 +00:00
Romain Estievenart 55cecf91b7 [FIX] web: the pager_counter has a bad display on mobile / tablet (responsiveness)
Task ID: 2155601

X-original-commit: 964aa6838803e5631fe40417a225dec521097cac
2020-03-06 15:34:20 +00:00
Romain Estievenart 4bf35b7cd6 [FIX] web: Don't focus the name on web.name_and_signature for mobile device
Task ID: 2155601

focus

X-original-commit: 681b5a5a834598d650da9611ab19cfff1a1428e9
2020-03-06 15:34:20 +00:00
Romain Estievenart a6344a1a78 [IMP] web: allow options on mobile inside the xml inside an ir_act_window
Now if you use the data attribute 'data-mobile' inside a type="action", we
can now send some specifics options on the dialogs.

Here a sample to open an action dialog in fullscreen on mobile:

Here the original action:

```
<button name="%(sign.action_sign_send_request)d" type="action" class="btn btn-primary btn-sm mt8 o_kanban_sign_send_request" context="{'sign_directly_without_mail': 0}">Send</button>
```

Now if you define the data-attribute data-mobile to allow fullscreen like:

```
<button name="%(sign.action_sign_send_request)d" type="action" class="btn btn-primary btn-sm mt8 o_kanban_sign_send_request" context="{'sign_directly_without_mail': 0}" data-mobile='{"fullscreen": true}'>Send</button>
```

Task ID: 2155601

X-original-commit: 66f99636d2d8bd850e33ed6c8f272eb662d835f7
2020-03-06 15:34:19 +00:00
David Monjoie 24d69567e5 [FIX] web_editor: fix pictograms in rte
The content of the "wysiwyg.fonts" module is duplicated in
"web_editor.base". This is a mistake that was introduced with the
revert of the saas-12.2 editor.

This duplication is the cause of github issue https://github.com/odoo/odoo/issues/44689.

This commit fixes the issue by requiring the correct module in rte.

closes odoo/odoo#46865

X-original-commit: 8bc3fd2c41c1d0fc1fa22e0849a7204b6712d7b2
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-04 11:57:25 +00:00
Martin Trigaux a14fd21c60 [FIX] website_slides: completly leave a channel
When leaving a channel, remove the earned karma in addition of the
slides.
This way, the user goes back in the same state as before completing
the course.
Add a message to clarify to the user the impact of leaving a course.
Add a test to answer questions

opw-2199066

closes odoo/odoo#47166

X-original-commit: a5e66d681ccd760c0af7bd0b179b5e42c76577ba
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2020-03-09 09:10:29 +00:00
Goffin Simon 2406a23259 [FIX] account: Source document not saved from Auto-complete
Steps to reproduce the bug:

- Let's consider a confirmed PO with one line L
- Create an invoice I and choose PO in the Auto-complete field
- The line L has been added and the Source Document has been filled with PO
thanks to the onchange function '_onchange_purchase_auto_complet'
- Save

Bug:

The field Source Domcument was not saved because the field is readonly

opw:2209893

closes odoo/odoo#47158

X-original-commit: 9fc3a4a6a16a205974d109c22e91b9c2cd250077
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-03-09 08:41:26 +00:00
Jeremy Kersten 614c9baae4 [REF] website: refactor reset_password tour
Previous implementation crashes randomly in chrome headless due to timeout.
Avoid to do web action, while we just want to check reset_password feature.

+ add one test that reset password on partner from website 2 to check that
link match the domauin from website 2.

closes odoo/odoo#47136

X-original-commit: d8019f25a5cd6ed611295e9b93111402f4cad04a
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2020-03-06 21:39:14 +00:00
Nicolas MartinelliandArnold Moyaux 121c73246d [FIX] stock: change of scheduled date
- Install Inventory, Purchase
- General Settings/tick Multi-step routes
- In Warehouses/YourCompany
  Incoming Shipments: Receive goods in input, then quality and then
  stock (3 steps)
- Create a PO and add the same products on 2 lines. One has a scheduled
  date in the future
- Go to transfers, where "Picking List" or "Procurement Group"
  correspond to your PO
  => the 3 scheduled_date correspond to Datetime.now()
- Validate the first picking (WH/IN)

The scheduled_date (resp date_expected) in the remaining pickings WH/INT
(resp. stock moves) are changed to the past.

This is due to the fact that both moves are merged in subsequent
pickings. The cleanest solution would be to avoid the merge in case the
expected dates are different. Although this makes sense, that also
implies a change of behavior.

Therefore, we avoid such situation by preventing the propagation of an
expected date in the past, which does not make much sense when
propagating.

opw-2171509

closes odoo/odoo#47155

X-original-commit: c7b2341b35aabe394a34e14c48a913a8595737fc
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
Co-authored-by: Arnold Moyaux <arm@odoo.com>
2020-03-09 08:33:58 +00:00
Rémi Rahir 7484791497 [FIX] iap: Commit creation on dedicated cursor
The generic IAP flows forces us to commit the creation of a new record
to prevent the loss of his token once the system contacts iap.odoo.com.
Unfortunately, this operation can drastically alter any business flow if
it's not executed at the very begining or end of the flow.
Furthermore, it can be difficult to exactly pinpoint if this will affect
a flow (for instance, the point of sale is affected by iap because of
the module 'stock_sms' while the former doesn't depend on the later).

To avoid those issues, we isolate the account creation on a dedicated
cursor and load the values of the created record on the current cache.

closes odoo/odoo#47026

X-original-commit: 5307f47d975c3b3ebd87c7f7e2248802a1aa5be7
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2020-03-05 16:47:34 +00:00
Rémy Voet (ryv) c6e52e9037 [IMP] stock_landed_costs(_mrp): allow to choose mrp production in landed costs
When we create a landed cost, we can now apply it on a
manufacturing order instead of a picking. Also, change
some Float fields in Monetary ones and add the currency_id
field in views.

task-2123752

closes odoo/odoo#44109

Related: odoo/upgrade#822
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-03-04 16:07:47 +00:00
Rémy Voet (ryv) 5e115743d2 [IMP] stock_landed_costs: add split method on product
On the product form, when "Is a Landed Cost" is checked,
show a "Split Method" selection field. When creating a
Landed cost with this product, automatically
set the right split method on the line.

This behavior was removed by 24bca8fd4a

task-2123752
2020-03-04 16:07:47 +00:00
Rémy Voet (ryv) 7c55c20fce [IMP] stock_account: add button to create manual stock valuation layers
Add a way to create a munual stock valuation layer, create
a stock valuation layers implies :
- Change the stardard price with the new valuation by product unit in case of AVCO.
- Create a manual stock valuation layer with the added value.
- Update the remaining value of current valuation layer.
- If the Inventory Valuation of the product category is automated, create
related account move.

task-2123752
2020-03-04 16:07:40 +00:00
Rémy Voet (ryv) 8093b658cf [REF] stock_account: modify _change_standard_price to be batchable
The private method _change_standard_price was incorrect in batch
and didn't contain a ensure_one check.
Fix to be batched and used this new version in the write method
of product.product model.

task-2123752
2020-03-04 15:44:53 +00:00
Rémy Voet (ryv) aaa3ead686 [REF] stock_account: merge/clean views of stock.valuation.layer
The views of stock.valuation.layer model
were in the wrong file,
move it, and merge duplicate search views. Also
remove the unused action 'action_stock_inventory_valuation'.

task-2123752
2020-03-04 15:44:53 +00:00
Rémy Voet (ryv) c4d71d7d24 [REM] stock_account: clean import/condition/dead-code
For the stock_account module:
- Remove unused import
- Remove deadcode, unused _anglo_saxon_sale_move_lines method
and useless 'continue' keyword
- Fix duplicate name test (test_average_perpetual_8 defines twice)
- Make comments flake8 compliant

task-2123752
2020-03-04 15:44:53 +00:00
Christophe Monniez bf3f67be28 [IMP] web: add a light mode to clickEverywhere test
The test clickEverywhere may last a very long time when all modules are
installed. For that reason, it's not a standard test and we run it at
night.

Unfortunately, it may happen that an App menu breaks and that this
failure is only spotted the next morning.

With this commit, a light mode is added to the clickEverywhere test. In
this mode, only the app menus are tested.
Also, two python tests are added that use this mode and are launched as
standard tests.

closes odoo/odoo#46934

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-03-05 08:06:02 +00:00
jvm-odoo 1a7e0fb01b [FIX] mass_mailing: remove inactive lists from mass mailing
Issue

	- Install Mass Mailing
	- Create 2 mailing list (x & y) with differents
	  contacts
	- Create a mass mailing with x & y, send it

	Ok, sent to everyome

	- Archive mailing list y
	- Duplicate the last mass mailing, send it

	Not ok, sent to y contacts too

	When a list is archived, I can't manually
	remove it from the mass mailing (it disappears)

Cause

	When archiving a list, it still remains in
	contact_list_ids

Solution

	Prevent archiving a mailing list if any mass mailing
	using it exist with state != 'done'

	Re-evaluate the domain field at copy

OPW-2202111

closes odoo/odoo#47094

X-original-commit: 4346f1da7a26a11f49c8e76f6ed8d6d6078a1d8a
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
2020-03-06 14:27:02 +00:00
jerome hanke (jhk) 33895b3fd7 [FIX] account: show taxes when they are zero on invoices print
- Create a 0 % tax
- Create an invoice with a line using the 0 % tax
- Print the invoice

The 0 % tax is not shown in the 'Tax amount by group' summary, while it
should be.

In 12.0, the 0 % is created in `account.invoice.tax`, therefore the tax
is shown. However, in 13.0 there is no `account.invoice.tax` anymore,
and no journal item is created for a zero amount. Therefore, the tax is
not shown.

We explicitly loop on the zero taxes and add them in the 'Tax amount by
group'.

opw-2209343

closes odoo/odoo#47092

X-original-commit: 37a0f7acae8aebef35577b178f8aeefed11c9105
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-06 14:25:09 +00:00
Goffin Simon ca72c490d0 [FIX] website_sale: Wrong pricelist in 'Suggested Accessories'
Steps to reproduce the bug:

- Let's consider two products P1 and P2 where P2 is an accessory of P1
- Let's consider a pricelist PL1 where P1 and P2 = 10€
- Let's consider a pricelist PL2 where P2 = 20€
- Set PL1 as pricelist of Public user
- Set PL2 as pricelist of Odoobot
- Go to the shop with Public user and add P1 in the cart

Bug:

The suggested product P2 was at 20€ instead of 10€

opw:2206947

closes odoo/odoo#46973

X-original-commit: a9351a0b28ea753e3b7846dbd6aaade7eca96345
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-03-05 13:06:49 +00:00
jerome hanke (jhk) da29849414 [FIX] account: partner vendor view has vendor filter by default
Steps to reproduce:
- install accounting
- go to accounting > vendors > vendors

Previous behavior:
all contacts are visible

Current behavior:
the vendors filter is set by default

opw-2185332

closes odoo/odoo#47095

X-original-commit: b77cdc020c1e338e09960ab9dea3f3ec907a3fa6
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-06 14:27:56 +00:00
Romain Derie 8066001ee4 [FIX] website: add test for 5ac269d722f
5ac269d722f fixed 7e2b0ebe799 that prevented the website menu to actually be
visible, since the JS in charge of displaying the menu was 'crashing'.

A test was missing to avoid that issue to appear ever again, since it is quite
a critical problem.

Note that it might look strange that breaking such a mechanism does not make
the runbot red, but since the menus are actually considered visible, the tests
are able to 'see' it in DOM and click on it.
They are actually hidden through an opacity 0 & height 0 while the JS process
them.

task-2093679

closes odoo/odoo#47138

X-original-commit: 0dc00a252dfe7fee658579a60dc7b1b1ca71a661
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-07 12:16:12 +00:00
qsm-odoo 05d17089c4 [FIX] web_editor, website: review default palette system
Before this commit, this was done:

1) Primary variables (app order):

(a) web_editor: define palettes (color + theme + gray), only 1 empty
                one. Mark the first ones as the selected ones.

(b) website: fill all defined palettes with the website-related
             color key and values (body, menu, logo-height, etc).
             + define "website values" palette.

2) Secondary variables (reverse app order):

(c) website: merge the user palettes on top of the selected palettes
             (so user values overriding values added in (a) and (b)),
             the resulting palettes are added in palettes lists and the
             selected palette numbers are set to select those ones.
             + final selection of "website values" palette.

(d) web_editor: final selection of the selected color palette amongst
                the color palettes.

--

The problem with all of this is that the definition of palettes
in themes (occuring between step (b) and (c)) never received the
website-related color key and values of step (b) and were thus forced
to redefine all of those by themself even if they wanted to use the
default website one.

This commit changes the system so that step (a) and (b) now define
"base" palettes (color, theme, gray, website values) and step (c) and
(d) now merge the final selected palettes with those "base" palettes.
This is in fact theoratically more efficient and allows to not force
themes to define every possible palette value we might introduce.

closes odoo/odoo#47097

Related: odoo/design-themes#216
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-07 11:09:36 +00:00
fja-odoo acdf3cf7f5 [IMP] website: add redirect icon to we-urlpicker
Add an icon to open the url the we-urlpicker currently holds in a new
tab.

part of: https://github.com/odoo/odoo/pull/45397

task-2197008

closes odoo/odoo#45397

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-06 16:25:34 +00:00
fja-odoo f07b5b9d74 [IMP] website_form: add/rename form options
Add a height option on textarea
Rename some fields
Add margin on default form

part of: https://github.com/odoo/odoo/pull/45397

task-2197008
2020-03-06 16:25:34 +00:00
fja-odoo b943dd83f6 [IMP] web_editor: add default opt selectAttribute
Add default option selectAttribute
Most of the logic is shared with selectDataAttribute

part of: https://github.com/odoo/odoo/pull/45397

task-2197008
2020-03-06 16:25:34 +00:00
jpr-odoo 223038682f [FIX] web_editor: correct parsing of dailymotion URL
The parsing of dailymotion URL was not done correctly. This made the
media dialog duplicate the URL params if such an URL was re-edited.

task-2159152

closes odoo/odoo#47102

X-original-commit: 8d8f442f62919b1cee595ed1fae2c6e4f05eb8fa
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-06 14:55:03 +00:00
Sébastien Theys b07728e94e [FIX] web, website_*: avoid inline style for image width 128
closes odoo/odoo#47134

X-original-commit: ccb00bd40e7ce58108aeb3ca66abf28a1e12c290
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-03-06 20:04:05 +00:00
alt-odoo 8e98d71f36 [FIX] payment_paypal: missing parentheses in mc_gross computation
This is a small fixup of previous commit 581020c733044b52cacd0d41a6a8eb8708671d0d.

closes odoo/odoo#47127

X-original-commit: e1e224bbf880718bcfb8d3874bad003aef5e8a27
Signed-off-by: Alex Tuyls <alt-odoo@users.noreply.github.com>
2020-03-06 17:45:16 +00:00
jvm-odoo 0f0d0e59bc [FIX] payment_stripe: fix empty error when cancelling payment
Issue

	- Install eCommerce
	- Set Stripe up (API keys)
	- Go on Shop
	- Add a product > Checkout
	- Pay with stripe
	- Go back when arriving on Stripe payment page
	  (top left link)

	Empty error box

Cause

	This behavior is not handled by payment_stripe

Solution

	Cancel transaction when going back.
	It will display a message "transaction cancelled"

OPW-2195385

closes odoo/odoo#47113

X-original-commit: b8b9a04ff5b5b2ba40b26632e2395b7cdb7ea300
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
2020-03-06 15:53:22 +00:00
Paul Morelle 72244ca755 [FIX] website_*: force width of partners logos to 128px
* = website_crm_partner_assign, website_customer

Follow up of [1] which still had a misalignment for logos higher than large
(portrait), or logos smaller than 128px.

The layout of the related pages relies on the logos being exactly 128px for the
text following the images to be aligned.

There are two issues to fix:

- When images are bigger than 128px, due to incomplete migration at this time:
  `o_image_128_max` is added to ensure they are not displayed bigger than 128px.

- When images are smaller than 128px, due to the original image being too small:
  the parent element of the image is forced to the expected width of 128px.

  The 128px width is actually not forced on the image itself but on the parent
  of the image in order to:

  - avoid a rectangular image (larger than tall) from using 128px height and
    creating empty space when its height is actually smaller,

  - and avoid images smaller than 128px to be scaled up.

Additional fix:

In "Our References" template, remove the `row` class on the container of
media elements, so that all media are always on their own line.

[1] 8748416b4d8ae4840d7738a0edf226f3240d97cb

closes odoo/odoo#47093

X-original-commit: 5e3242f904ddcee9cf660f13b446b88bead35777
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
2020-03-06 14:25:27 +00:00
jbw 4927d66635 [FIX] account : wrong field name for mapped on account_move
The "type" field of account_move was renamed "move_type".
Previous name "type" was still used in account_resequence.py.
Error : https://pastebin.com/kqpbA9Sh

closes odoo/odoo#46989

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2020-03-05 14:09:25 +00:00
Lucas Lefèvre 7be54c3a5e [IMP] hr_recruitment: Create applicant's partner as private contact
Purpose
=======
In the Recruitment app, when a new applicant is created and moved staged,
an email may be sent according to the stage configuration.
If the email is not found in the database, a partner is created.
The new contact is now visible and available to the rest of users
(for example can be selected as a customer on a SO), which is a potential
security risk as only HR employees should be able to see this
applicant information. There should be a way to limit the access to this
applicants Contact, for example defaulting the type to private rather
than contact.

Specification
=============
The created partner should be of type private.

closes odoo/odoo#46351

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-06 14:20:42 +00:00
Krupa Patel 5f85a7605a [FIX] web_editor: add focus in url input of link dialog
Before this commit, when clicking on the link button after focusing a
link, the first input of the link dialog was hidden (label), and the
second input (URL) was not focused.

In this commit, we focus the first *visible* input so users are able to
directly copy-paste URL.

task-2083209

closes odoo/odoo#44931

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-06 13:47:16 +00:00
Odoo's Mergebot 034d1c1c7f [MERGE] website slides: add course tags to eLearning frontend
PURPOSE

Add more visibility to course tags as well as the ability to add new ones via
the front-end.

SPECIFICATIONS

Course tags are only viewable in the courses page. In this merge we add more
course tag functionality by:

- making course tag creation more intuitive via backend
- making course tags viewable within a course's specific webpage
- making it possible for those with the correct access rights to add new
  course tags via the course's specific webpage (via a "+ Add Tag" button)
- adding the ability to assign colors to course tags
- note that coloring should not show when courses page is filtered by course
  tag to allow for easier identification of tag filters.

See sub commits for more details.

LINKS

Task: 2128166
Migration PR: odoo/upgrade#862

closes odoo/odoo#44365

Related: odoo/upgrade#862
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-03-06 15:48:03 +01:00