Commit Graph
134358 Commits
Author SHA1 Message Date
fja-odoo c730da7197 [FIX] website, *: fix placeholder translate
* = web_editor

InputUserValueWidget's data-placeholder where not translatable.

task-2210358

closes odoo/odoo#47029

X-original-commit: dfaf497de5eb95f1ba65e927631cc48d97ca6127
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-05 17:10:50 +00:00
Rémy Voet (ryv) 94b39d3ea3 [REF] stock,purchase,repair,mrp: clean ACL/report
For stock, purchase, repair and mrp modules, do a small clean of ACL:
Remove duplication and useless line.
Also improve the readability of the stock traceability report.

task-2172399

closes odoo/odoo#45055

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-03-06 09:16:16 +00:00
Xavier Morel 93ac430147 [REV] theme_*: rollback categories to just Theme
odoo/odoo#4c291e3f7049c3af859902a6f5857eab68be2f9e changed theme
categories from Theme to Website/Theme, however theme support has
technical dependencies on the category, so this breaks
design-theme (which was missed as design-themes was not yet under the
Not Rocket Science Rule).

Revert the change specifically for the theme modules.

closes odoo/odoo#47059
2020-03-06 09:20:01 +00:00
Loan (lse) 1c1d84255a [FIX] mass_mailing: remove wrong state default value from context
When testing to send an email of a campaign from the automation
marketing app, a traceback is thrown.

This is due to a context error. We define a default value which isn't
possible to be assigned for the variable.

opw-2190077

closes odoo/odoo#47039

X-original-commit: ff1d42e26bca3ce60697f9d4ee28f6aae5b7046b
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-05 18:41:12 +00:00
jvm-odoo 0e3b5c265b [FIX] mass_mailing: fix content not saved
Issue

	- Install Email Marketing
	- Create/Edit one of them
	- Save

	Changes not saved

	- Click edit & save

	Changes saved

Cause

	Before 30db768, the order of execution was:

	1. field_html > commitChanges (value = <p><br></p>)
	2. mass_mailing_widget > commitChanges (value = "test")

	After 30db768:

	1. mass_mailing_widget > commitChanges (value = "test")
	2. field_html > commitChanges (value = <p><br></p>)

Solution

	Use this.saveCroppedImages in mass_mailing widget to
	add the delay there too

OPW-2207107
OPW-2207817

closes odoo/odoo#47018

X-original-commit: 31e36fdc9b63fade99cef0c9ac4ed093b3936707
Signed-off-by: Jason Van Malder (jvm) <jvm@odoo.com>
2020-03-05 16:05:56 +00:00
Victor Feyens 917e7a1a9b [FIX] product: standard_price depends on company context
Product templates standard_price (cost) is company_dependent,
because the product_product standard_price is company dependent.

closes odoo/odoo#47041

Forward-port-of: odoo/odoo#46841
X-original-commit: 30ee9f1ac411aca9c2bf2158fca9be7db743616d
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
2020-03-05 19:17:17 +00:00
Xavier-Do 5ae6f02e45 [IMP] tests: scan upgrade path for additionnal tests
A future upgrades improvement will be to add tests in upgrades
modules. This small imp will scan in upgrade for some tests,
specific tooling will be added to upgrade repository in odoo/upgrade#878

closes odoo/odoo#47030

X-original-commit: 59b5a03bdf7ae1ad8851a67d278edc31a26a96a8
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2020-03-05 17:30:22 +00:00
fda-odoo 32c8922432 [FIX] web: eventBusDispatchToDOM set to true in pdf.js
In the module account_invoice_extract, the the code need to react to the 'pagerendered' event triggered by pdf.js. However in recent version of pdf.js, event are not visible outside of the library, except if the 'eventBusDispatchToDOM' has been set to true.

We tried to set this option from outside of the library but without success, as our pdf viewer is in an iframe.
There is no state of the iframe in which we can add an event listener to set the option.
pdf.js has an event used to signal when we can set settings, called 'webviewerloaded'.
This event is triggered in an EventListener attached to the 'DOMContentLoaded' event.
So, to list options we had, we could:
a) add an eventListener to the iframe document or window to react to 'webviewerloaded'. This doesn't work as document and windows are not the definitive ones and won't catche the event later.
b) add an eventListener to the iframe to react to 'DOMContentLoaded', which doens't work too as our listener will be called after the pdf.js one.

Finally the option was choosed to modify the default value of this option directly in pdf.js as no hook worked in the
'account_invoice_extract' module.

closes odoo/odoo#47024

X-original-commit: 42e6f56c887c3175c76f0f84b8581e288ebc7daf
Related: odoo/enterprise#9044
Signed-off-by: Florian Daloze (fda) <fda@odoo.com>
2020-03-05 16:31:29 +00:00
Thomas Binsfeld 193ce3de97 [IMP] sale: get invoice grouping keys from an easy to override function
closes odoo/odoo#47023

X-original-commit: d7244f38c1e39d353eacad970a5e1099995238a7
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-03-05 16:31:06 +00:00
Nicolas Martinelli 4ca24a47de [FIX] mrp: default UoM when registering lot
- Create a products A
- Create a products B
  Tracked by lot
  UoM: kg
- Get some quantity in stock for B
- Create a BOM for A: 2g of B to produce A
- Create a MO for A, Produce

In the lot registration wizard, 2kg of B are suggested instead of 2g of
B.

In this case, the UoM of the product is taken instead of the move.
However, it should only be the case if the product is tracked by unique
S/N.

opw-2200263

closes odoo/odoo#47019

X-original-commit: 9d114eb7a48b82b76e9c900cce22dc5022206367
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-05 16:07:34 +00:00
Nicolas Martinelli 3c4c625a0a [FIX] sale_mrp: delivered qty in dropship
- Activate Dropshipping
- Create 3 products: KIT AB, A, B
  All have the Dropship route and a supplier set
- Create a BOM of type kit: KIT AB is composed of A & B
- Create a SO for 1 unit of KIT AB, validate
- Validate the created PO
- Deliver the products

The delivered quantity remains zero.

This happens because the `bom_line_id` was not written on the
`stock.move`. Indeed, the latter is created from a PO, not from a SO.
Since the PO doesn't have a `bom_line_id` field, the information is
lost.

As a solution, we apply the 'all or nothing' policy in case of
dropshipping.

opw-2207118

closes odoo/odoo#47014

X-original-commit: 6016476952f53097f8b04f34bdbaf09c12e431fe
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-05 16:02:38 +00:00
svs-odoo cdddd45a73 [IMP] stock: _get_without_quantities_error_message
Adds a method to be able to override the error message in the case where
the user try to validate a picking with no quantities done nor reserved.

task-2123726

closes odoo/odoo#45457

Related: odoo/enterprise#8364
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-03-05 13:32:57 +00:00
svs-odoo 3ed3ed183c [IMP] stock_picking_batch: confirm waiting picking
Before this commit, the batch action done processes only if all batch's
pickings are `reserved`, which cause batches with a waiting picking
(`confirmed` state) can not be validated.
As the picking itself can be validated even if it is in waiting state,
it seems logical that we can do the same from batch picking.

task-2123726
2020-03-05 13:32:57 +00:00
svs-odoo 339c40abe1 [IMP] stock: inventory line product_qty readonly
Moves the readonly condition for the `product_qty` field into the model
to have the same condition in the barcode app (enterprise).

task-2123726
2020-03-05 13:32:57 +00:00
Aurélien Warnon d2dbb0da2e [IMP] mass_mailing: improve mailing.mailing kanban bottom block
This commit improves the bottom section of the mailing.mailing kanban view to
make it follow other kanban views structure.

It makes the user avatar on the mailing.mailing kanban display in a round shape
instead of a square (with border-radius).

LINKS

Task ID 2207856

closes odoo/odoo#46708

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-03-03 10:05:15 +00:00
Cocographique de06caa988 [FIX] website: enable options for slides of quotes carousel snippet
task-2209956

closes odoo/odoo#47000

X-original-commit: df959893cf9a0c763dd2f68bb31702a0ddcabfc5
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-05 15:10:22 +00:00
Samuel Degueldre 5033b870b6 [IMP] web_editor, website: improve border and border radius options
Previously, the border radius option was only available when there was a
border width, but in some cases you want no border, a background color,
and still have rounded corners. This commit makes the option available
when there is either a border OR a background color.

This commit also adds an option to choose the border style between
solid, dashed, dotted and double. The other styles have been left out as
they look very different browser to browser and are not very useful.

task-2195429

closes odoo/odoo#46625

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-04 13:15:01 +00:00
Yenthe666 cdde9be13b [IMP] website_sale: improve confirmation info
The sentence was a bit odd before this commit. After this commit it reads easier and it is more logical.

closes odoo/odoo#46617

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2020-03-02 13:52:01 +00:00
Yannick Tivisse 4c291e3f70 [IMP] base: Display searchpanel on ir.module.module views
Purpose
=======

The current kanban view is messy. It is difficult to identify which
apps are installed or not. The user can completely miss a module
that might have interested him. A search panel would make things way
more readable.

closes odoo/odoo#44401

Taskid: 2181557
Related: odoo/enterprise#8144
Related: odoo/upgrade#879
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-05 14:03:45 +00:00
svs-odoo 4f1fa7e24c [FIX] delivery: put in pack package domain
Before this commit, on a picking, when we want to put in pack, we can't
select packages created with no package carrier type as they had a
confusion between `package_carrier_type` and `delivery_type` when we
pass the value in the context (value who is reused to the package
domain, making some package unfindable).

closes odoo/odoo#46992

X-original-commit: 21f054731e8635b9e3681e673a7cbf627ad49cca
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-03-05 14:37:09 +00:00
Lucas Lefèvre 7032dde60a [IMP] web: Add quick security access to debug menu
PURPOSE

Debugging access issues can quickly be a pain.
The goal is to allow to easily debug an access rights issue from the debug tools.

SPECIFICATION

In the debug tools, add the following two new items:
- View Access Rights
- View Record Rules

closes odoo/odoo#46906

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2020-03-04 16:15:56 +00:00
Helly kapatel 01497474d7 [IMP] sale: rename mail notification template 'oezirhgoi'
In Sale, there is a view called oezirhgoi which adds the sign and pay
online buttons (xml id sale.mail_notification_paynow_online)

So rename it with the 'Quotation: Sign and Pay mail notification template'

closes odoo/odoo#46954

Taskid: 2196751
Closes: #46954
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-03-05 12:39:32 +00:00
Simon Lejeune 53e89e5006 [FIX] product: expand group on categories only when needed
Issue: on main product's kanban, if you group by categories, all
categories (even the empty ones) appear. This is not desired.

We only wanted this group_expand logic when using the products stat
button on the product category form view.

closes odoo/odoo#46966

X-original-commit: e3f1254e5b28aa801f137835d871427786fb3428
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-03-05 12:25:06 +00:00
Pierre Paridans a5dccc1586 [REV] mail: Move the attachment icon on the left
This revert of commit odoo/odoo@9cd3bcd440 is due to
the attachment's button needing to be kept on the right side of the
chatter's topbar.

Task ID: 2193950

closes odoo/odoo#46958

X-original-commit: d458aca28c25879ca9878b0628f2a6ea703504ef
Related: odoo/enterprise#9027
Signed-off-by: Pierre Paridans <pparidans@users.noreply.github.com>
2020-03-05 11:40:01 +00:00
Pierre Paridans 80c00af329 [FIX] mail: overflow in the attachment box
The chatter's attachment box has an horizontal overflow when adding at
least 1 attachment.

This is due to a negative margin applied on the attachment list/previews
not matching its container's padding (3px vs 5px).

This commit reuses the SCSS variable dedicated to this margin around the
attachment list/previews and apply it correctly to the chatter's
attachment box.

Task ID: 2194025

X-original-commit: 3a7eb3fe97541855ae893514f8b98cbfe6c1a7e4
2020-03-05 11:40:01 +00:00
Pierre Paridans 5d88e164bc [FIX] mail: chatter has horizontal scroll on medium screen sizes
A horizontal scroll appears on medium to large screen sizes in the
form's chatter sidebar (e.g. between 1534px and 1619px, when all modules
are installed).

This commit restores the padding set by Bootstrap for `.nav-link`
elements instead of a fraction of the grid gutter's (?) width then
applying slightly smaller padding.

Task ID: 2193950

X-original-commit: 7bc8b577d822b057d1bccf881b9c4b1ee127a728
2020-03-05 11:39:59 +00:00
Cocographique 43800cb046 [FIX] website: update path to author default image in blockquote snippet
task-2209946

closes odoo/odoo#46959

X-original-commit: a248391008caa8a0f04dcd2bc027fc8f0b7b0945
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-05 11:40:41 +00:00
Siddarth Gajjar 6a56b6c47b [IMP] crm: remove custom css on form view
Purpose of this commit is to get rid of custom css code and file and use
standard bootstrap classes.

TaskID 2182610
Closes #45472

closes odoo/odoo#46948

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-03-05 10:42:43 +00:00
Pierre Masereel b10841acbe [FIX] delivery: access rights when computing price rules
When a picking is validated with the delivery prices based on rules, you
can face an error, if you are not inventory manager or sales manager.

First, because you don't have access rights to see the sales orders used
to compute the price.

And then you don't don't have access rights on the delivery.price.rule
object to apply the formulas.

As the computation of the price of a delivery should not depends on
access rights other than the ones that let the user validate the
picking, as 'sudo' is called.

OPW-2209148

closes odoo/odoo#46947

X-original-commit: b68139bf2fec8fd2a79e1a578d126f260891c4f6
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2020-03-05 09:57:32 +00:00
Nicolas Martinelli 2e02be7404 [FIX] l10n_fr_pos_cert: decrease quantity
In a French configuration, the decimal separator is a comma.
Unfortunately, `parseFloat` doesn't handle this case and incorrectly
parses the string.

Similar issue and correction than
https://github.com/odoo/enterprise/commit/af8177612e569907bcb8fe4b9ce2d845de5ab2a0

opw-2207795

closes odoo/odoo#46945

X-original-commit: 3d87d79ecec92cafd7f964712ad0014add5cbb6a
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2020-03-05 09:49:15 +00:00
Harpritsinh Sisodiya d061852a97 [FIX] web: autocomplete dropdown: style of selected item
Before this commit, in the website, the background of the
highlighted item in an autocomplete dropdown didn't take full
width. Now it does.

closes odoo/odoo#46924

Task: 2066536
Closes: #36997
X-original-commit: e184e971790c0045b58db6ae588b1d1b14d3154c
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-03-04 16:44:06 +00:00
Adrian Torres 26680badef [FIX] base: handle custom non-stored m2m
Before this commit, one could create a custom, non-stored m2m field
through the web interface BUT the deletion of the custom field would be
impossible after saving the form.

This is due to the fact that the relation would not be stored in DB
since the field is store=False, therefore the value of the relation
would equal to None, and since the unlinking mechanism assumes that
the value is never None, it tries to drop a table of name None, which
does not exist.

closes odoo/odoo#46909

X-original-commit: cdd1439a380810569db80d984c8cb80d213b1bf3
Signed-off-by: Adrian Torres (adt) <adt@odoo.com>
2020-03-04 15:39:18 +00:00
Goffin Simon babf9e4f2c [FIX] account: Reference of invoices in payment receipt
Steps to reproduce the bug:

- Let's consider a supplier S
- Create two vendor bills for S B1 and B2
- B1 with the vendor reference R1
- B2 with the vendor reference R2
- Register a payment P for B1 and B2
- Print the payment receipt of P

Bug:

The reference of each vendor bill didn't appear in the payment receipt

opw:2190086

closes odoo/odoo#46360

X-original-commit: 068bc8b22b14c5a9756a19aed2f28a786265ad67
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-02-26 15:06:10 +00:00
Mohammed Shekha a4a4ad1a39 [IMP] web: trim many2one search terms
This commit trims leading and trailing spaces in search terms of
many2one.

task-2187414

closes odoo/odoo#45282

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-03-04 14:46:18 +00:00
Krupal Oza 6f1ec915cf [FIX] crm: fix demo data
Purpose: Replace user's role by partner in the chatter of lead.

Currently the discussion in the chatter of the lead is incorrect as both
are users.The message is sent by user to demo user instead of partner.

This commit fixes the behavior by setting the author of mail message to
partner instead of user and if there is no partner selected then the message
is sent by the contact email.

Task 2180228

closes odoo/odoo#44253

Closes: https://github.com/odoo/odoo/pull/44253
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-03-04 12:31:06 +00:00
Xavier Morel be82b0516a [FIX] base_setup: test checking config links
The tag "nightly" is not an actual thing, so the test gets run all the
time, and since the taxcloud page has been moved it now breaks.

Replace by the proper tag.

closes odoo/odoo#46938

Related: odoo/enterprise#9019
2020-03-05 09:12:44 +00:00
Lucas Perais (lpe) 8c8f328e29 [FIX] orm: fields x2m are not sortable
Before this commit, x2m fields were described as 'sortable'
This was odd since:
- When actually sorting on one of those fields through the webclient
the sorting was gibbrish
- Even the orm silently warned in the log that
the field was not a sql column and therefore was not sortable

After this commit, only a field which is column (and a few other conditions)
can be sorted

Task 1863492

closes odoo/odoo#46921

X-original-commit: dd3094378fc322447d1aef994f6bace3f0c24288
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2020-03-04 16:26:07 +00:00
Thibault Francois 92bd23746b [FIX] account: allow to reconcile batch payment
For the moment it's not possible to reconcile batch payment in multicurrency set up
 because the reconciliation trigger _compute_amount for all entry
 recompute_amout trigger _inverse_amount_total that will
 write on protected field such as debit, credit

 1° when the currency is not same as company currency because the
    convertion was done from currency_id to currency_id and not currency_id
    to company_currency_id

 2° even when the correction is correct you may have data that lead to
    different rate at the computation then when the move was originially
    computed
 3° when you have float representation issue because != is use to
    compare float

Solution:
  Fix _inverse_amount_total
  In Trigger the compute_amount only for invoice
  and since the method _inverse_amount_total try to change the amount
  only for entry with 2 lines the method will be never trigger during
  reconcilation.

closes odoo/odoo#46886

X-original-commit: 5bd659fb16a44d1bc593cf932445e2cc628e12a8
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-03-04 14:56:10 +00:00
Laurent Smet 6282e45462 [FIX] account: Fix onchange_currency triggered for COGS (anglo-saxon)
When creating a new invoice, the date is not set by default. This date is set when posting it.
Otherwise, since the date changed, we need to trigger onchange_currency to manage the new
conversion rate at the new date set. Otherwise:
1) anglo-saxon lines never have a foreign currency.
2) it will recompute the balance based on the subtotal. Using a FIFO method, the
price_unit is computed as an average and, in our case, the price_unit should be
9.33333333 x 6 = 56. Then, at the creation of the invoice, balance=56 and
price_unit is rounded by the orm to 9.33. When posting the invoice, since onchange_currency
is triggered after setting the invoice date, the balance is recomputed as 9.33 * 6 = 55.98.

github issue: 46615

closes odoo/odoo#46917

Co-author: sle-odoo (sle@odoo.com)
X-original-commit: 19251c684119a537111126d15374e3d0b6e040b3
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-03-04 16:08:19 +00:00
Thibault Delavallée 4501e3081d [FIX] hr_expense: set expense_extract_show_ocr_option_selection as not required
Adding required fields on company model is annoying for tests. Indeed multi
company tests may run during module installation, notably in CRM. Those tests
generally require to create a new company which is not possible if the column
is required but module not already loaded in registry. This is the case
if for example hr_expense is installed and updating CRM.

When possible, avoid required fields on a such used model as company. In this
case we can easily consider a void value as 'no_send'.

In this commit we simply make the field not required in database but set
a required on the view itself to avoid confusion. That way behavior is still
the same, existing databases are left untouched as all keys still exist
and running tests is smoother.

LINKS

Follow up of odoo/odoo@4eeeb4f172 and odoo/enterprise@be3cfc3bab
and odoo/enterprise@227da38f9a .

Task ID 2207180
Community PR odoo/odoo#46601
Enterprise PR odoo/enterprise#8903

closes odoo/odoo#46889

X-original-commit: 1c289d8692e0cdff25b08988994820af655cb289
Related: odoo/enterprise#9013
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2020-03-04 13:47:45 +00:00
Samuel Degueldre 4e14151465 [FIX] web_editor: stop media-dialog from loading all db attachments
Before this commit, the media-dialog was reading all attachments that
matched certain criteria for each tab. On large databases, this results
in the search_read call timing out, preventing the media-dialog from
opening and making all images and documents un-editable.

One unfortunate consequence of this is that we can no longer use the
firstFilter and lastFilter features, as those rely on fetching all
records and sorting them client-side, as such, this feature has been
removed entirely.

task-2198527
closes https://github.com/odoo/odoo/issues/43113

closes odoo/odoo#46895

X-original-commit: 1e91a89b78ff6019c6120c73ea1eab09b3d58d2f
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-04 14:31:06 +00:00
Jeremy Kersten 67868583ac [FIX] web_editor: avoid traceback on error
Revert of old editor (35b6182) has reintroduce code invalid.
Now the data is wrapped in message (f8fe314e7)

Remove guarded that raise a warning, it is the default behavior now.

closes odoo/odoo#46870

X-original-commit: 9d3a2903fd7bf946c033ec78e959e3ed86754845
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2020-03-04 12:34:31 +00:00
Rémi Rahir 9f2b2ed130 [FIX] partner_autocomplete: image.mixin on partner form
The m2o widget did not provide the correct default context key.

closes odoo/odoo#46888

X-original-commit: d59ebe634f3d9f89d493ca38418513bea24f3ba9
Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2020-03-04 13:25:14 +00:00
Paul Morelle 35a7d113af [FIX] base_iban: fix display of IBAN validation
Before this commit, the IBAN number was showing behind the X or V of the
validator.

This commit adds a class on the input when the validator is added, so
that a padding is set on it. The result is that the IBAN text doesn't
show behind the validator any more, once it has been displayed.

closes odoo/odoo#46859

X-original-commit: 0b2c40dbe0df2802b6a1d2969b4e6651a750f928
Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
2020-03-04 11:26:00 +00:00
Goffin Simon 2fcff8dee1 [FIX] base: China Layout in Reports
Format taken from: https://en.wikipedia.org/wiki/Address#China

opw:2206707

closes odoo/odoo#46847

X-original-commit: 89d29ac8c1201bb4d4213d054f43ad563ea9367e
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
2020-03-04 10:39:36 +00:00
Aaron Bohy 1af097db51 [IMP] web: display CompanySwitcher next to UserMenu
Task 2186309

closes odoo/odoo#45169

Related: odoo/enterprise#8376
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-03-04 09:56:40 +00:00
Aaron Bohy f159608e02 [IMP] web: remove caret from systray items
The UserMenu and CompanySwitcher still had a caret, whereas all
other items don't. For the sake of consistency, this commit
removes the caret for every items.

Task 2186309
2020-03-04 09:55:04 +00:00
Kaushalya Mandaliya 97cd3c98cd [FIX] web: list: set proper width for the handle widget
Before this commit, when creating the first record in an editable
list (displaying no content helper), the width of the handle widget
cell was correct while the row was in edition, but it was reset to
0 as soon as the record was saved.

There are two places where this issue occurred: Journal Groups
(Accounting) and Ticket Type (Helpdesk).

After this commit, proper width will be set for the handle widget
in the editable listview on the first record creation.

task-2166338

closes odoo/odoo#46846

X-original-commit: 28b06e78b4940d3b6feb23c77c7de3441a50c0dc
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2020-03-04 10:37:25 +00:00
Ankita Raval 65513ef3f9 [IMP] mrp: mrp_document
Purpose:
Modernizes and facilitates files upload in manufacturing app.

In this Commit:
  - Show the image in Kanban.
  - Allow to access a preview of the file when clicking on it in the
    Kanban view.
  - Add a 'Edit', 'Delete' and 'Download' in kanban card dropdown menu.
  - Add Upload button in control panel to upload document which will
    create new record of `mrp.document` and also add a testcase for it.

task-1960733

closes odoo/odoo#42168

Related: odoo/enterprise#8977
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2020-03-04 10:12:46 +00:00
William Henrotin a56a4f8aee [MOV] tools: put _neuter_mimetype from Document app
This method will be used later in other module(s) than Document.

Task : 1960733
2020-03-04 10:12:04 +00:00