Commit Graph
130901 Commits
Author SHA1 Message Date
Jigar Vaghela 8bdddcbe80 [IMP] l10n_in: Set parent in tax report
closes odoo/odoo#37671

X-original-commit: d4dc7ae8285e6ab65f168e61650ef89ebdb2268d
Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-10-01 10:00:06 +00:00
Pierre Masereel 8f91e81065 [FIX] l10n_fr_pos_cert: move sale closing on pos
The report sale closing that was working on journal and takes the sales
total and cumulative total on periods of 'day', 'month' and 'years'. Is
now based on the pos orders and moved to the pos certification module.

closes odoo/odoo#36967

Task-id: 47990
Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
2019-10-01 10:02:50 +00:00
Pierre Masereel 82e06a9f50 [FIX] l10n_fr_pos_cert: inalterability check report
We've added a repport that guarantee that the blockchain of hash has not
been altered. It recompute the hash and check that they are the same as
the one stored.

TASK-ID: 47990
2019-10-01 10:02:50 +00:00
Pierre Masereel 78994b55b6 [FIX] l10n_fr_pos_cert: avoid editing orders
Once an order is created in the french certification, we cannot modify
it wihout traces, so we've disabled the edtition of the order lines in
the frontend, disable the price changing, and the deletion of orders.

So when we want to decrease the quantity, a line with negative quantity
should be done.

TASK-ID: 47990
2019-10-01 10:02:50 +00:00
Pierre Masereel 5b8f86a3eb [FIX] point_of_sale: remove datas_fname field
Since the field datas_fname doesn't exist anymore, we should not set it
anymore.

rev: c212cfe899
2019-10-01 10:02:50 +00:00
Pierre Masereel 00a30e1d07 [FIX] l10n_fr_pos_cert: display hash in debug mode
We now display the pos order hash, on the order form view when we are in
debug mode.

TASK-ID: 47990
2019-10-01 10:02:50 +00:00
Pierre Masereel 9e5ea29e34 [FIX] l10n_fr_pos_cert: display hash on receipt
When an order is sent to the server from the point of sale, a unique
hash is generated by the server. This hash must be printed on the
receipt to allow the comparison between the receipt and the data on the
server and guarantee the unalterability of the data on the server.

TASK-ID: 47990
2019-10-01 10:02:49 +00:00
Pierre Masereel b213c9ee3c [FIX] point_of_sale, pos_restaurant: print bill with correct template
Until now, the ticket printed from the web or to the printer were
different because one was using the OrderReceipt template and removed
some fields, and the other was using the BillReceipt.

We are now using only the bill receipt, to avoid to maintain multiple
template showing the same thing.

TASK-ID: 47990
2019-10-01 10:02:49 +00:00
Pierre Masereel 69dc97c698 [FIX] point_of_sale, pos_reprint: write duplicata on reprint
When a receipt is reprinted, the word 'DUPLICATA' is printed at the
bottom of the receipt.

We are also allowing to reprint ticket even if no printer is selected on
the POS config as nothing prevent to do this.

TASK-ID: 47990
2019-10-01 10:02:49 +00:00
Raphael Collet 72d5761730 [FIX] base: do not flush during model setup
Retrieving selection data for a custom field while setting up a model
should not flush() fields in `ir.model.fields.selection`.

closes odoo/odoo#37667

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-10-01 09:25:02 +00:00
jbm-odoo b4616b7339 [FIX] event: Fix onchange on category
Fix onchange on category, it must write on event mail

closes odoo/odoo#37654

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
2019-10-01 07:42:15 +00:00
Laurent Smet 9af5516e16 [FIX] account: Fix non-determinist matching-rules tests
If the current date changes when creating the invoices (e.g. nightly builds)
the results are not always in the same order because the matching rules propositions are
sorted by date in the descendant order.

closes odoo/odoo#37653

Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-10-01 07:34:16 +00:00
Louis Baudoux 1f0d28591d [FIX] l10n_generic_coa: fix demo invoice with wrong journal
The 'Miscellaneous Operations' journal was used instead of the 'Vendor
Bills' journal for that demo invoice, which lead to a crash when
processing it with the OCR.

closes odoo/odoo#37618

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-10-01 07:07:32 +00:00
Simon Lejeune 12824cb432 [FIX] stock: width on buttons
closes odoo/odoo#37617

Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
2019-09-30 14:39:51 +00:00
Pierre Rousseau cef2bbd12f [FIX] partner_autocomplete: display insufficient credit notification.
Before this commit the error 'Insufficient Credit' was not triggered by the python side, so the notification was never displayed.

closes odoo/odoo#37649

Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2019-10-01 06:42:52 +00:00
Yenthe666 3bd70d91fe [CLA] remove Yenthe from Odoo Experts
closes odoo/odoo#37637

X-original-commit: 028def41de94e6f123f816ee6fcd4ef31a7033f0
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-30 19:24:13 +00:00
Eric Channey 3ecd6a6155 [CLA] signature for ezchan
closes odoo/odoo#37628

X-original-commit: ab2655912e017cbe0fcfadc937eaef44eaaa91f7
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-30 15:59:01 +00:00
Florian Gilbert 87bc2e1547 [FIX] Remove "inalterable_hash" from account move view (put in enterprise).
closes odoo/odoo#37603

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-30 13:11:16 +00:00
Humberto Arocha 1deca4917a [FIX] l10n_mx: Sequencing Template Taxes in order promote them.
Before this commit when installing l10n_mx chart of accounts taxes for
0% and 4% were the ones assigned by default in products or in invoices
for sales and purchase, respectively.

Reason was wrong sequence in the Template of Taxes, combined with order
of creation, ids.

now the two ones with lowest sequence are the 16% Taxes.

closes odoo/odoo#37642

X-original-commit: 357943e9440683f2bff01dc2f1ef074e5104769a
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
2019-09-30 20:41:00 +00:00
Susana 725827b3e9 [FIX] Some fixes and improvements in l10n_cl module
[FIX] add account asignation to taxes
[FIX] Fixes after code review
[FIX] remove default value for taxpayer_type
[IMP] add an empty section in res_config_settings_view as a holder
for any Chilean Localization future configuration setting.

[FIX] change location of Chilean Localization section

closes odoo/odoo#37555

Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-09-30 18:33:59 +00:00
Jeremy Kersten be8fc2296b [IMP] base, http_routing, website: allow custom routing rule
After this commit, you will be able (in technical mode) to update the url for
the python controllers.

Eg.
You can now rename /shop in /garden and /shop/product/ in /garden/vegetable/

Most of urls will be replaced at fly in the renderd qweb, with the function
url_for but all old urls will keep available. So if you access url /shop you
will be automatically redirected to /garden (308 Permanent Redirect).

As for cdn and other post-process of att, the automatically replacement in the
rendered qweb is only done when you will be not website editor. But the new
dispatch of URL will be applied in all cases.

For developper, since it is Permanent Redirect, don't forget to clear cache or
open chrome debug tool (with option 'Disable cache while DevTools is Open) to
see your lasts changes.

closes odoo/odoo#36555

Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2019-09-30 13:58:14 +00:00
Damien Bouvy b6b42ef73f [IMP] sale_*: multi-editable list views
closes odoo/odoo#37547

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-09-30 13:34:36 +00:00
Damien Bouvy 652ebb96e5 [FIX] tests: correctly handle invisible fields in form proxy
The form proxy will raise an error if a required field is not filled,
even when the web client would let it pass through. Indeed, the web
client (correctly) assumes that a user cannot fill in an invisible
field and that something will probably be done on the server to handle
that (e.g. an override of the write/create or simply a command-handling
code by the ORM). Since invisible fields do not even get a widget
instaciated for them, no validation takes place whatsoever.

Since it is sometimes (for obscure reasons) necessary to include all
kinds of invisible fields in tree view (e.g. to get correct values for
related stored fields, somehow), it is possible that required fields
in a view are in fact not really required since they are ignored
by the web client and then correctly handled/modified server-side.

This commit adapts the test proxies to behave similarly to the web client
(since that is, after all, the goal of these proxies) and to ignore
invisible fields when validating views.

closes odoo/odoo#37432

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-09-30 16:20:51 +00:00
Victor Feyens b32132973c [IMP] payment : save related company_id on payment.token 2019-09-30 16:20:40 +00:00
Victor Feyens 0c4bae5b5e [IMP] sale*: multi company checks 2019-09-30 16:20:40 +00:00
qdp-odoo 3c034e04d4 [FIX] account: fix CoA installation with only billing rights
When the only app installed is 'invoicing', people were getting an error while trying to generate the account.reconcile.model from its template. Could have done it in sudo(), truth is: account.reconcile.model object is not security critical

closes odoo/odoo#37622

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-30 15:03:01 +00:00
Laurent Smet 3850303385 [FIX] account: Fix creation of invoices through journal mail alias
Restore override of message_new lost during the account-pocalypse.

closes odoo/odoo#37610

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-09-30 13:41:47 +00:00
Simon Lejeune 6e61595055 [FIX] stock_landed_costs: tests across two days
Two testcases failed when ran at 23h59 and 50 seconds because of a wrong
order on date.

closes odoo/odoo#37599

Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
2019-09-30 13:00:47 +00:00
wan f701070177 [IMP] account: display the product in the name_get of account.move.line
It is difficult to select an account.move.line of an invoice if there is a product but no label on the line. By showing the name of the product, we know what line we are choosing

closes odoo/odoo#37596

X-original-commit: cf53f9c1909f85bdcb34f9acf79df1c8dc2a2da5
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2019-09-30 12:30:08 +00:00
Raphael Collet 338997d7a1 [FIX] test_mail: adapt query counts
closes odoo/odoo#37577

Signed-off-by: Raphael Collet (rco) <rco@openerp.com>
2019-09-30 15:43:27 +00:00
Raphael Collet 439ebff0f5 [FIX] test_mail: wrong way to check many2many values 2019-09-30 15:43:27 +00:00
Raphael Collet 8606fb3df8 [FIX] models: copy() should recursively copy inactive records 2019-09-30 15:42:36 +00:00
Raphael Collet 4b1cb41cf7 [FIX] models, fields: cache consistency for one2many fields
Issue: after many2one updates, the cache of the corresponding one2many
fields was inconsistent when the latter depends on `active_test`.  One
of the values in cache was updated, while the other was left intact.

We simplify the cache by not making the field depend on context: the
cache value contains all the records in the relation (corresponding to
`active_test=False`).  The value of the field is automatically filtered
by the `active` field when the value is accessed.

This makes it easier to maintain the cache value, guarantees its
consistency, and avoids queries to read the one2many field with
`active_test=False`, after having set it with `active_test=True`.
2019-09-30 15:42:36 +00:00
Pierre Rousseau 333f1087cf [FIX] stock_sms: do not send mail notifications
The aim of this commit is to remove the mail notifications when there is no more credits on IAP accounts for SMS integration with stock.

Task-ID 2077783

closes odoo/odoo#37559

Signed-off-by: Rémi Rahir (rar) <rar@odoo.com>
2019-09-30 12:32:06 +00:00
Pierre Rousseau 3469821b73 [FIX] crm_iap_lead: set status readonly
The aim of this commit is to set the state readonly in the tree view.

Task-ID 2077783
2019-09-30 12:24:24 +00:00
David Beguin fed533bcf2 [FIX] livechat : fix rating per user in livechat frontend view
rating_per_user was instanciated the wrong way, as all the key pointed to the
same reference. Once a value was modified in the value dict, all the other
values in rating_per_user were also updated.

Task ID: 2076656
PR #37511

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-30 15:54:51 +00:00
David Beguin c7d6fc84a8 [FIX] rating : set rating_last_image/feedback to readonly
It's a non sense to be able to write on rating_last_image/feedback field as it is a related
to a computed field based on the last rating, given by someone.
We should not even try to corrupt data !

Task ID: 2076656
PR #37511
2019-09-30 15:54:51 +00:00
David Beguin 41b2d9cc86 [FIX] livechat : use main rating image instead of white one for livechat frontend view.
As the percentage bar is translucid, white rating icon is not really easy to see.
Using the main rating image - red for :(, orange for :| and green for :) - is more
convenient.

Also, this fixes the height of rating chart as the bottom border was not visible when 0%.

Task ID: 2076656
PR #37511
2019-09-30 15:54:50 +00:00
David Beguin 8d359aa5a5 [FIX] livechat : use visitor name when visitor start livechat
If the visitor starts a livechat session, his anonymous name was 'Visitor'.
Since visitor info are now stored, we can use the visitor name instead, if a visitor
can be retreived.

Task ID: 2076656
PR #37511
2019-09-30 15:54:48 +00:00
David Beguin 74fa5c2955 [FIX] livechat : add placeholder to receive conversation copy and fix translation
This commit adds a placeholder to the field where the visitor has to put his email
to be more self speaking. (Otherwise, the visitor could not know what to put on this field)

Task ID: 2076656
PR #37511
2019-09-30 15:51:20 +00:00
David Beguin f15a4a31cf [FIX] livechat : do not close livechat after feedback-rating, positive or negative
Since there is now a possibility for the user to ask a copy of the conversation,
livechat window should not be closed after feedback, to let the user choose to
receive a copy.

The behaviour was no aligned between positive and neutral/negative feedback.
Before, when sending a positive rating, the rating was not sent as a message on the channel
and the window didn't close.
But for neutral/negative feedback, the window was sending the rating as a message on the channel
but the chatter closed immediately.

Now, the rating is sent as a message for any type of rating.
If this is a neutral / negative rating, the reason field appears.
After sending the reason, the window stays opened.

Task ID: 2076656
PR #37511
2019-09-30 08:07:41 +00:00
Katherine Zaoral 8de9ce5f7a [FIX] l10n_ar: data and demo data
- AFIP code in UOMS saved as char
- fix missing account_id in demo data
- Remove demo data that was throwing error
- merge res country data to csv file.
- move res currency AFIP code data to csv file

closes odoo/odoo#37457

Signed-off-by: Josse Colpaert <jco@openerp.com>
2019-09-30 15:02:00 +00:00
Julien Mougenot 652414ca4e [FIX] web: grouped list multi edit with m2m
Before this commit, m2m fields were not updated when multi editing
in a grouped list.

Now, the fields are updated no matter how many levels of groupBys
are applied to the list.

Part of task 2078807

closes odoo/odoo#37589

Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
2019-09-30 12:53:18 +00:00
Romeo Fragomeli 53bb1387b5 [FIX] web: control panel: error by clicking on padding on mobile
o_control_panel have this layout:
 +-------------------------------------+
 |  PADDING                            |
 |  +----------------------------------+
 |  |  breadcrumb      o_cp_searchview |
 |  |  o_cp_left       o_cp_right      |
 |  +----------------------------------+
 +-------------------------------------+
As you can see, there is a padding on the edge of the widget.

In Odoo 12.0, before the control panel refactoring (odoo/odoo@40dd121938)
the search view was a widget by itself (addons/web/static/src/js/views/search/search_view_mobile.js).
Note that in this case, once the following condition:
"ev.target === this.el" was reach the normal behavior
was executed.

But now the search view is embedded in the control panel.
There is a side effect: clicking on the padding of the control panel
triggers the "_onOpenMobileSearchView" and the condition is always true.
Therefore we try to open the search more even if it doesn't exist.
But anyway, the search view (full) shouldn't be opened when we click on
the control panel.

After this commit, the listener is scoped to o_toggle_searchview_full,
to avoid this side effect.

Steps to reproduce:
* Open any app with a control panel (e.g. accounting)
* Select a record (e.g. an invoice)
* Click on the padding of the control panel (BUG)

closes odoo/odoo#37587

Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
2019-09-30 12:27:57 +00:00
oco-odoo fdc3555c8d [IMP] account: filter receivable and payable accounts so that they are not selectable as tax accounts on repartition lines
closes odoo/odoo#37572

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-30 09:21:36 +00:00
oco-odoo 2727b383b9 [IMP] account: filter tax tags on account.move form view
So that we only allow chosing the ones that are available for taxes, in the right country.
2019-09-30 08:48:33 +00:00
Antoine Vandevenne (anv) 897a4baecf [IMP] product(_matrix): clean demo product for matrix
Before this commit, the product 'My Company Tshirt' had too much PTAL and PTAV which lead to an overloaded matrix.

This commit removes the 'Sleeves' attribute, reorder the other attributes and remove the Size attributes '2XL' and '3XL'.

task-2052537

closes odoo/odoo#37543

Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
2019-09-30 11:57:18 +00:00
Antoine Vandevenne (anv) 06bd183ec2 [IMP] product(_matrix), *: add configurator hint to template name
Before this commit, it wasn't easy to find a demo product template that opens either with the product configurator or with the matrix from a list view.

To fix that, this commit appends '(CONFIG)' to the name of all demo product templates that open with the product configurator and '(GRID)' to all demo product templates that open with the matrix.

task-2052537
2019-09-30 11:56:24 +00:00
Romain Derie 3408c4dd1e [FIX] http_routing: restrict lang matching to installed lang
When accessing an URL, there is some computation to check if you try to access
a lang. Part of this job is to get the closest language available.
For instance, you could try to get `/fr_BE/..` and it would redirect to
`/fr_FR/..` if french is installed but not belgian french.

There is a known issue when loading files/assets from a module starting by the
same letter than a lang, in debug assets.
Only reported case was `hr_XXX` modules which would be redirected to `hr_HR`
lang (croatian).

So, the issue would only occur when:
1. Debug assets is enabled
2. hr_HR lang is activated
3. only hr_XX modules would be impacted

But since 269aa59411, the issue would appear even if `hr_HR` was not activated.

This commit restore the issue to its minimal case, when `hr_HR` lang is
activated.

closes odoo/odoo#37494

Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
2019-09-30 14:04:07 +00:00
ryv-odoo 8d7004b5d4 [FIX] mass_mailing_sms : fix display name contact list
- In the sms marketing app, the count of valid sms
recipient for contact list was not consistent in all app.
Fix by appling the mailing_sms context value also in the
mailing mailing form.

TASK_ID : 2075733

closes odoo/odoo#37248

Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
2019-09-30 14:28:30 +00:00