Commit Graph
117975 Commits
Author SHA1 Message Date
Martin Trigaux 71d3b14691 [FIX] report: access only one report
In case two reports have the same name (e.g. duplicate).
Accessing search only on the name which may not be unique.

Fixes #17751
2017-06-22 16:34:18 +02:00
George Daramouskas 063ee0751b [FIX] base/ir_ui_view: Raise ValidationError when creating views without arch/type
Closes #16973

Steps to reproduce:

1) Go to Settings -> Technical -> User Interface -> Views
2) Create a new view and give only name, leave fields View Type and arch_base empty.
3) Exception occures

Current behaviour:
- The user gets an exception with a full stacktrace.
Expected behaviour:
- The user should get a warning
2017-06-22 16:27:20 +02:00
Yenthe V.G d6751e5b6a [FIX] account trial balance: correctly selecting accounts with movements(#17562) 2017-06-22 16:26:42 +02:00
Florent de Labarre 204686f90c [IMP] stock: Display hardcoded uom on product template form view
Closes #17343
2017-06-22 16:12:22 +02:00
Martin Trigaux 6b5f3c2364 [I18N] account: export source terms
Following changes at b5a8e5c864
2017-06-22 15:24:17 +02:00
Alexis de Lattre b5a8e5c864 [FIX] account: verify the partners are the same
Re-enable the constraint when reconciling entries belonging to different
partners.
The constrain was not triggerd because of the triggers on line_id.
In old API it was triggered only when explicitely writing on that field.

Convert to new API instead.

Fixes #17292
Closes #17600
2017-06-22 15:19:05 +02:00
Josse Colpaert d44b7e9b1b [FIX] mrp: workorder lots should have the correct product 2017-06-22 13:32:18 +02:00
Goffin Simon 09a686fa29 [FIX] sale: Duplicating a quotation without template
When duplicating a quotation without template, the expiration date
was duplicated even if the expiration date was already expired.
The date order is not duplicated but set to now.

opw:744671
2017-06-22 13:31:58 +02:00
Goffin Simon eba662336c [FIX] sale: Changing product qty to 0 in SO line
When changing the qty of a SO line to 0, the product_uos_qty, th_weight were not
updated and then it lead to some errors.

opw:748288
2017-06-22 13:14:11 +02:00
Christophe Simonis c6938b843c [MERGE] forward port branch saas-11 up to 637ba945e0 2017-06-22 12:29:11 +02:00
Christophe Simonis 637ba945e0 [MERGE] forward port branch 9.0 up to a03fc2d849 2017-06-22 12:21:59 +02:00
Christophe Simonis 378b161ee1 [FIX] point_of_sale: make tests consistent wrt taxes (take 2)
Rev 7b494187e9 forgot to correct some
tests.
2017-06-22 12:18:53 +02:00
Martin Geubelle c62a4edcb0 [FIX] web: set 0 as default value for numeric fields
When creating a new record, the numeric field default value should be 0 in order
to avoid manually setting mandatory fields to 0.

This behaviour has been removed with the new views but one wants to restore it.

The `mockRead` function has also been adapted in this commit because the server
returns 0 for unset numeric fields.
2017-06-22 10:52:26 +02:00
Olivier Dony 7b494187e9 [FIX] point_of_sale: make tests consistent wrt taxes
After rev d938ba87ae, taxes that are
included in the price are subtracted in case the tax is not applied in
an order (e.g. when the fiscal position remove the tax).

Some of the test orders did not apply any tax, and because the products
used in the test had some tax included, the above revision made the
tests fail (by subtracting the tax amount from the price).

Fixed by making the test orders more consistent wrt to taxes, applying
the taxes as would happen in the UI, then correcting the payment amounts
to include the extra tax amounts.
2017-06-22 10:52:12 +02:00
Christophe Matthieu 6a0e07b6aa [FIX] sale_margin: wrong margin when update the discount 2017-06-22 10:25:49 +02:00
Nicolas Martinelli a03fc2d849 [FIX] mail: track date change
- Set your timezone in Brasil
- Install the Maintenance module
- Create a Maintenance Request, set the Requested Date to 2017-06-15
- Save

In the chatter, the track fields message shows a Requested Date of
2017-06-14.

This can actually happen with any date tracked. The issue comes from the
web client: it converts the date in UTC, which should of course not be
done. This only applies for a datetime, not for a date.

opw-746216
2017-06-21 20:57:16 +02:00
Joren Van Onder 10c6908c63 [FIX] stock: fix conversion to multi of _compute_location_description
Oversight of 8df0a2a98e and
c6e5d7b004.

opw-748404
2017-06-21 10:27:39 -07:00
Christophe Simonis 6981320d01 [MERGE] forward port branch saas-11 up to 79dfcde359 2017-06-21 18:28:26 +02:00
Christophe Simonis 79dfcde359 [MERGE] forward port branch 9.0 up to 2662739187 2017-06-21 18:06:45 +02:00
Martin Geubelle 3de0715f12 [FIX] web: basicController: stop translate event
Before this fix, a traceback occured when we clicked on the translate icon
in a form dialog.

The `translate` event wasn't stopped and was thus handled by the dialog's form
controller and by the main controller.
2017-06-21 16:42:56 +02:00
qsm-odoo 44d8255ee7 [FIX] web: make datepickers visible in modals
Following commit 3741603495:
Datepickers are indeed able to overflow their parent which scrolls.
However, they were not put above modals anymore.
2017-06-21 15:49:43 +02:00
Martin Trigaux 2662739187 [FIX] base: backport of 1703a2f80 on noupdate translations
When a record is in no update, it is not modified after module upgrade.
It should be the same with translations.
2017-06-21 15:46:25 +02:00
Adrien Dieudonne 5fa51c5201 [FIX] web: basic_controller: avoid multiple name_create
Before this fix, multiple records were created if you clicked
on the quick create of a many2one in a modal.

The 'mutexify' event wasn't stopped and was thus handled by
the dialog's form controller and by the main form controller.
2017-06-21 13:30:40 +02:00
qsm-odoo 85d1e76ddb [IMP] web, *: reorganize our libraries' extensions
* web_editor, web_tour, website_event_track

Before this commit, one JS file was responsible for all the library
extensions and fixes. There were two main problems with this system:

- The file was only available in the backend (as some extensions are
  made on backend-only libraries).

- Some other modules were doing library customizations.

This commit creates one file per library to regroup their associated
customization and adds them in the right asset. These are placed in
the web module and every other module should avoid doing customizations.
This allows to have libraries consistency accross all modules and
between the backend and the frontend.
2017-06-21 12:56:13 +02:00
Christophe Matthieu b21f6e36ce [FIX] payment_authorize: wrong error message because of missing import 2017-06-21 12:11:40 +02:00
Goffin Simon 036ccbeff1 [FIX] web_editor: Translating a product in the website
Steps to reproduce the bug:
-Change the default lang on the website to be different than en_US
-Edit the name of a product in the website

Bug:
The name of the product is changed in en_US and not in the language
set on the website. The lang is in fact removed from the context in
function saveElement(in addons/web_editor/static/rte.js).

opw:747084
2017-06-21 12:02:06 +02:00
Martin Geubelle e921f14d24 [FIX] web: disable phone test with voip
The module `crm.voip` alters the focusable behaviour of the phone
widget by overriding the `canCall` method.

We thus disable this test if the module is installed.
2017-06-21 11:44:53 +02:00
Sergio Teruel Albert 18152f35b6 [FIX] event: Make event report inheritable
Closes #16633
2017-06-21 11:24:39 +02:00
Nicolas Lempereur de403dc1ab [FIX] mass_mailing: no multi language edit
Creating and editing mass mailing in multiple language is managed with
the change 05daa15.

But currently the language the mass mailing is sent in, is the language
of the "Process Mass Mailing Queue" (root user if not changed) so all
the recipients will receive the mail in the root user language has at
the time the given batch of mails is sended.

So this is different from what someone could expect by it being
translatable. In any case the recipients list could be based on a lead,
a partner a mass mailing contact or other and a language could not be
determinable in stable (a mass mailing contact does not have a language
for example).

If the system worked, there is also a usability downside in the meaning
that someone could duplicate a mail and not check all translation and
not be aware that the mail he see is maybe not the mail that will be
received (if translations have not all been completed).

In stable to have the same behavior in any case and lessen the usability
burden of users thinking erroneously the mass mailing may be sent in
several languages depending on a not-existing heuristic, this changeset
remove the translatability of mass mailing content.

This has the following effect:

no translation editing appear,
the mass mailing is edited and sent in one and the same language,
If someone want to send a mass mailing in several language, currently in
Odoo it would then require to:

duplicate the mass mailing,
change the domains of recipients base on choosen heuristic,
edit the duplicated mass mailing in the choosen language

opw-746445
opw-746776
closes #17718
2017-06-21 11:15:03 +02:00
Cedric Snauwaert 1b0a8cc595 [FIX] payment_authorize: missing import 2017-06-21 10:44:46 +02:00
Nicolas Martinelli d938ba87ae [FIX] point_of_sale: fix included taxes
Apply commit a9ce4ffb22 to POS orders.

opw-746827
2017-06-21 09:56:49 +02:00
Florent de Labarre 9fc7a04b4b [IMP] hr_holidays: change xmlid of menu
Was referring to account, probably copy-paste

Closes #17545
2017-06-21 09:51:29 +02:00
Christophe Matthieu c6e5d7b004 [FIX] stock_pack_operation: wrong conversion in multi api
Tested: compute_sudo on the field does not work
2017-06-21 09:42:21 +02:00
Christophe Matthieu 8df0a2a98e [FIX] stock: stock manager can have an access error to stock location
If the user change the access right to filter some stock location or multi
company, the user can have an access error to read stock pack operation.

opw-747526
2017-06-21 09:30:12 +02:00
Nicolas Martinelli 6aa94a5eea [FIX] web: remove "Edit Workflow"
Since all workflows have been removed, remove the menu to edit it, since
it generates a traceback and confuse users.
2017-06-21 08:20:01 +02:00
Goffin Simon 2bf5d1ab0c [FIX] mrp: Test recursive BOM
Test that detects a recursion in BOM when exploding.

opw:745453
2017-06-20 21:12:39 +02:00
Joren Van Onder e0c5e6abd4 [FIX] point_of_sale: display PIN as •'s across all browsers
Before this the -webkit-text-security CSS property was used. This, as
the name implies, only works in webkit based browsers. Instead we can
just render the PIN code as •'s since the value of the inputBuffer is
used (not the rendered text) when checking the PIN.

Fixes #16458
2017-06-20 10:37:30 -07:00
Moises Lopez - https://www.vauxoo.com/ d7f84c273b [IMP] website_sale, website_portal: Re-use partner.check_vat method
Use check_vat function directly.
It already checks both format and centralize the dispatch of methods.

Closes #17644
2017-06-20 17:33:50 +02:00
Raphael Collet 52e0540506 [FIX] base: attribute domain on fields cannot be None
When instanciating a custom field, make sure the domain is a list.
2017-06-20 14:18:32 +02:00
Laurent Smet 4ffb61db1d [IMP] account: allow to register payments for several partners, from invoices.
This patch allow to select several invoices/refunds or bills/bill refunds and launch the contextual action to register a payment for all of them.
Where, before, the system allowed that only if there was a single partner, it will now create and post a payment for each of them.

Was PR #https://github.com/odoo/odoo/pull/15228
Was task: 24014
2017-06-20 13:34:20 +02:00
Kinjal Mehta 402be8cd92 [IMP] website_sale: auto-selects product price on click in edition 2017-06-20 12:48:29 +02:00
Prakash Prajapati 8f099d4528 [IMP] base_automation: Improve field labels naming in automated action
Purpose
=======

Some field labels are not very explicit

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

- Rename "Base Model"  into "Model"
- Change "Trigger condition" (Condition Frist char(C) uppercase)
- Rename Domain into  Apply on
2017-06-20 11:19:02 +02:00
Martin Geubelle 28b67ee7dc [FIX] web: properly handle tab navigation with widgets in edit
Rev. https://github.com/odoo/odoo/commit/c5f8f35747b4ca9633c664d6be74614c5ce22fcd
introduced a regression: the input of widgets 'email' and 'url' was not correctly
focused anymore with tab navigation.

The method `getFocusableElement` on their common parent (`InputField`) has not been
correctly overriden because `_super``was not called in edit mode.
2017-06-20 11:17:35 +02:00
Prakash Prajapati 72d0a439dd [IMP] sale: rename Pro-Forma into Pro-Foma Invoice
Purpose
=======

pro-forma concept is not easy, it is an adjective in english, it should be "Pro-Forma Invoice" to avoid confuision

Rename it everywhere (report, form, settings)

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

In Sales/Settings, Sales/Quotations and in the report (.pdf)
2017-06-20 11:14:25 +02:00
hip-odoo 530a1de801 [FIX] purchase: remove wrongly set oldname attribute
In version 8.0, there was a stored field `minimum_planned_date`.
In version 9.0, this field was renamed `date_planned` and loose it
store attribute.
In version 10.0. the field is stored again.

Keeping this `oldname` attribute will lead to reuse old data from
version 8.0 when migrating the database to version 10.0.

Closes #17631
opw-744097
2017-06-20 11:00:14 +02:00
Nicolas Martinelli 7f273f1fe1 [FIX] purchase_requisition: crash if missing default value
If the data `stock.picking_type_in` is deleted, creating a purchase
tender crashes.

opw-747078
2017-06-20 10:46:57 +02:00
Jeremy Kersten 09de52ae5e [FIX] website_sale_portal: show cancel invoice fixing typo in domain
This commit closes #15254
2017-06-20 10:20:45 +02:00
Rohan Patel 477666d3da [IMP] website_sale: improve policy of what is an abandoned cart
Now, an abandonned cart is:
    - a draft quotation
    - in a sales channel with type = website
    - with a customer set (not public user)
    - created more than one hour ago

- removed from_website filter in search view of website sale, added domain in view for display website side sale
- use proper filter for display 'Orders' and 'Orders to Invoice' in dashboard

this commit closes #17383 task-745391
2017-06-20 10:00:12 +02:00
fka-odoo 30783c7a43 [IMP] web: Time(hours,minutes,seconds) should be calculate using timedelta with datetime on web client, added test cases for pyeval datetime.timedelta 2017-06-20 10:00:12 +02:00
Adrien Dieudonne 98100b85dc [FIX] pad: not able to set pad widget
Before this fix, it was possible to set the widget 'pad'
on char fields but it only worked if the current model
inherited from 'pad.common'.
In the other cases, it crashed on closing Studio.

As there is two models only (project.task and
note.note), we decided to remove the possibility to set
this widget in Studio.

opw-745997
2017-06-20 09:56:23 +02:00