Commit Graph
108666 Commits
Author SHA1 Message Date
RomainLibert d4fb89cd25 [IMP] lunch: back2basics
closes odoo/odoo#38899

X-original-commit: f4dbee9b844015e95afd5edf892489582cf1f397
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-16 16:39:16 +00:00
Lucas Lefèvre 3daec8b5fb [FIX] calendar_sms: Timezone event date in sms reminder
SMS reminders are not timezoned

closes #38243

closes odoo/odoo#38893

X-original-commit: 93d17be423d27c2e5eddf313327133082995f003
Signed-off-by: lul-odoo <LucasLefevre@users.noreply.github.com>
2019-10-16 15:02:13 +00:00
Odoo's Mergebot 75759d3173 [FW][FIX] web: Correctly aggregate values in exported parent groups
[FIX] web: Correctly aggregate values in exported parent groups
--------------------
When exporting a grouped list view with some nested groups, the aggregate value
of parent groups are not correct. It always sums aggregated values of children
whether the group operator is 'sum' or not (could be 'max', 'avg', ...).

This behavior is wrong and can even lead to a crash if the aggregated field is a
date field (e.g. with group_operator='max'). (Try two sum two dates...)

To avoid the crash a quick fix was merged 85cf47f just before OXP. This fix
limited the support of aggregates to only int and float fields.
This commit remove this limitation.

This commit correctly implements the aggregation for parent group for all
field types and all group_operator.

This commit also improves the export feature tests.

[FIX] base export: Manage False in groupby title
--------------------
Before this commit, when we export a list with a groupby on
boolean, the groupby title 'False' is replaced by 'Undefined'
in xls document.

After this commit, with an export and groupby on a boolean, we
will have correct title: True and False.

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#38896

Forward-port-of: odoo/odoo#38373
Signed-off-by: lul-odoo <LucasLefevre@users.noreply.github.com>
2019-10-17 09:08:07 +02:00
Arnold Moyaux e89c818e5a [FIX] mrp: missing cast string to date
Usecase to repdroduce:
- Create a manufactured product with route manufacture and a RR
- Run the scheduler.

Orderpoint will prepare procurement values's date as string. Other
module could possibly also use string as date and a call to from_string
will not break anything if the value is already a date or a datetime.

closes odoo/odoo#38900

X-original-commit: e4c654f8e5e768288226c725a1018ae31e8f5606
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-16 17:17:09 +00:00
Lucas Lefèvre 2bc060d13b [FIX] web: Avoid variable name confusion
The attribute `self._fields` is not well named. This is not a list of instances
of the Field class.
It is a list of field names to export.
e.g. 'journal_id', 'account_id/name'

X-original-commit: 6225ce60082d5d2b5fec0e678fe2a1f3f9b93668
2019-10-16 15:49:49 +00:00
Lucas Lefèvre 645ae69bb9 [FIX] web: Correctly aggregate values in exported parent groups
When exporting a grouped list view with some nested groups, the aggregate value
of parent groups are not correct. It always sums aggregated values of children
whether the group operator is 'sum' or not (could be 'max', 'avg', ...).

This behavior is wrong and can even lead to a crash if the aggregated field is a
date field (e.g. with group_operator='max'). (Try two sum two dates...)

The quick fix 85cf47f was merged just before OXP to avoid any crash. This fix
limited the support of aggregates to only int and float fields.
This commit remove this limitation.

This commit correclty implements the aggregation for parent group for all
field types and all group_operator.

This commit also improves the export feature tests.

X-original-commit: 5e7e4fa98698967e3c4fd0903f4aa8e91981a6cd
2019-10-16 15:49:49 +00:00
jbm-odoo e76c65e8b4 [FIX] web: Manage False in groupby title
Before this commit, when we export a list with a groupby on
boolean, the groupby title 'False' is replaced by 'Undefined'
in xls document.

After this commit, with an export and groupby on a boolean, we
will have correct title: True and False.

X-original-commit: 7e2c7bc35f2a5b3bc22e0e6c9d3b38279cda9367
2019-10-16 15:49:49 +00:00
Lucas Lefèvre e5c455f1b6 [FIX] hr_maintenance: Display equipment count of employee
In the employee form view and in the employee profile, the stat button
displaying the equipment count is wrong.
It counts the equipment owned by the user, not equipments assigned to the
employee.

closes odoo/odoo#38889

X-original-commit: 07bd725c97519a82cc76f3069614ac70b49495a3
Signed-off-by: lul-odoo <LucasLefevre@users.noreply.github.com>
2019-10-16 14:18:00 +00:00
RomainLibert 14681a346e [FIX] website_theme_install: avoid crashing if install_filename not in context
closes odoo/odoo#38888

X-original-commit: 28dce41599bf0dcef5feb17ce9a33b8ed600a55c
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-16 14:17:29 +00:00
RomainLibert 8baa8c9f59 [FIX] stock_account: avoid crashing when active_model not in context
X-original-commit: 3a70e7f91a234229b9ef84624fe3c18681545897
2019-10-16 14:17:28 +00:00
RomainLibert 9f9c989e60 [FIX] stock: avoid cache miss error in compute
We should check that we have a picking_id before calling a method that
uses `ensure_one`

X-original-commit: e9da11665fe7539bc97c92143525a311af637c3f
2019-10-16 14:17:28 +00:00
RomainLibert 206062dfa3 [FIX] sale: avoid crashing if so_line has no name
X-original-commit: 9e0f200a1e67f09b3711913a39f5389f0713743d
2019-10-16 14:17:28 +00:00
RomainLibert 063cbc99bf [FIX] fleet: avoid cache miss in compute method
X-original-commit: 1adae2e5b85f06b8f2abc38190a8650dbe0ce95f
2019-10-16 14:17:27 +00:00
RomainLibert 1debab4101 [FIX] account: avoid crashing when no active_ids
We should avoid crashing in case active_ids is not in the context

X-original-commit: b528cf82d5144073cee112fb5cc5626243c51e96
2019-10-16 14:17:27 +00:00
RomainLibert f561202d3e [FIX] account: avoid cache miss when computing currency
A compute method should always assign something to the computed field(s)

X-original-commit: f58f7b858b3daee223238c519993ccd771595ac4
2019-10-16 14:17:27 +00:00
ryv-odoo e0ba61d9fb [REM] website_links: remove favicon, icon_src for performance
The link tracker model (link.tracker) contained favicon (store)
and icon_src computed fields. Computing favicon took
{3-6.5%} of installing odoo (with demo data) due to syncronous http
call to a external link (google).
Moreover, these fields had no sense to be store in odoo
and only used in one template. This template was modified to
display the same information (icon) as before but without storing fields
and with a lazy loading of icons.

TASK_ID: 2083715

closes odoo/odoo#38405

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-10-10 15:19:43 +00:00
Lucas Lefèvre f33e7b851d [FIX] hr_org_chart: Position subordinate popover with rtl lang
With a Right to Left lang.
Go to an employee form view.
Click on the small pill with the number of subordinates (in the org chart).
The popover opens but on the right side of the window instead of next to the
pill.

Fixes #38722

closes odoo/odoo#38873

X-original-commit: 292d4e7ba6bde6970382c816e092892f64e58c73
Signed-off-by: lul-odoo <LucasLefevre@users.noreply.github.com>
2019-10-16 11:52:23 +00:00
jbm-odoo 83ab007377 [FIX] hr: Fix consitency in employee form
Before this commit:
Private email and phone are related of partner 'address' fields.
But the phone was read-only and the email is editable.

After this commit:
As phone and mail are related, they are read-only. We must edit
them on the partner of Address field.

close #38518

closes odoo/odoo#38872

X-original-commit: ed6fb25ca0671a520c9d003a58eefefcf93dbc1a
Signed-off-by: jbm-odoo <jbm-odoo@users.noreply.github.com>
2019-10-16 11:52:06 +00:00
jbm-odoo c0bbd2fc24 [FIX] web: Kanban height with few element and searchpanel
Before this commit:
When there few elements in kanban and a search panel, all kanban
cards try to take a maximum of height and become deformed.

After this commit:
The behaviour of dimensions of kanban cards must be the same with
or without searchpanel.

closes #38556

closes odoo/odoo#38871

X-original-commit: a95cbbd631a2fa9be62eb42cba43e853fdf4b789
Signed-off-by: jbm-odoo <jbm-odoo@users.noreply.github.com>
2019-10-16 11:51:46 +00:00
wan e00532ffb9 [FIX] account: badly formatted reconciliation proposition
When a reconciliation proposition's amount is computed from a regex, we
cannnot be sure the regex captured something. If it didn't we don't want
to display a badly formatted line so we set the amount to 0.

closes odoo/odoo#38870

X-original-commit: 111495795b6cdc53312096078033804dbbfe57f2
Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2019-10-16 11:51:27 +00:00
fw-bot eaa094285e [FIX] l1n_pe: forward-port of fixes to l10n_pe
base_vat: Correct management of the check of peruvian VAT without prefix.
l10n_pe: Correct income account the last one is not correct.
l10n_pe: Forced Round globally for peruvian companies once l10n_pe is
installed, and with the onchange.
l10n_pe: For peruvian companies it does not make sense a sequence per
year and the year in the prefix is incorrect, we must force XXX- as
a sequence prefix.

closes odoo/odoo#38854

Forward-port-of: #38764
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-10-16 11:37:28 +00:00
Arnold Moyaux cddf577abb [FIX] mrp_subcontracting: records components on existing line
In a barcode environemtn or a situation with a lot of stock.move.line
the subcontract is hard to use with record components because a line is
created each time the produce wizard is proccessed. Then each line is
duplicate, one with reservation and the other with effective transfer.

This commit try to merge them in order to limit the number of lines.

Task 2073383

closes odoo/odoo#38689

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-16 07:58:12 +00:00
Arnold Moyaux b5ecbd5b5c [FIX] mrp_subcontracting: show lot name
Usecase:
- Set details operations on picking type
- Create a receipt for a subcontracted product with tracked components
- Records production
- Go to details operations

The move line is created however the lot name is invisible.
It happens due to produce_wizard line creation. It will set the lot_id
but the field lot_id is invisible if the picking type use the option
'use_create_lot' and uncheck 'use_exisiting_lot'

In order to fix it set both lot_name and lot_id after the produce
operation.
2019-10-16 07:58:12 +00:00
Arnold Moyaux ec5e63cf80 [FIX] mrp_subcontracting: correct type for view registry
When the action is called by a javascript function the view
is not correctly rendered because the tree type does not exist
in the registry but the correct type is list.
2019-10-16 07:58:12 +00:00
qsm-odoo 9a07523e7b [FIX] web_editor: display snippet options in the correct order
closes odoo/odoo#38862

X-original-commit: 0a3966235f8d02b7d11fddeee7e4d71c64076a3c
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-10-16 10:06:24 +00:00
Géry Debongnie 258a04664a [IMP] web: increase file limit from 25mo to 64mo
The fieldbinary widget has an internal max upload limit set to 25mo.
This was set a long time ago, probably more than 5 years ago.  Since
then, a lot of things have changed and it may be more frequent for users
to hit the limit.  And it happens for some users, we had to increase
locally their limit.

Also, nginx is configured to accept files up to 64 mo, so it makes sense
that the web client also uses that same limit.

closes odoo/odoo#38856

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-10-16 09:25:09 +00:00
Hetal Dhanak ca3e898481 [IMP] purchase, purchase_requisition: supplier.info tree view
* use an editable tree to edit the supplier info
* keep the original forms because they're used in the "vendor pricelist"
menuitem
* updated tour
* change the position of requisition_id

Task-2029380

closes odoo/odoo#35972

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-16 09:44:51 +00:00
Quentin Nicolay d59b67a915 [FIX] web: add 'no_edit_color' option to many2many_tags
This option, if set to True, prevents the user from modifying the
color of the tags.

Part of task 2070454

closes odoo/odoo#38848

X-original-commit: a62b65a8f9114493064d4efae92825814a880c04
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-10-16 08:26:10 +00:00
William Henrotin 644663eb4a [FIX] mrp: rework of workorder planning
This commit redo the way workorders are planned on their workcenter
calendar. The resource_calendar_leaves introduced in 0679d0d is now linked
to the effetives dates (date_start and date_finished).
The planned dates copy their information onto effective date at the
workorder plannification or any modification before the actual production
(state = draft, pending or ready)

This way, the gantt view and calendar view display either the plannifaction
slot if the production isn't started yet and the effective production
time if it's done. The plannification is also impacted by validating
a production sooner than expected or cancelling it. In the first case,
the date_finished is set at 'now' and in the second case, all the dates
are emptied. The futur workorders will be planned on the newly recover
time slot.

This commit also fix the button_start() method that always rewrite the
date_start even if the production had already been started.

Task : 2082442

closes odoo/odoo#34038

Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
2019-10-16 07:34:15 +00:00
William Henrotin e8a3fb9a0b [IMP] mrp: block usage of duplicate serial number
With this commit, the manufacturer will now be noticed earlier in
the process if he produced/consumed a serial number already produced/consumed in a
previous production. Before this commit, an error was triggered as
well but only at the very last step of the production.
This leaded to two issues :
 - The user had to unlock-edit-lock to update the wrong serial number
 - On large production, it was difficult to figure out which was/were
   the product(s) to fix.

The search on previous production is done each time the produce wizard is closed
or once the production is done on a workorder

Task 2002133
2019-10-16 07:34:15 +00:00
Arnaud Baes 1f1727c2e1 [IMP] mrp_subcontracting: Set subcontracting location a child of physical locations.
closes odoo/odoo#33490

Taskid: 1873106
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-16 06:09:02 +00:00
Arnaud Baes c8c500c64d [IMP] stock: Hide transit locations
All transit locations were set as active by default, confusing some users.
There are now set as active only when when a ressuply route is created
between some warehouses

TaskID: 1873106
2019-10-16 06:09:02 +00:00
Jigar Patel d0392a2f15 [IMP] stock: remove the "products" statbutton from the location form view.
It's purpose was redundant with the action listed in the
"actions" drop-down menu of the location view form

TaskID: 1873106
2019-10-16 06:09:02 +00:00
Jigar Patel 01f5550ee2 [IMP] stock: Rename default locations labels
TaskID: 1873106
2019-10-16 06:09:02 +00:00
Jigar Patel 316d5afdd3 [IMP] stock: add hierarchical view for stock location 2019-10-16 06:09:02 +00:00
Lucas Perais (lpe) f703271c0a [FIX] account: reconciliation widget fetch correct reconciliation models
Have a reconciliation model that applies to some particular journals
And that will match some of those journals' lines
The field journal should be filled too
(this field is only the default journal that a proposition will be filled with)

Open the reconciliation widget on a given journal, within the list of
possible journal (from the account dashboard)

Before this commit there was a crashed. This was caused by the fact that
one of the lines that should be displayed had a reconcile model that was not fetched beforehand

After this commit, there is no crash as all relevant reconcile
models are fetched

Note that, on reconcile models, the field journal_id is just there to prefill
the propositions it will create

corrects commit e5c8071484

OPW 2084942

closes odoo/odoo#38836

X-original-commit: c285d578cc497044e819c62d42373c29f87b1e93
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-10-15 17:39:43 +00:00
Olivier Donyand@alexkuhn ae82f17cc9 [FIX] bus,im_support: adapt im_support to bus changes
The im_support module was broken in 12.0 after bus refactorings between
11.0 and 12.0.

closes odoo/odoo#38838

X-original-commit: db37e0cedcd0da46bd57686a076a8165e60d6c3b
Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Co-authored-by: @alexkuhn
2019-10-15 17:43:19 +00:00
Katherine Zaoral 252ae54c59 [FIX] l10n_ar: Properly compute fiscal position for Argentinian
companies.

We revert the change we apply in order to let the user to define their
own fiscal positions, now the fiscal position will be set depending on
the afip responsability.

With this change we fix the error that the fiscal position is properly
setted for the customers that are of type "Responsable Inscription" and
"Consumidor Final".

Before this change the "Compras / Ventas en el Exterior" fiscal position
was wrongly seted, now the fiscal position is leave empty so the related
invoice taxes are properly matched

closes odoo/odoo#38830

X-original-commit: 74f172041351e03f60b1aff0f0eb925e896cd1fa
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-10-15 16:47:01 +00:00
Martin Trigaux a0cd964c55 [FIX] event: print registrations without name
Before this commit, trying to print a registration without a name
specified (not required), was failing

Fixes odoo/odoo#38564

Replace and closes odoo/odoo#38582
Courtesy of Swapnesh Shah

closes odoo/odoo#38821

X-original-commit: a21a81e98c569098d254781318b0030f30b02181
Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-10-15 15:17:17 +00:00
qsm-odoo b2a403efc7 [FIX] website_blog: make latest posts snippet multi-website aware
The snippet was using the posts of all websites and blog post creation
was suggesting all blogs. Now:

- On blog post creation only suggest the blogs of the current website
- In latest posts option, only suggest blogs of the current website
- In any case, latest posts only displays posts of the current website

Part of https://github.com/odoo/odoo/pull/38510
Related to task-2083198

closes odoo/odoo#38794

X-original-commit: 4be97b48861a6631fe465054c62baea65bfc1524
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-10-15 12:55:04 +00:00
qsm-odoo 93834a55e6 [FIX] website_blog: use viewref when rendering latest posts template
Indeed, a theme can declare its own latest posts template so it would
crash with ref instead of viewref.

Part of https://github.com/odoo/odoo/pull/38510
Related to task-2083198

X-original-commit: 755944f6b88b069515881c9ec58e72e7a0cdd762
2019-10-15 12:55:04 +00:00
wan 775b1156e3 [FIX] account: allow to reverse multiple moves at the same time again
The way the active_id(s) were retrieved made the wizard only take care
of one active_id. This prevented from reverse multiple invoices at the
same time.

closes odoo/odoo#38537

Fixes: #35759
X-original-commit: fe47011c3fdcec0bda5334f10679e853fe41e45a
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-10-11 17:42:20 +00:00
Arnaud Joset 85785187e6 [IMP] payment: group payment_ref and amount in payment_link wizard
payment_ref and amount are small fields that does not render well in large fields.

closes odoo/odoo#38287

Taskid: 2059972
Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-10-11 12:55:48 +00:00
Arnaud Joset 92c26dff56 [IMP] web: CopyClipboardCharLong widget for long strings
- The copy CopyClipboardChar widget is not nicely rendered for very long strings (e.g. URL).
 - This commit modify the behavior of the CopyClipboardChar widget to display it nicely win such cases.

TaskID: 2059972
2019-10-11 12:44:47 +00:00
svs-odoo f55adeaf34 [FIX] account: rename Suppliers into Vendors
For more consistency, as the menu item calling the corresponding action
is named "Vendors".

closes odoo/odoo#38783

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-15 10:47:20 +00:00
Yenthe666 485e3a7959 [IMP] website_crm_partner_assign: make partner level name required
closes odoo/odoo#38773

X-original-commit: dfc6d3ffb6813d5e7144c6b8e34f43f01e1de4ed
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-10-15 09:16:55 +00:00
Christophe Simonis 602f2ac529 [FIX] hr_holidays: force empty value in xml declaration
Ease module upgrade.

closes odoo/odoo#38757

X-original-commit: df680ad12d3bd46efe35a755ca46cf2b13148380
Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-10-15 07:09:16 +00:00
Lucas Perais (lpe) 2f40948022 [FIX] website: oe_no_empty only in edit mode
Test case;
The user as edition rights on the website
Install quotation builder
Have a sale order with many lines
Click preview > you end up on the portal view

Before this commit, there was a blank space just before the
sale order lines per se
This was because the sale order's lines website description
were in the dom and took some fixed space, which is a feature
meant for the edit mode by using the class oe_no_empty

After this commit, we restrict the effect of that class concerning
the fixed height only to edit mode
There is no more gaps in the sale order preview

In master, one should check whether the class / rule is still relevant

OPW 2082267

closes odoo/odoo#38435

X-original-commit: 4b177412235cdf3e62f5ff30c18246c003c25cc2
Signed-off-by: Lucas Perais (lpe) <lpe@odoo.com>
2019-10-10 16:47:03 +00:00
Joseph Caburnay cb68960d49 [FIX] point_of_sale: delete pos.config
Since the ir.sequence records linked to pos.config records are on
delete restrict, it is necessary to delete the pos.config records first
before deleting the ir.sequence's linked to them.

closes odoo/odoo#38775

X-original-commit: cdfa415829fa06f2860d65054fd8534180c8526a
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-10-15 09:17:12 +00:00
Simon Lejeune 38711e9f9c [REF] repair: multi company
task-2081645

closes odoo/odoo#38294

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-10-15 08:49:24 +00:00