Commit Graph
108260 Commits
Author SHA1 Message Date
Martin Trigaux 790ff6d655 [I18N] pull web* translations
Some were skipped due to API limit
2017-06-26 11:25:54 +02:00
Joren Van Onder 91abcdf842 [FIX] payment_*: always read callback_eval as superuser
The callback_eval field has a groups parameter of
base.group_system. Without this patch everyone not part of that group
ends up with an access right error when the system attempts to read
that field.

Previously this was not a problem because all code reading
callback_eval was executed with the superuser already. New code has
been introduced however that does not do this (eg. paying with a
payment.token from the backend).

opw-741181
2017-06-26 11:19:46 +02:00
Odoo Translation Bot afba38b88d [I18N] Update translation terms from Transifex 2017-06-26 10:49:30 +02:00
David Arnold 1930e8dffb [I18N] remove es_CO translations
Based on analysis https://gitlab.com/snippets/1665976

Closes #17815
2017-06-26 10:13:25 +02:00
Martin Trigaux 2c96c696b1 [FIX] stock: duplicated entry in pot file 2017-06-26 09:57:41 +02:00
Odoo Translation Bot ee3a6b6793 [I18N] Update translation terms from Transifex 2017-06-25 04:27:29 +02:00
Martin Trigaux 4755fce915 [I18N] update source terms
Was done poncutally but no global one since the release
2017-06-23 16:34:23 +02:00
JesusZapata 6a732fd2c9 [FIX] stock: Prevent to reset a 'done' picking in 'draft' state
This change will prevent the document from going from Done to Draft

In some cases a user may make that error functionally. It is only to have an additional validation

In the past, we didn't need this validations because the workflow didn't allow the use of a transition that is not defined on the correct state but since that we don't have workflow so we need manage this inconsistent action from original method in order to avoid a wrong transition.
2017-06-23 15:32:43 +02:00
Alexis de Lattre 1a57cccc0d [FIX] l10n_fr: use full account names
Use full account names
The parent accounts have been removed but the account names have not changed.

Closes #17770
2017-06-23 14:51:19 +02:00
Cedric Snauwaert e3d5176a41 [FIX] rating: after posting a rate, don't redirect to backend
Some user might be logged but not have the right to access issue or task.
Plus it does not make any sense to redirect to backend after rating a task or an issue.

OPW: 748579
2017-06-23 11:48:44 +02:00
Leonardo Rochael Almeida bbc47177ce [IMP] base: drop unused onchange_state
It calls `onchange_state()` on `res.partner` which was removed on
(24aba60).

It was added to `res.users` long ago (009ea40) to support a `state_id`
field on the view `res.users.simplified.form` that is no longer there
since v8.0.

The method is then never called and was crashing if called.

Closes #17772
2017-06-23 10:12:48 +02:00
Nicolas Martinelli c82ec7a6fd [FIX] purchase: cancelled procurement
If two MOs are using the same PO, when we cancel the first MO, the
check availability of second MO is not working.

The incoming shipment of the Purchase Order has the first MO's move_id
as the destination move. When we cancel the first MO, the incoming
shipment of Purchase Order still holds the first MO's move. Because of
that reason, the check availability is not working for the second MO.

While setting the destination move for the stock moves of the incoming
shipment, it should ignore the cancelled procurements.

Closes #17701
opw-748074

Courtesy of @suganthikarunanithi
2017-06-23 09:05:45 +02:00
Nicolas Martinelli 8185524833 [FIX] account: prevent traceback
If a user tries to reconcile already reconciled lines, the calling
method might have already filtered out these lines, and the method is
called with an empty self.

opw-748223
2017-06-22 17:39:14 +02:00
Nicolas Martinelli ca486ebe18 [FIX] mrp: sequence depending on picking type
In case you have multiple warehouses and/or multiple manufacturing
locations (procurement routes), the same sequence is taken for the
created manufacturing order no matter where it is finally produced.

Closes #17681
opw-748344
2017-06-22 17:36:25 +02:00
wardm95 4a92d87b88 [CLA] signature for wardm95
Done at #17767
2017-06-22 16:36:28 +02:00
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
Josse Colpaert d44b7e9b1b [FIX] mrp: workorder lots should have the correct product 2017-06-22 13:32:18 +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
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 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
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
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
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
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
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
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
Goffin Simon 4623fe8a81 [FIX] mrp: Wrong test
Introduced by dc98d174c7

opw:745453
2017-06-20 09:02:04 +02:00
Goffin Simon dc98d174c7 [IMP] mrp: Test recursive BOM
Test that detects a recursion in BOM when exploding.

opw:745453
2017-06-19 23:40:27 +02:00
Goffin Simon a133afe8a1 [FIX] mrp: same products in different sub-phantom-BoMs should be allowed
Let's consider 4 products P0, P1, P2 and P3 where:

- P0 depends on P1, P2 and P3
- P1 depends on P2 and P3
- P2 depends on P3

NB: "x depends on y" means that there is a phantom BOM for x where
y is in a line.

With this example, before the fix, when creating a MO for P0,
the function "explode" raised a user error saying that there
was a recursion error.

Even if in this case there was no recursion.

Now to check if there is a recursion, a graph of the dependencies of
the bom is created while exploding the boms and a function "isCyclic"
is applied on the graph to verify that there is no cycle which means
no recursion in the dependencies.

The algorithm was taken from this site: http://www.geeksforgeeks.org/detect-cycle-in-a-graph/

opw:745453
2017-06-19 23:40:27 +02:00
Christophe Simonis 29a7175292 [FIX] website_sale_event: correct test 2017-06-19 17:53:30 +02:00
Nicolas Lempereur 5ac8471eab [FIX] mrp: multi production inconsistencies
When several user run a production on a workorder, things go awry.

For example the end of the "productive" production is computed based on

ProductiveStartTime + DurationExpected - Duration

so if the duration was bigger than the time expected, we easily get a
productive end before the start, and start of the "reduced speed" before
the production actually happened.

eg:

productive time is 30 minutes

user A: start production at 10:00
user B: start production at 10:10

production is set to done at 10:50

=> result before the patch:

user A has been productive from 10:00 to 10:30
user A has not been productive from 10:30 to 10:50
user B has been productive from 10:10 to 10:00
user B has not been productive from 10:00 to 10:50

this is totally erroneous.

=> result after the patch:

user A has been productive from 10:00 to 10:30
user A has not been productive from 10:30 to 10:50
user B has not been productive from 10:10 to 10:50

this is a measure of right, we could argue about wether one or the other
should be productive or not but this is anyway an edge case.

In master we are considering only allowing one user to run a production
at a time but we prefer not to change such a behavior in stable version.

opw-709223
closes #17528
2017-06-19 17:17:37 +02:00
Christophe Simonis 04d5da90e1 [MERGE] forward port branch saas-11 up to 1f73105ddd 2017-06-19 17:08:57 +02:00
Christophe Simonis 1f73105ddd [MERGE] forward port branch 9.0 up to 7606b60420 2017-06-19 15:44:49 +02:00
Christophe Simonis 7606b60420 [MERGE] forward port branch saas-6 up to 9ed3ee55a7 2017-06-19 15:41:35 +02:00