Commit Graph
124195 Commits
Author SHA1 Message Date
Christophe Simonis 2c0a76fc7a [FIX] web: correct attribute name
Oversight of previous forward-port.
2018-10-18 17:32:11 +02:00
Christophe Simonis 9c3ec026c5 [MERGE] forward port branch saas-15 up to 54db75396f 2018-10-18 17:16:03 +02:00
Wolfgang Taferner 66f8ffe729 [FIX] stock: do not crash move_lines return a tuple with empty list
Typically if you use an onchange method to retrieve values on the server
and convert them to write it will also try to write empty values like
[(6, 0, [])] and this will crash as it has also the length of 3 but no
dictionary but a list

closes odoo/odoo#27937
2018-10-18 12:05:35 +00:00
Julien (juc) Castiaux 4c65499cca [FIX] mail: Emails are sent in reverse order
The CRON job that sends email sends them in a LIFO order instead
of a FIFO order which can lead to confusion when the order is
important.

Exemple, when updating multiple time an appointement, the last
update should be the newest mail clients receive in their mail box
which was not the case before this PR.

opw-1888601

closes odoo/odoo#27888
2018-10-18 09:24:00 +00:00
Martin Trigaux 4945495401 [FIX] base: display correct ondelete value
The on_delete value on an ir.model.field did not reflect the value set on the
field loaded in the registry

Fixes odoo/odoo#24464

closes odoo/odoo#27906
2018-10-18 08:48:37 +00:00
Martin Trigaux 80fd5abd90 [IMP] sale_mrp: increase test delta
The test was comparing a scheduled date was correctly computed.
The runbot build 363053 failed because runbot12 is a bit slower and computed
the delay in 2 seconds instead of the 1 previously tolerated.

Increase the delta to 10 seconds.

The delay is a matter of days. Having a difference of 1, 10 or even 100 seconds
should be equivalent functionnaly.

Having a 100 seconds delay could indicate a serious performance issue though...
2018-10-18 10:07:10 +02:00
Gert Pellin c19f0a7a5d [FIX] point_of_sale: new table duplicates
Add new tables in POS screen, close the screen and resume the session
again, the tables you created duplicate

closes odoo/odoo#27924
2018-10-18 07:54:11 +00:00
William Henrotin 84481726dc [FIX] stock: add note field
Commit 37d20240a9 reintroduce lost note
field but not in a clean way.
This commit put the field in a proper tab.

Task : 1896143

closes odoo/odoo#28026
2018-10-25 07:54:42 +00:00
Odoo Translation Bot c2c88f359d [I18N] Update translation terms from Transifex 2018-10-25 10:21:44 +02:00
Yenthe V.G 992c4dbe38 [FIX] mail: set default _rec_name to avoid showing model with id
closes odoo/odoo#27186
2018-10-24 14:21:04 +00:00
David Arnold cbc72dba18 [FIX] purchase_requisition: traceback on validate
The subsequent code strongly suggests that pick_in can be None,
however, the raise_if_not_found has not been set properly.

closes odoo/odoo#27397
2018-10-20 21:22:37 +00:00
Christophe Simonis 58af18eb2f [FIX] account,sale_timesheet: don't enforce test journal currency
It was causing some tests failure due to 22f0da809e
2018-10-24 17:45:34 +02:00
Christophe Simonis 58525e29d8 [MERGE] forward port branch saas-15 up to bff43f0aa1 2018-10-24 16:14:52 +02:00
Yenthe V.G 7c45f22cea [FIX] mrp: remove useless upgrade boolean
The option enables a group, it does not install an enterprise module
Introduced at 85ed6a31a2

Fixes odoo/odoo#28080
Closes odoo/odoo#28081
2018-10-24 09:56:56 +00:00
Lucas Perais (lpe) fee419c7ea [FIX] project: template render attachments sudo
Related issue odoo/odoo#27256
use case is in there

Retrieving the access token for an attachment should be done as sudo
Also, we adapt the code to the method, which appears to be "api.one" (lol)

OPW 1888873

closes odoo/odoo#28074
2018-10-23 14:16:48 +00:00
mhamra 55899f849a [FIX] models: use expected parameter type
set_failed function expects an iterable object
Introduced at 32a58c0db3

Fixes odoo/odoo#27744

closes odoo/odoo#27911
2018-10-23 14:21:55 +00:00
Lucas Perais (lpe) eeae211176 [FIX] calendar: recurring event around DST
Be in timezone Europe/Brussels, where, in 2018, the DST switch
happens on 2018-10-28.

Create a recurring event starting on 2018-10-27 until 2018-10-29
at say, 8am

For the days before the 28, the time of the event will be correct

Before this commit though, for the days after the 28,
the meeting time will be shifted by one hour
This is because the rrule took a TZ aware datetime, and generated recurring
event dates with that same TZ, i.e. the one in STD time

After, this commit, all the meetings are well scheduled at 8am,

OPW 1895315

closes odoo/odoo#27985
2018-10-23 14:00:18 +00:00
Xavier Morel 35bb8304ab [FIX] doc: building on Python 3.6.7, 3.7.1, possibly 2.7.???
https://bugs.python.org/issue33899

tokenize.generate_tokens was altered to match the C tokenizer,
previously it would end the tokenization with just an ENDMARKER, in the
titled releases it adds a NEWLINE before the ENDMARKER if none is
present, this broke the parsing of jsdoc type specifications as Python's
tokenizer is used under the cover.

closes odoo/odoo#28056
2018-10-23 10:39:22 +00:00
Lucas Perais (lpe) eef4c3b48b [FIX] calendar: all day event shouldn't store in UTC
With a user in a distant timezone, like UTC +/- 11

Create a all day event.

Before this commit, the event was displayed across the wrong days
This was because the dates were converted from the user's timezone
into UTC before being stored.

Which is:
- start date at december, 12
- if the user's tz is utc-11: the date becomes december, 11 (at 1:00pm)
- at rendering, it becomes december, 11 (at 7:00am)

After this commit, we store the datetime field "as if" it were a date field
that is, we don't convert it to any particular tz

It is worth noting that, if one removes the allday mapping in the xml view,
an event that has been created as allday will get its start and stop date converted
to the browser's timezone, and will NOT be displayed as from 8am to 8pm as one could expect
This is considered as a limitation of the code, that was present before this commit anyway.

In any case, please do not revert this commit :D

OPW 1891110

closes odoo/odoo#27949
2018-10-23 11:26:28 +00:00
len-odoo 5dea3651f1 [FIX] website_sale: set user_id of newly created partners to the website salesperson
When an unlogger user places an order, a new partner is created on the fly when
the unlogged user is asked to place his delivery address.
The values he enters on the form are processed before being used.
In particular the team_id is taken from the order (typically website_sale team).
We add to the new values the salesperson id.
This value is then used in onchange_partner_id to update the order's user_id.

opw 1889510

closes odoo/odoo#28030
2018-10-22 12:32:36 +00:00
Gustavo Valverde 3426ce03b4 [FIX] base: set correct time format for es_DO
In Dominican Republic, only english speakers and the military use 24h time
format. Businesses handle their information using 12h time format with a.m.
and p.m.

closes odoo/odoo#28042
2018-10-23 07:21:30 +00:00
Gustavo Valverde 3f9d504bb7 [FIX] base: change DOP currency symbol position
closes odoo/odoo#28040
2018-10-23 02:07:53 +00:00
Christophe Simonis e744241d83 [FIX] web: trim tooltip text before comparison
The error is triggered at least on Chrome 69 on macOS.
2018-10-22 16:53:21 +02:00
Odoo Translation Bot 98ee84e976 [I18N] Update translation terms from Transifex 2018-10-21 03:22:16 +02:00
mhamra f891f51225 [CLA] signature for mhamra
closes odoo/odoo#27943
2018-10-19 12:40:26 +00:00
Robot Odoo ad872a9c1a [MERGE] website, *: fix some snippet options
* web_editor

See sub-commits for details.

closes odoo/odoo#27966
2018-10-19 14:58:45 +02:00
qsm-odoo 4150dd5849 [FIX] web_editor: fix background reset system for carousel items
When the user previews a background color, the background image of the
snippet is removed and re-added if the user chooses not to pick the
color. The background-image was not correctly added for carousel items.
2018-10-19 09:07:33 +00:00
qsm-odoo c2b8d2a301 [FIX] web_editor: review _setActive system for select-class
- Handle the case where one select-class is a subset of another
  select-class of the same group e.g.

  <... data-select-class="hello"/>
  <... data-select-class="hello world"/>

- Handle empty values <... data-select-class=""/>

Note: both cases worked but were not displaying the active checkbox
correctly in the editor UI.
2018-10-19 09:06:16 +00:00
qsm-odoo dea1372215 [FIX] website: restore options active system for carousel 2018-10-19 09:05:58 +00:00
Luis González 4e239bcb1a [FIX] base: Typo in string of default code for server actions
"may be be void" -> "may be void"

closes odoo/odoo#27919
2018-10-18 03:03:23 +00:00
Christophe Simonis 43856ee6b6 [FIX] account: adapt test to new report behavior
See 3c4f853365
2018-10-17 19:44:27 +02:00
Christophe Simonis 6abd8364cf [FIX] web: avoid object duplicated key
Oversight of previous forward-port
2018-10-17 18:53:29 +02:00
Arnold Moyaux c6b0d36622 [FIX] stock: quantity done not saved on pager
On delivery order, it happens that when it contains more than 40
products and multiple pager. The quantity done are only saved on
the first pager and on the other everythings is reset to 0.
This issue is not deterministic.

The reason is because on the picking view, both stock.move and
stock.move.line are present. When the user write the quantity done
on a stock.move it exists a function inverse that write qty_done on
stock.move.line. However during an onchange, inverse function are not
trigger and every field present in the view is returned to the client.
It means that data after the onchange are inconsistent since the
quantity done write on the move is different than the quantity on the
move line. When the user save the form view, the write could be trigger
in different order. If the write on stock.move is trigger first, it will
write the qty_done with the inverse function but it will be erase by the
write on stock.move.line that is trigger after.

In order to fix it, we set the stock.move.line as readonly when they are
not needed, so they are not send to the server.

closes odoo/odoo#27903
2018-10-17 14:32:03 +00:00
Goffin Simon 69a0af9e86 [FIX] account: Impossible to make a partial credit note
Steps to reproduce the bug:

- Create a credit note for an amount of 100$
- Validate it and register a payment
- Let's pay an amount of 90$ and mark this credit note as fully paid

Bug:

An error message was raised saying: Wrong credit or debit value in accounting entry !

DO NOT FORWARD-PORT

opw:1893570

closes odoo/odoo#28433
2018-11-07 09:01:14 +00:00
Adrian Torres 392a8d8f9e [FIX] base: handle models without associated xids at uninstall
If all the planets are correctly aligned, it is possible for a model to
not have any xids associated with it, if this happens then the computed
field that calculates the records to be deleted during an uninstall
may mistakingly add records of this xid-less model to the list of
records to be deleted, even if the actual uninstallation won't remove
these records.

opw-1904139

closes odoo/odoo#28388
2018-11-06 12:27:22 +00:00
Martin Geubelle 8b9cb0565e [FIX] mail: remove mail_followers widget support claim
This widget claims to support one2many fields but it doesn't work in most cases.
This was triggering warnings when this widget was set on another field or in another
view (i.e. in Studio).

opw-1905803

closes odoo/odoo#28413
2018-11-05 15:20:54 +00:00
Goffin Simon 492f197c91 [FIX] account: Payments on invoices not in date order
Steps to reproduce the bug:

- Create a customer invoice I with an amount of 100$ and validate it
- Register three payments P1 at 11/10, P2 at 12/10 and P3 at 13/10
- Click on button "Print" and the report displays the payments in the right order
P3, P2, P1
- Click on button "Send by email" and click on the attachment with the report

Bug:

The report didn't display the payments in the same order, it displayed P1, P2, P3

opw:1888251

closes odoo/odoo#27895
2018-10-17 13:09:52 +00:00
Lucas Perais (lpe) ed5417b71f [FIX] project: wrong context key in task action
In JS, the groupBy attribute is a list of strings

The default_group_by key that is sometimes present in the XML views
gets converted to a list at somepoint.

Before this commit, the task action couldn't be used in the app Dashboard

After this commit, it can

OPW 1894751

closes odoo/odoo#27908
2018-10-17 15:35:04 +00:00
Mathieu Duckerts-Antoine 7fb7522cfe [FIX] web: JournalDashboardGraph widgets appear at kanban views updates
closes odoo/odoo#27892
2018-10-17 13:01:56 +00:00
Robot Odoo fd27ef1765 12.0 Various snailmail Improvements
PRICING
--------------
The pricing on snailmail has changed and we now charge stamps for each letter.

 USABILITY
-----------------

Added a new error to help the user more specifically

Avoid spamming the user's mailbox with the next  activities when a letter can not be sent.

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

closes odoo/odoo#28290
2018-11-05 11:58:07 +01:00
Rémi Rahir 235811d468 [FIX] snailmail: avoid spam on user mailbox
the fix merged in cb8bd299fc
was only tackling half the problem. When you assign a user to an
activity, the said user will be notified by email. This also occur if
you change the assignee to the next activity even if you change it to
the same user.

This commit ensures that we only write on the user_id field when we
create the next activity and not during the update.
2018-11-05 09:32:33 +00:00
Rémi Rahir 9988ce3f3b [IMP] snailmail: add new error message to help the user 2018-11-05 09:31:52 +00:00
Rémi Rahir c2b55f3e0c [FIX] snailmail_account: Pass pricing to stamps
Up until now, we'd charge the user in actual curency but we changed the
pricing to 1 creidt=1 letter. in forder to help the user we will change
the name credits to stamps. As 1 letter = 1 stamp.
2018-11-05 09:31:40 +00:00
Christophe Simonis a1cc2cefd4 Revert "[IMP] account: Trigger a validation error when trying to set the same currency on a journal as on its parent company."
This commit shouldn't have been forward-ported to this branch.

This reverts commit 22f0da809e.
2018-11-05 09:57:37 +01:00
Odoo Translation Bot 790bd62f14 [I18N] Update translation terms from Transifex 2018-11-04 01:27:12 +01:00
Nicolas Seinlet 6c81038142 [FIX] lunch: correct default filter
Renaming a filter in search view require to
rename it also in context of actions

closes odoo/odoo#28366
2018-11-02 15:59:35 +00:00
qsm-odoo f906ab9124 [FIX] website: review action start on page loading
This commit fixes a bug introduced with https://github.com/odoo/odoo/pull/28251:
When opening the ace editor on page load thanks to the #ace-view-editor
URL hash, a JS error occurred preventing the editor to open.

This was due to the way actions were executed on page loading:
- Menu elements are initialized and can handle actions
- On initialization, the ace menu tried to launch the editor
- First, it asked that all widgets are closed (see mentioned PR)
- The website handled that action demand by asking everyone to close
  their widget
- The 'new content' menu tried... and failed as referenced a variable
  which would only have been created in the start method.

Conclusion: before handling actions, all action-capable widgets should
be started. This is what this commit does: when receiving an action
demand, we first wait for the action handler to be fully started. This
implied another change: before, many menus were waiting for the result
of an action to notify that their start method is finished... this
would cause a deadlock in the new system so those were removed, this did
not make much sense anyway (if the result of that starting action has to
be known, a dedicated event/method should handle that).

closes odoo/odoo#28364
2018-11-02 16:56:24 +00:00
Nicolas Seinlet 5fe98d8720 [IMP] crm: search lead on name
closes odoo/odoo#28350
2018-11-02 09:28:48 +00:00
Nicolas Seinlet fc178a3e1e [FIX] website_sale: priority for non default view
Set a higher priority to avoid a view to become a default one,
just because his ID is lower than the expected default one.

closes odoo/odoo#28287
2018-10-30 13:37:44 +00:00
Martin Trigaux 2b4c1f3a45 [FIX] gamification: correct mail template on small challenges
A challenge with less than 3 participants was failing with a key error
The challenge line has only one 'goal' result per participant

As the template is set in a noupdate, even a module update does not fix the bug
Generate fake goals that will be displayed in the top 3, e.g.:
1 Bob	 $100 42%
2 Alice	 $50  21%
3 	 0    0%

closes odoo/odoo#28363
2018-11-02 15:41:00 +00:00