Commit Graph
130247 Commits
Author SHA1 Message Date
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
oco-odoo 3162fb7f2f [IMP] account: don't display "preview" button on bills
closes odoo/odoo#36876

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-13 13:56:50 +00:00
oco-odoo 610e558dfb [IMP] account: bank statement form: add optional field "account number" in statement lines' tree view 2019-09-09 13:29:06 +00:00
oco-odoo e5e9a9c9aa [IMP] account: always display company_id field in invoice form when in multi companies 2019-09-09 12:57:31 +00:00
Lucas Lefèvre b707a5fd0b [FIX] hr: Open department employees with searchpanel
From the department kanban view,
when clicking on the "Employees" button of a department,
it shows all employee regardless of their department.

This is a consequence of the back2basics commit 9a0fedf
which removed the department filter and added a
search panel instead.

This commit changes the search default filter
to a default filter for the searchpanel.

closes odoo/odoo#36635

Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
2019-09-16 07:29:43 +00:00
Aaron Bohy 127be68cca [FIX] web: do not disable searchpanel on button clicked
Before this rev., the searchpanel was automatically disabled (not
present) in actions obtained by following links or buttons (e.g.
stat buttons).

This rev. removes this constraint, but adds the possibiliy to
disable it by setting key 'search_panel' to false in the context.

Note that in this case, the active categories are never retrieved
from the local storage (i.e. the last one set). If no default is
given, 'All' is simply selected (no domain).

Task 2069310
2019-09-16 07:29:43 +00:00
RomainLibert 2500db4213 [FIX] hr_contract: make company_id visible in multi company
This field was added a second time in enterprise with the multi company
group defined on it.

closes odoo/odoo#36875

Signed-off-by: Romain Libert (rli) <rli@odoo.com>
2019-09-13 13:15:52 +00:00
Martin Trigaux 322618a69c [REF] product: do not translate product name categories
Same reasons as in c3adeb8420
You can not have a field that is:
- computed
- stored
- translatable

One of the three had to be removed

closes odoo/odoo#36717

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-11 14:28:06 +00:00
Katherine Zaoral af0d0dcf61 [FIX] l10n_latam_invoice_document: invoice report
* remove l10n_latam_amount_tax field: This one is not really neccesary since was used for CITI reports and this ones were deprecated.
* improve invoice report view inherit: Improve way to make inherit for report invoice using position attribute
instead of position replace.
* Report amounts:

  * for excluded reports get price unit computing (and not price_unit) to get the untaxed price if the line has taxes with price included (as in sales)
  * fix l10n_latam_price_subtotal for report with taxes included and tax included on the price

closes odoo/odoo#36716

Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-09-13 15:26:32 +00:00
Katherine Zaoral ae8e060cec [FIX] l10n_ar: Fix compute for l10n_ar_vat field 2019-09-11 14:26:45 +00:00
Odoo Translation Bot e80b81dca1 [I18N] Update translation terms from Transifex 2019-09-15 01:30:37 +02:00
Sébastien Theys f6d56afba0 [IMP] http: rollback from checked_call only if necessary
The rollback clears the cache, which lose all data that have been fetched before
arriving in the route method.

This lost cache includes some website data that was used during the dispatch and
that will be used again in the route.

By keeping it we reduce the number of queries on every request by at least 2.

Part of task-2061122

closes odoo/odoo#36245

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-09-13 14:30:13 +00:00
Simon Lejeune f35fa53c88 [REF] mrp: unbuild access rights
Give to a regular mrp user the same access rules than he has on
production orders.

closes odoo/odoo#36883

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-13 14:30:50 +00:00
Arnaud Baes 2f40301c44 [FIX] repair: Missing method implementation in wizard
This commit add the implementation of `_get_reference_document_company_id`
for the `stock.warn.insufficient.qty.repair` wizard.

closes odoo/odoo#36792

Taskid: BugsLogistics
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-12 14:19:46 +00:00
Robin Heinz 197474e5b9 [FIX] point_of_sale: Clean tax regime domain
There was an useless domain on the tax_regime_selection in the xml field, now it's removed.

closes odoo/odoo#36859

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-09-13 12:06:00 +00:00
svs-odoo 1ad8b88fba [FIX] stock: reordering rules count by company
Before this commit, the reordering rules computed quantity fields wasn't
computed by active company but for all companies. So, set `compute_sudo`
on false for `nbr_reordering_rules`, `reordering_min_qty`,
`reordering_max_qty` of products and product templates to avoid to
search with sudo active and to search by company.

closes odoo/odoo#36856

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-13 12:41:16 +00:00
svs-odoo 5d75d07bad [FIX] mrp: product quantities by company
Before this commit, the product/product template computed mrp quantity
fields wasn't computed by active company but for all companies.
So, set `compute_sudo` on false for the different computed mrp quantity
fields of products and product templates to avoid to search with sudo
active and to search by company.
2019-09-13 12:25:25 +00:00
svs-odoo d57a22035a [FIX] stock: product quantities by company
Before this commit, the product/product template computed quantity
fields wasn't computed by active company but for all companies.
So, set `compute_sudo` on false for the different computed quantity
fields of products and product templates to avoid to search with sudo
active and to search by company.
2019-09-13 11:32:14 +00:00
Martin Trigaux 73e70673e7 [I18N] *: export saas-12.5 source terms
closes odoo/odoo#36853

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
2019-09-13 11:38:37 +00:00
Martin Trigaux 5afcc9a42d [FIX] *: typos, wording 2019-09-13 11:15:43 +00:00
Joseph Caburnay b2f94014d8 [FIX] point_of_sale: prevent opening session if no chart of accounts
Before this commit, a user can create a Point of Sale record and
proceed on launching a new session. If the user ignored the warning
message regarding the installation of Chart of Accounts, the opened
session will not work properly and the session can't be closed.
This commit prevents the user from launching a new session if there is
no Chart of Accounts installed for the current company.

closes odoo/odoo#36777

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-09-13 09:30:27 +00:00
Yannick Tivisse 3eb06a27da [IMP] res_config: Apply groups to users accross companies
Purpose
=======

When enabling/disabling a group, the modification is only applied
to the users from the enabled companies.

It should be applied to all the users.

closes odoo/odoo#36744

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-09-13 11:34:50 +00:00
jbm-odoo 7d623a75a2 [FIX] hr_holidays: Time unit in time off summary
If time off type is in hours, I want to have hours as unit in the summary
(upper my personnal calendar).

closes odoo/odoo#36421

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-09-12 07:39:05 +00:00
fja-odoo 424adb63e3 [IMP] gamification, *: remove KarmaError
* = stock, test_website, web, website_forum, website_slides, base

Replace KarmaError with AccessError and remove the related override made
on crash_manager and ir_http.

task-2069890

closes odoo/odoo#36655

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-09-12 13:49:02 +00:00
Christophe Simonis 5a273e74f0 [MERGE] forward port branch saas-12.4 up to fe59754c52
closes odoo/odoo#36721

Signed-off-by: Christophe Simonis <chs@odoo.com>
2019-09-13 13:32:51 +00:00
Josse Colpaert dc5f83b633 [FIX] l10n_lu: use correct xml_id
Somehow this xml_id was not updated.  Logically,
the tags for the refund should be the inverse
of those in the normal invoice.

closes odoo/odoo#36842

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-09-13 10:14:10 +00:00
Aurélien Warnon 4e39a89944 [IMP] survey: use default filter instead of different action
When accessing answers (survey.user_input) through the survey form view, we used a separate action
to hide the test entries.

This could be confusing when you actually wanted to see the test entries for that survey.

This commit changes that to use a default filter instead, leading to the same visual behavior.

Task #2058598

closes odoo/odoo#36835

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-13 11:29:13 +00:00
Aurélien Warnon 4e712fc2f9 [IMP] survey: mark certification documents of test entries as "specimen"
When a user tests the Survey, he should not get a valid certification document when he succeeds.
To avoid that, we add a "specimen" watermark on the background when the user_input is a test_entry.

In addition, we also don't send the mail containing the certification for test entries.

Task#2058598
2019-09-13 11:28:04 +00:00
Xavier Morel 66df3f0479 [ADD] web: make export FAYT also match technical names
Previously only matched the label / user-visible name.

closes odoo/odoo#36472

Signed-off-by: Xavier Morel (xmo) <xmo@odoo.com>
2019-09-13 10:59:24 +00:00
Xavier Morel 39d66dba59 [FIX] base_import: improve image feedback & remove image URL restriction
* If the item is not an acceptable URL, check if it's base64 and
  return an error if it's not, otherwise it just ends up blowing later
  when the content of the field is assumed to be base64 and explodes
* The URL having to contain png or jpg or tiff or gif or bmp doesn't
  make much sense (especially in this modern world where
  placekitten.com doesn't add extensions, not to mention this doesn't
  actually check for extensions). After discussing with odo it doesn't
  seem to have any security impact, the only thing this filter does is
  annoy people for no reason.
2019-09-13 10:15:20 +00:00
Xavier Morel f58368210c [ADD] base_import: batching (& some other features)
various UI changes
------------------

* renamed "test import" button to "test"
* move relation fields thing to debug mode
* remove "Defer parent/child computation" option as it was deprecated
  / removed from the backend in
  80f1ac3599, turns out this checkbox
  existed inactive for longer than it's been of any use (added in
  68cb2ade09 on 2017-11-29, made
  non-operating on 2018-01-24, that's so sad)

batching
--------

* add support for batching imports (skip & limit parameters)
* modify client to use batched imports & properly adapt responses so
  it still looks like a single import for the client (more or less)
  e.g. update row numbers in error messages, etc...
* properly handle partial imports though
* disable usual loading throbber to have a single progress
  notification displayed continuously throughout all the batches: the
  normal throbber only shows after 3s of waiting for an RPC response,
  so it would keep flashing in and out (appear 3s into a batch's
  import then disappear at the end only to reappear 3s into the next
  batch's loading)

NOTE: the limit is row-wise. If a record straddles the limit (because
of nested O2M records), the record is imported in full and the "next
row" is whatever row follows the record. This means a limit of 10 can
lead to an import of 17 lines, and as the progress indicator is in
records# the increments can jump around.

Task 2059448
2019-09-13 09:45:29 +00:00
Gert Pellin 71e9c4dc7a [FIX] point_of_sale: close session in multi company
Close a rescue PoS Session from another company triggers this error:
"Please define income account for this product: "Office Chair" (id:5).

property_account_income_id on product is company dependent but no
company was forced before this fix.

closes odoo/odoo#36280

Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-09-13 10:05:44 +00:00
Gert Pellin 20c097996e [FIX] point_of_sale: pos_payment group on session
TRACEBACK on pos.payment list view > Group By : Sessions
https://pastebin.com/cKESKmP6

session_id was not a stored field.
2019-09-13 10:05:44 +00:00
Gert Pellin d61be86bf0 [FIX] point_of_sale: pos_paiment breadcrumb
when consulting a pos.payment record, in form view, you get a "False" in
the breadcrumbs = the label is empty. Anything we could do about it ?
https://nimb.ws/sB7GEQ (NB : it works for returns (=negative amounts)
https://nimb.ws/M6QHJm )

This fix sets the breadcrumb to show the payment_id, the only field that
is unique for every payment and always has a value.
2019-09-13 10:05:44 +00:00
Gert Pellin 2d36eb8baa [FIX] point_of_sale: open payment form from list
Impossible to open a pos.payment form through the session. Go to PoS >
 Sessions > open a session > Payments > you have the list view, and the
 form view doesn't open if you click on a line. Demo :
 https://drive.google.com/file/d/1IUFSsUGRhnbHAniSh6pldfSlPqRh8_JE/view
2019-09-13 10:05:44 +00:00