Commit Graph
140847 Commits
Author SHA1 Message Date
MaxLarue c67ec927fc [IMP] project: show stage description in task kanban
We now use the 'group_by_tooltip' mencanism to show stage
description when 'hover' the name of a stage in the kanban
of project.

Task-2065079
2019-09-17 06:51:23 +00:00
MaxLarue 049d6616e9 [IMP] sale_timesheet: timesheet list from sales order
This commit ensure that the list view is shown when the user wants to
see the timesheet of a sales order. Indeed, the action used adds group
by and grid view (enterprise), which was not usefull for end user to
get a complete overview of the timesheets linked to that SO.

Task-2065079
2019-09-17 06:51:23 +00:00
MaxLarue 21a51d04c3 [FIX] sale_timesheet: display timesheeted quantity correctly on sale order
There was a stat-button on sale orders coming from a task with
timesheet that displayed the quantity of timesheets linked to the
origin task. This stat-button was re labeled with the rimesheet uom
(hours/days/...) but the field still displayed the number of
timesheets instead of the total timesheeted amount in the correct
uom.

This commit introduces a new computed field on the sale order, which
computes the amount of time on timesheets depending on the used uom.

The compute method uses the product_uom_hour record as it is the uom
in which the amount is stored on the model, that record is guaranteed
to exist as it's model unlink method was overridden to prevent
removing working-time uom.

Task-2065079
2019-09-17 06:51:23 +00:00
RomainLibert dde0746725 [FIX] web: avoid having context twice
In case the context was manually passed to report_download, #36839
would pass the context keyword argument twice to report_routes.

That is not allowed in python so we update the current context with the
custom context from the report and pop the custom context from the
arguments

closes odoo/odoo#36989

Signed-off-by: Romain Libert (rli) <rli@odoo.com>
2019-09-17 08:52:56 +00:00
Raphael Collet a6ec6ca0e2 [FIX] models: do not prefetch forbidden fields in read()
closes odoo/odoo#36985

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-09-17 08:36:44 +00:00
svs-odoo f5e04ee4b4 [IMP] stock: default company on SN/LN receipt
When creating a new SN/LN from a picking of receipt type, adds a default
`company_id` in the context.

closes odoo/odoo#36972

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-16 15:07:01 +00:00
Ravi Gohil b252ffb13f [IMP] l10n_lu: various improvements
- fixed typos in account names and it's translation for German and French
- set default stock input/output valuation accounts for product categories
- corrected default expense account
- added two reconcile models: Bank Fees, Cash Discount
- fixed typos in account tax report and improved sequence(will show first base amounts then tax amounts)
- deactivated few taxes and improved few tax labels
- correctly translated account names in German and French according to official PCN2020 document

closes odoo/odoo#36963

Task: 1917932
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-09-16 13:27:19 +00:00
fja-odoo 6b73ab03f8 [IMP] website: add swap parameter to fonts import URL
Google fonts now support custom font displaying, which allow us to
swap the font when it is loaded. Especially useful for high latency
connections.

Ref: https://addyosmani.com/blog/google-fonts-font-display/

task-2069043

closes odoo/odoo#36696

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-17 08:16:18 +00:00
Jigar Patel 9c8c8c4c8b [IMP] web: SearchView: "see result" button should be over the opened dropdown
In mobile search view, filter dropdown was overlying upon
'see result' button.

This button should be over the opened dropdown to make it
visible properly.

Task ID : 1987223

closes odoo/odoo#34022

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-09-17 08:51:21 +00:00
Antoine Prieels 79ad17a7ff [FIX] hw_drivers: No connected display
In the latest version of Raspbian, when no display is connected to the
HDMI port, "tvservice -n" finds a display named "Unk-Composite dis".
Therefore, the `distant_display` was not created.
2019-09-13 09:00:50 +00:00
Antoine Prieels 43387468fe [FIX] hw_posbox_upgrade: Max width for commit msg
The upgrade page shows the last commit that is present on the box. If
the message commit was too long, the layout was broken.
2019-09-13 08:25:11 +00:00
Jinal Patel 8f44c85932 [IMP] mail: increase font size of exception warning
task-2071103

closes odoo/odoo#36814

Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
2019-09-13 07:36:36 +00:00
Raphael Collet 4596734d60 [FIX] sale_coupon: missing sudo() in modified()
closes odoo/odoo#36909

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-09-16 08:31:23 +00:00
Samuel Degueldre 2b22c2c888 [FIX] account: set default journal_id on email alias entries
PURPOSE:

Journal entries created through an email alias should go in that
journal.

linked to task-2067097

closes odoo/odoo#36836

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-13 08:51:57 +00:00
Josse Colpaert acf82a8ceb [IMP] l10n_ie: adapt manifest to states in base
closes odoo/odoo#36936

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-09-16 10:35:30 +00:00
Josse Colpaert d4a4d0a28e [FIX] l10n_ie: csv needs :id in header 2019-09-16 10:31:10 +00:00
Odoo's Mergebot b995cd47bb [IMP] web: SearchView: Allow user to quickly search on mobile
Currently the search panel is nice for a search with filters but
that was not 100% efficient for simple research without filters.

The Search is now integrated in the form view, with the ability
to open the Search panel to apply filters or group by.

Task ID : 1924760

closes odoo/odoo#36183

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-09-16 19:13:39 +02:00
Adrien Dieudonne 3b3d35e8b9 [IMP] web: SearchView: Allow user to quickly search on mobile
Currently the search panel is nice for a search with filters but
that was not 100% efficient for simple research without filters.

The Search is now integrated in the form view, with the ability
to open the Search panel to apply filters or group by.

Task ID : 1924760
2019-09-16 15:11:28 +00:00
Adrien Dieudonne 8bef7af307 [REF] web: control_panel: breadcrumb and cp_searchview flexible width
1) The size of the left part of the control panel will take free
space left. Normally, the width is always fixed to 50/50 but
now the breadcrumb can take more or less space if needed.
It will be useful on mobile where the search bar is dynamically
sized.

2) Control panel elements are split into two divs;
- breadcrumb and search bar are grouped to be in the top.
- buttons (o_cp_left) and pager (o_cp_right) in the bottom.
Now we can easily add antoher elements in the top or bottom
part of the control panel.

3) Control panel template is likely the same on mobile so
they are now merged.

4) Before this commit, we always had an empty parent even if
the search bar wasn't rendered. Removing it makes the DOM cleaner.
Because of this, we are not able to expose this area used to add
custom elements. Some code need to be adapted.

Task ID : 1924760
2019-09-16 15:11:28 +00:00
Xavier-Do fc5934dc45 [FIX] base: fix rte translator timeout
In some cases, after installing a new language in rte_translator tour,
some query using ir_translation table will become very slow.

Identified query:
SELECT res_groups_users_rel.uid, res_groups_users_rel.gid
FROM res_groups_users_rel, "res_groups" LEFT JOIN "ir_translation" as "res_groups__name"
ON ("res_groups"."id" = "res_groups__name"."res_id"
AND "res_groups__name"."type" = 'model'
AND "res_groups__name"."name" = 'res.groups,name'
AND "res_groups__name"."lang" = 'en_US'
AND "res_groups__name"."value" ! '')
WHERE 1=1 AND res_groups_users_rel.uid IN (2) AND res_groups_users_rel.gid = res_groups.id
ORDER BY COALESE("res_groups__name"."value", "res_groups"."name")    OFFSET 0´

During post_install this query will become slower (between 0.7 and 2 seconds) ~50%
of the time, when this usually take less than 0.1 second.

For some tour step, this query is executed several times, making a simple
/web loading going from less than one second to more than 10 second, breaking the tour.

The main intuition behind that would be that the query plan completely fails,
mainly because postgress is to busy and doesn't have time to launch an analyse
when runbot load is high.

This commit proposes to execute a manual ANALYZE on ir_translation table
after a new language is installed. Tested with 40 builds, rte_translator never failed
with this fix.

closes odoo/odoo#36954

Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
2019-09-16 13:33:04 +00:00
Xavier-Do b57b194f6c [REV] core: revert 6a366b21
6a366b21 was aiming to uniquify translations, this is not usefull
anymore because of unique constraints added on ir_translation table.

Removing the subselect slightly improve performances.
2019-09-16 13:28:59 +00:00
Christophe Monniez 698a68614c [FIX] website: move rte_translator test to post install
When executing test on an existing database with other module installed,
browser_js test tends to crach because not all models are available
in registry. A wip will force all js test to be executed in post_install.

This will also have a side effect that make rte_translator test
fail randomly more often since more module are installed, fix is done
in next commits.
2019-09-16 13:28:30 +00:00
Martin Trigaux be5d48ef1d [FIX] *: correct typos, improve wording
Courtesy of translators

closes odoo/odoo#36953

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-16 13:45:52 +00:00
Lucas Lefèvre ac00548b28 [IMP] web: Export list view as XLS file
Purpose
=======

Have a quick export feature.

The current export wizard is quite complex.
We want to be able to quickly export a tree view,
with the group by correctly represented, depending on the fields
visible in the list view.

Specification
=============

Add an "EXPORT (XLS)" button in the list view (a little download icon)
- export only columns visible in list view
- export all the records
- while respecting the group by

This should be a generic feature but should be applied to all
the account.move.lines list views.
account.view_move_line_tree_grouped_sales_purchases
account.view_move_line_tree_grouped_bank_cash
account.view_move_line_tree_grouped_misc

Task 2031835

closes odoo/odoo#36943

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-09-16 13:57:40 +00:00
Cedric Snauwaert 35cbb430ce [FIX] account: fix focus problem in manual reconciliation
Previously when opening the manual reconciliation widget with several lines, trying to put the focus on another line by clicking on the grey line was not working due to a o_field_widget with the partner name taking all the line and there is an event on that o_field_widget that stop the propagation of the event.
Also changing the partner value was only changing the value in the grey zone and not in the other field.
Therefore as it was strange to have twice the name of the partner display one above another and that it was causing problem for the focus of the widget. We removed the name of the partner that was readonly (leaving the editable field where we can change it) and we replaced it with the name of the account which makes more sense.

closes odoo/odoo#36881

Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2019-09-16 14:36:02 +00:00
Patrick Hoste 545b00ee79 [IMP] mass_mailing_sms: fix various issues and ease marketing automation integration
Including

  * allow to keep archives when performing a mass sms. This performs a log
    in mass in addition to sending SMS in batch, which could slow your
    sending;
  * move writing on failed traces in its own method to ease inheritance in
    marketing automation sms;

Task ID 2053632

closes odoo/odoo#36503

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-16 09:51:53 +00:00
qsm-odoo 4de72155c3 [REF] point_of_sale: remove dead code
Commit https://github.com/odoo/odoo/commit/f337496eba58841d9fe2e94367f0450eaf0fa240
left lots of dead code behind. See also https://github.com/odoo/odoo/pull/36133
which this PR depends on (had to wait forward-port before merging this).

Discovered while working on task-1942370

closes odoo/odoo#36136

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-16 15:03:40 +00:00
William Henrotin 0350a93c2d [FIX] mrp: change production graph view
The mrp_production graph view group records by date_deadline. This
date is optionnal so the graph view could missed some records if the date
is empty.
This commit change it by a required one (date_planned_finished) in order
to display all productions

closes odoo/odoo#36939

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-16 12:00:13 +00:00
Pierre Paridans f230b5c71a [FIX] point_of_sale: missing costumer facing display's check
Some calls to send_current_order_to_customer_facing_display() method
miss the check to the POS config's iface_customer_facing_display
property, resulting into an error during the rendering of the template.

This bug was introduce by odoo/odoo@5d0afddaf2

closes odoo/odoo#36916

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-09-16 10:31:17 +00:00
fja-odoo e33172e832 [IMP] website_sale, *: keep track of products viewed
*= website, website_livechat, website_rating

///// Tracking Product /////

Now when a user browse products in eCommerce, we keep track of the
products he looked at. We use the website_visitor
to store the products viewed. A cookie is added with a TTl of 30 min it
will prevent the RPC for that time. We track the page only if the
product view is tracked.

The recently viewed products are displayed as a snippet but also
with the customize option in product pages of website_sale.

Products that are in cart will not be returned as recently viewed.

It is possible to add a recently viewed product to the cart directly
from the carousel, it will not redirect to the cart. If we are on the
cart page, the product is displayed in the cart.

The Visitor page in website now references products viewed

///// Tracking Page /////

Feature to track a view was remove in: https://github.com/odoo/enterprise/pull/4834

That feature is now reintroduced and will use website_track instead of
leads to be stored.

The track field is now on the view instead of the page.

url field is added to website.track, it will store the url for pages and
views

The Visitor page in website now references urls viewed

Add some tests

task-1984575

closes odoo/odoo#35810

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-09-16 09:38:53 +00:00
oco-odoo 1bc4c1697f [IMP] account: rename the button opening the accrual widget, for usability
closes odoo/odoo#36931

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-16 11:21:01 +00:00
Pierre Masereel 58e33891c3 [FIX] point_of_sale, pos_restaurant: pos order name
When a pos order is synched, a name is sent from client so, it has a
sequenced name after creation, which is overriden when a write on an
existing order is done.

So we are only setting the sequenced name when an order is paid to avoid
gap in sequence.

closes odoo/odoo#36933

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-09-16 11:02:44 +00:00
wan e022d94f10 [IMP] account: hide empty source document
If we don't want the user to write in invoice_origin, then we should hide it when empty. It's weird to show an empty field that no one can edit.

closes odoo/odoo#36923

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-16 10:30:21 +00:00
Simon Lejeune e0cf0dd792 [FIX] stock_landed_costs: account move view
The landed cost model is limited to the warehouse manager, so displaying
the view changes on account move did not make sense for all users plus
it broke the creation of invoices for account users.

closes odoo/odoo#36914

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-16 09:07:18 +00:00
Simon Lejeune bda5fa4372 [FIX] stock: assign serial icon
Using classes and inline style break the list view if the button has a
0 width

closes odoo/odoo#36443

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-11 12:39:51 +00:00
Jinal Patel 86b71e45db [FIX] stock,mrp_subcontracting: set width 0 to button on stock.move
task-2060806
2019-09-10 05:09:50 +00:00
Jinal Patel d5251f8966 [IMP] stock: rename string 'Initial Demand' to 'Demand'
task-2060806
2019-09-10 04:52:13 +00:00
oco-odoo 7c25f20ef6 [IMP] account: add pdf attachment to the demo bank statement
So that it can be visible in the groupby view, in enterprise.

closes odoo/odoo#36910

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-16 08:29:28 +00:00
Julien Castiaux 7c47eb1854 [IMP] module.py: deprecate openerp
[PEP-594] is deprecating the `imp` module, that module is used in
`module.py` in order to dynamically import addons using any of the
`odoo.addons` or `openerp.addons` import anchor.

We are deprecating `openerp` module/addons imports in v13 in order to
remove the support in v14 and greatly simplify how modules/addons are
loaded. If you are still using the old `import openerp` or `import
openerp.addons`, `import odoo` and `import odoo.addons` are drop-in
replacements.

The `odoo.modules.module.ad_paths` addon paths list has been deprecated
too. The list is now accessible on `odoo.addons.__path__` where they
are now directly loaded [2].

See also:

[PEP-594]: https://python.org/dev/peps/pep-0594/
[2]: https://packaging.python.org/guides/packaging-namespace-packages/

closes odoo/odoo#36597

Task: 2003936
Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-09-16 09:31:38 +00:00
Julien Castiaux 760ab74f83 [FIX] *: replace openerp addons import by odoo
Importing addons using the `openerp` anchor is depreciated by #36597
2019-09-16 09:31:38 +00:00
Pierre Masereel fd9875adad [FIX] l10n_fr_pos_cert: fields used for hash
When the hash is generated for a pos order, it is computed based on some
fields, there was the field statement_ids that doesn't exist anymore,
and so we replaced it by payment_ids which is the new field.

closes odoo/odoo#36912

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-09-16 09:02:01 +00:00
Kevin Baptiste bb55743b84 [FIX] hr_timesheet: improve timesheet in hr profile
Before this commit, the Timesheets fields in the profile were taking
the full width of the profile which was not nice.

closes odoo/odoo#36901

Taskid: 2072007
Signed-off-by: Romain Libert (rli) <rli@odoo.com>
2019-09-16 06:46:16 +00:00
laa 443b44c971 [IMP] website_slide: add toggle button achievement
Add an option to add the latest achievements in the right sidebar.

closes odoo/odoo#36870

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-13 13:05:31 +00:00
Katherine Zaoral a9b7628706 [REF] l10n_ar, l10n_latam_base, l10n_latam_invoice_document: adjustments
l10n_latam_base:

* update translations
* extend manifest
* update manifest, delete new menus/fields/models from manifest

l10n_latam_invoice_document:

* update translations
* remove filter journals for recipts
* make method private
* extend manifest
* update manifest, delete new menus/fields/models from manifest
* misspelling error in ValidationError
* fixup missing change apply before merge/rebase

l10n_ar:

* make method private
* update translations
* catch error when stdnum.ar.format
* fiscal position with criteria diff from Responsibility
* Install AR CoA now set properly the company values.
* add meaning of CUIT when mentioned in code.
* unse a simplier elif and less conditions to evaluate
* only get concept for invoice lines that are not section/note
* remove TODO comments, this will be not implemented in this version
* update to sincular al the AFIP POS System options
* return match responsability type directly
* improve of manifest
* reference to tax group
* remove old not used file fot tax report
* update comments from spanish to english
* only set afip serive date when post the account.move
* unused file
* sum recordsets instead of union
* method name and remove log
* update manifest, delete new menus/fields/models from manifest
* Simply extra steps when loading AR COA: check directly
  get_ar_responsibility_match in order to apply the extra verifications
  and the extra configs in the company
* update demo refences to new demo for odoo
* return missing fix about _l10n_ar_create_document_sequences
* fixup missing change apply before merge/rebase
* set journal data as no update data.

closes odoo/odoo#36137

Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-09-13 15:22:13 +00:00
Juan Jose Scarafia 707af7555a [FIX] account: fix link between tax and accounts on chart install
Formally, when I try to install a chart of account that have parents the new expenses/income accounts created don't have the proper taxes linked.
This is case was because the expense/income accounts where created on the parent chart and the taxes on the last chart being installed.

With this modification we fix that and we improve the way it's done by:
1. Doing it only once when all the accounts has been created.
2. We don't write into the account.account.template on each iteration, we just write onto accounts that is where we need it to be done
2019-09-13 15:22:12 +00:00
Raphael Collet b318dda826 [FIX] models: create with company-dependent fields
This fixes 957c78b98f to make it
compatible with 55e1b44492.

Upon record creation, we do not set a company-dependent field when its
value is the same as its default in `ir.property`.  Here we take into
account that `field.default` does not necessarily return that value.

closes odoo/odoo#36905

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-09-16 08:18:42 +00:00
wan a70aed9fbe [FIX] account: concurency in reconciliation at blur proposition
The function _blurProposition returned a promise that was causing
concurency in the function quickCreateProposition. The _computeLine from
_blurProposition was erasing the value of reconciliation_proposition
created in quickCreateProposition.
However, the _blurProposition was didn't need to call _computeLine as it
was called later.

closes odoo/odoo#36904

Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
2019-09-16 08:15:54 +00:00
Pierre Masereel d76f49b3ac [FIX] delivery: delivery slip hs code
The variable that was setting the has_hs_code is set in the array
'stock_move_table' which has a t-if on the state to check it's not done,
so if the state is done, the variable is no set and hs_code never shown.

So we've put the variable in the begining of the report.

closes odoo/odoo#36902

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-09-16 07:49:14 +00:00
qsm-odoo aa9db571e3 [REF] web_editor: update the cropper library
Just after we first added the library in Odoo (in april 2018), the
library was released in its last and deprecated version (4.0.0). At the
same time, the author indeed split its 'cropper' library into 2 parts:
'cropperjs' which is the core of the original library without jquery
and 'jquery-cropper' which is a jquery wrapper of the 'cropperjs'
library. This commit updates our code to use the latest version of those
two libraries.

Note: the commit also removes the lazy loading of the library which is
useless and maybe breaking since it comes with the editor assets which
are themself lazy loaded.

Note 2: we may want to remove the jquery wrapper in another update and
simply use the standard JS library.

Part of https://github.com/odoo/odoo/pull/36880
task-2059480

closes odoo/odoo#36880

Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2019-09-13 14:55:26 +00:00
qsm-odoo da95ff210d [FIX] web_editor: allow better usability to crop all image zones
Before this commit, when rotating an image so that it overflew the
cropper canvas, it was not possible to unzoom on some part of the image.

Now, with the new set of options used by this commit, the cropping zone
and the image can be moved independently allowing to do everything.

Part of https://github.com/odoo/odoo/pull/36880
task-2059480
2019-09-13 14:55:26 +00:00