Commit Graph
117156 Commits
Author SHA1 Message Date
Aaron Bohy 0c8d1f6089 [FIX] web: Form: col width of x2many lists inside groups
The form renderer defines inline style on the groups it renders to
set the width of their children according to the col and colspan
attributes specified in the view.

However, before this rev., this impacted inner list views (for
x2many fields), as their columns get an harcoded width as well,
whereas they shouldn't.

This was for example the case in the stock.location.route form
view, for the push rules and procurement rules o2m fields.
2017-05-16 14:07:49 +02:00
Wolfgang Taferner 58c928a732 [FIX] mrp: fix unlinking of move lots for production during create_lots
Closes #17007
2017-05-16 13:54:43 +02:00
Olivier Dony 1070b83e14 [FIX] l10n_cn*, payment_sips: clarify obsolete licensing info
The license info for these modules was a leftover from previous versions.

Once integrated in Odoo Community they share the same license as all
other modules, as mentioned in the LICENSE notice at the top of the
files.

opw-743686
2017-05-16 13:42:10 +02:00
Nicolas Martinelli 0fab06204c [ADD] hr_expense_check: add amount in words on check
- Create an expense, approve.
- Register the payment by check
- Print the check

The amount in words is not written.

The core of the issue is that the wizard
`hr.expense.register.payment.wizard` has been defined as a brand new
model instead of inheriting from `account.register.payments`. Hence the
Enterprise module "hr_expense_sepa" and now "hr_expense_check".

opw-742305
2017-05-16 13:27:40 +02:00
Nicolas Martinelli 8fdf046df2 [REF] account_check_printing: avoid duplicated code
Small refactoring necessary for the following commit, to avoid
duplicated code.

opw-742305
2017-05-16 13:27:40 +02:00
Olivier Dony 878fbc75ff [MERGE] Forward-port saas-14 up to a6e2b3929f 2017-05-16 13:27:08 +02:00
Olivier Dony a6e2b3929f [FIX] website: remove extra % char in forward-port 2017-05-16 13:25:56 +02:00
Goffin Simon 8c22c8b625 [FIX] sale: _get_invoiced with same sequence for PO and SO
When PO and SO used the same sequence, a vendor bill with a source
document equal to the sequence of a SO could be displayed by this
SO(in the smart button "invcoies").

opw:693991
2017-05-16 13:23:57 +02:00
Olivier Dony 61c2b8efd5 [MERGE] Forward-port of saas-14 up to 9b3ca1af23 2017-05-16 12:47:44 +02:00
Olivier Dony 9b3ca1af23 [MERGE] Forward-port 10.0 up to 1545995b39 2017-05-16 12:12:30 +02:00
Nicolas Martinelli 6c38a80b6f [FIX] purchase: modify expected date
- Create a PO with a line scheduled 2017-07-01
- Validate the PO => the expected date of the related stock move is
  2017-07-01.
- Modify the PO line date to 2017-07-15 => the expected date of the
  related stock move is not updated.

Since we allow the modification of the scheduled date, we should make
sure that the related information is changed accordingly.

opw-741815
2017-05-16 12:06:47 +02:00
qsm-odoo 1545995b39 [FIX] web_tour: tips were overlapping the chat windows
Before this commit, the tour tips were overlapping the chat windows.
This was due to the fact they always had a z-index of 1051 wherever
they were. If a tip was placed in a location where none of its
ancestors created a new stacking context, the closed tip was then
positioned above everything else, including the chat windows.

A simple solution would have been the one proposed by this commit:
https://github.com/odoo/odoo/commit/856e78b35a47a8732e5bd4da1cce247df70e5414
However, as it explained, this would not be entirely correct. In the
website, elements are using z-indexes and would thus hide closed
tooltips when it is not wanted if those have no z-index at all.

The solution this commit is making is to force the creation of a
stacking context for tooltips' parent. The z-index will still exist
on all tips (closed and not closed) to force them above every other
elements, but now only elements of the same parent. This is indeed
more correct (but maybe still not entirely): website tooltip are
often placed in the body (as it is the element which scrolls) and
are thus still placed above elements like the navbar as their
z-index is left high. However, when placed in the appswitcher, they
will now be placed above appswitcher elements only (and thus not
above outside elements which are themself above the appswitcher
(e.g. the chat windows)).

opw-743330
2017-05-16 11:17:13 +02:00
Aaron Bohy b0e51ffade [FIX] mail: Chatter: crash when mentionning non followers
Caused by a stupid programming error.

Also refactor a bit the code that performs mention RPCs (that are
throttled) to allow to override the throttling value for the tests.
2017-05-16 11:16:03 +02:00
Thibault Delavallée 877d4b60e7 [IMP] website_quote: define default order quote template coming in settings
Using a real ir.values default that user can customize in settings
is better for user experience than an hardcoded template using an
xml_id. Betcha.
2017-05-16 10:48:58 +02:00
Olivier Dony ab8c81a96f [MERGE] Forward-port saas-11 up to 0570033ae7 2017-05-16 10:30:23 +02:00
Olivier Dony 0570033ae7 [MERGE] Forward-port 9.0 up to 2c4512c263 2017-05-16 10:06:36 +02:00
Olivier Dony 2c4512c263 [MERGE] Forward-port saas-6 up to 7dc2ed94c3 2017-05-16 09:22:27 +02:00
Aaron Bohy ac092e9ccd [FIX] web: List: force grouped lists to be non editable
Editable grouped list views isn't a supported feature. Before this
rev., grouped lists weren't automatically set as non editable, so
it could cause crashes when the user clicked on rows of grouped
lists with editable="top" or "bottom".

This was for example the case in Timesheets > All timesheets ->
go to list view.
2017-05-16 08:49:26 +02:00
Aaron Bohy 55de60db6e [FIX] web: BasicModel: missing fields in data for x2m
The 'data' attribute of exported datapoints (using 'get') must
contain a value for each field in the view, and the default value
is false when those fields are unset. The code manipulating those
datapoints supposes that this is the case and it makes it easier
and clean.

However, it wasn't the case for x2manys in new records for which
the default value contains CREATE commands with missing fields:
in that case, those missing fields weren't added in data.

This caused a crash in the Employee form view, in edit, if the user
clicked on 'Create and Edit' of the 'Working hours' field, because
some code in field_utils assumes that if the value of a date field
isn't false, it means that it is a moment instance (but in that
particular case it was undefined).
2017-05-16 08:49:26 +02:00
qdp-odoo a95a667563 [REF] account: validate of FY lock date into a dedicated method.
in res.company write(), create a sub method _validate_fiscalyear_lock()
so that it is easier to inherit to modify or extend its
functionality.

Was PR #16615
2017-05-15 23:37:48 +02:00
Joren Van Onder 7836a83b3b [FIX] point_of_sale: currency and decimal precision on ESC/POS receipt
Decimals were either hardcoded or not set at all.

opw-741752
2017-05-15 11:30:29 -07:00
Joren Van Onder 4d2328cd9e [FIX] point_of_sale: don't reserve pickings with tracked products
Introduced by 8f39ad2be6 which was
intended for 9.0. It does not work well in 10.0 because here users
have the possibility to specify their own tracking numbers directly in
the POS interface. This causes issues when eg. the user specifies the
same lot number as is already reserved by the system.

opw-742657
2017-05-15 09:39:45 -07:00
Kishan Gajjar 4e715dae94 [IMP] point_of_sale(_restaurant): Add some small UX improvements
[IMP] point_of_sale: Improve `New Session` button label if already opened

When another user has a POS session open. Do not show the New Sesson button on the dashboard. Hide it and replace it by the string 'A session is already opened'

[IMP] pos_restaurant: Move some technical fields in debug mode

[IMP] point_of_sale: Remove tooltip for barcode

[IMP] point_of_sale: All to restict product price control to managers

Either:
- Everybody
- Only managers
should be able to modify the product price on orders for a given point of sale

[IMP] pos_restaurant: Exit table edit mode via 'ESC' button of keyboard
2017-05-15 17:43:15 +02:00
xmo-odoo 59bcb5d611 [FIX] P3: iteritems 2017-05-15 17:32:12 +02:00
Christophe Matthieu 5f13b7f019 [IMP] web: update datepicker syntax with the new guidelines 2017-05-15 16:19:47 +02:00
Christophe Matthieu 932e887400 [FIX] web: datepicker did not select correct date after initial render 2017-05-15 16:19:37 +02:00
xmo-odoo 7cffacb434 [FIX] missing import
Call would crash when you crash.
2017-05-15 16:09:45 +02:00
qsm-odoo bee3253b44 [FIX] mass_mailing: increase email clients compatibility
Creating a mail template which is complex and compatible with all mail
clients is a very difficult task as each mail client supports a
different subset of basic CSS rules.

This commit fixes 3 problems which were occuring in outlook and/or
thunderbird but not in gmail:

- Main layout horizontal overflow
    -> change 24px horizontal padding of main layout to 3% and set the
       width to 94% (so that the sum is 100%)

- Fixed 600px content was full width instead
    -> Change the .o_mail_wrapper to be a <table> element instead of a
       <div> element. The table is full-width and contains one row of 3
       cells: an empty left one, a fixed 600px-width center one and an
       empty right one. This allows to have the same layout as before but
       without using the unsupported max-width css rule.

- Texts were not using the right color and font-size
    -> <p> elements were not properly inheriting the color and font-size
       properties, so force the style on <p> elements.

opw-743156
2017-05-15 15:26:05 +02:00
Martin Geubelle 2e6a1623ff [FIX] product_email_template: remove malformed XML
This was causing an error in the form rendering as a group does not
accept text as direct child (and displaying '/>' as text was probably
not the desired behaviour.
2017-05-15 14:55:22 +02:00
Martin Geubelle a7411165f3 [FIX] web: Kanban: update buttons after column creation
The buttons were not updated after column creation.
This was causing an issue in an empty kanban when you created a new column,
the 'Create' button was not highlighted.
2017-05-15 14:55:21 +02:00
Martin Geubelle a0217f4475 [FIX] web: BasicModel: update parent data after record deletion
After the record deletion, the parent should be updated to take the deletion
into account.

This was causing an issue in the Kanban view: after a column deletion, it appeared
again if you created a new one.
2017-05-15 14:55:21 +02:00
Martin Geubelle 2fb4cf46d2 [FIX] web: Kanban: correctly destroy old widget after update
The attribute `widgets` has been renamed in rev https://github.com/odoo/odoo/commit/7ff8aa73e17b281b3e2bc4c7275d020eab0204e7#commitcomment-22116249
However, KanbanRenderer still uses a `widgets` attribute, not for the fields
widgets but for its columns (or records if ungrouped).

These widgets weren't correctly destroyed since then.

This was causing an issue when you were trying to quick create a record after a
column creation (that generates an update): the quick create was added in the
first old column (which was not in the DOM anymore) so you couldn't see it.
2017-05-15 14:55:21 +02:00
Martin Geubelle feb4a8986d [FIX] web: Kanban: correctly add the created record in group
The kanban group expects to have local ids in its data and not the whole
datapoint.

This was causing a traceback when adding a new column after adding a record.
2017-05-15 14:55:21 +02:00
Hiral Bhavsar 5a6f03a1ce [IMP] sale, website_quote: improve wording in sent emails
Correctly display 'Pay online' or 'View online' depending on payment
required option. Also correctly set the URL that comes from the
get_access_action method.
2017-05-15 14:17:19 +02:00
Hiral Bhavsar 29d927cfa3 [CLN] website_quote: rename data files according to guidelines 2017-05-15 14:17:19 +02:00
Hiral Bhavsar 95756b6258 [IMP] website_quote: improve demo data
So much data. Amazing demo. Wow effect.
2017-05-15 14:17:19 +02:00
rap-odoo fe631a36a5 [IMP] point_of_sale: allow product grouping for all uom
Purpose
=======

In POS, it is hard-codded in such a way that grouping will be done for the
uom category that has database id == 1.

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

We have solved this issue: we have added a new boolean field in the uom category form view that

If a user chooses this option then products having that uom category will be grouped in the POS.

Both uom category Unit and Weight have been set to groupable by default.

- Removed the hardcoded part of groupable for uom which had database id == 1,
  Now grouping will be done on 'groupable' field of "product.uom", which is
  related to the field of the same name on "product.uom.category".
- Only the `Unit` uom category is grouped by default
2017-05-15 14:09:11 +02:00
Xavier Morel ee663cf1d1 [FIX] P3: stdlib compatibility fixes 2017-05-15 13:33:20 +02:00
Christophe Matthieu ef35702cbc [FIX] web: remove some memory leak 2017-05-15 13:16:02 +02:00
Xavier Morel 4550f45f47 [FIX] P3: document stdlib changes
Also lint away verboten stdlib modules.
2017-05-15 12:26:32 +02:00
Xavier Morel 822bea14d0 [FIX] P3: htmlentitydefs renamed to html.entities 2017-05-15 12:26:32 +02:00
Xavier Morel 7c6c43d910 [FIX] P3: Queue module renamed to queue 2017-05-15 12:26:32 +02:00
Xavier Morel e2f1af78c4 [FIX] P3: remove cgi.escape uses
cgi.escape is unsafe (quote=False by default) and deprecated in Python
3. We already have an openerp.tools.misc.html_escape version which
forwards to the (modern and safe) werkzeug.utils.escape, just use that
everywhere, and convert extant uses of werkzeug.utils.escape to
utils.html_escape as well so that we do the same thing everywhere.
2017-05-15 12:26:31 +02:00
Xavier Morel 5617d4614b [FIX] P3: itertools.iziplongest renamed 2017-05-15 12:26:31 +02:00
Xavier Morel 67c17cb37f [REM] P3: outdated html2text vendoring
The vendored html2text is *really* old and absolutely not
P3-compatible.

There is a maintained version on Pypy which is, so use that and stop
vendoring html2text.
2017-05-15 12:26:30 +02:00
Xavier Morel b5983a485d [FIX] P3: remove cPickle use
In Python 3 the native acceleration module was merged into pickle
directly.

For cross-version simplicity, just use the base module in Python 2 as
well, we can reintroduce the accelerator somehow if it turns out too
much of a performance hit.
2017-05-15 12:26:30 +02:00
Xavier Morel 01e3514147 [FIX] P3: urllib, urllib2 and urlparse
In Python 3, all of these were "consolidated" under urllib(.request,
.parse, .errors) which is inconvenient.

Since we already have hard dependencies on requests and
werkzeug(.urls, which is a backport of Python 3's unicode-aware
urllib.parse) migrate *everything* to that.

A sticking point is urllib2.URLError, those were (mostly) replaced by
the slightly more general IOError which URLError extends.
2017-05-15 12:26:30 +02:00
Xavier Morel 54df4b36d7 [FIX] P3: types.NoneType removed 2017-05-15 12:26:29 +02:00
Xavier Morel 3833c8997d [FIX] P3: removed commands module 2017-05-15 12:26:16 +02:00
Xavier Morel b9c3365d21 [FIX] P3: cross-version smtplib/email changes
* SMTPLib[P3] uses a debug method on ``SMTP`` rather than a global
  ``stderr``
* email.Encoders is a deprecated & outdated (since 2006) alias for
  email.encoders
2017-05-15 12:24:04 +02:00