Commit Graph
111796 Commits
Author SHA1 Message Date
Thibault Delavallée 028c99db68 [FIX] auth_signup: open correct user for access rights in settings
Actually the signup template user to open is configurable and come from
an ir.config_parameter and is not necessarily the data created in
auth_signup even if it is the default value.
2017-09-08 18:59:25 +02:00
Sanjay Jamod c6aea4afc2 [FIX] auth_signup: fix computation of default template user in settings
Indeed we store an integer that is the ID of the user to copy when
creating the portal user, not a boolean. We therefore have to evaluate
the result instead of comparing it to a boolean. This was introduced
at 689d6d6829.
2017-09-08 18:58:51 +02:00
David Monjoie ca496c2198 [FIX] board: fix lxml import after P3 migration
Encoding 'unicode' is not supported by xml.etree.Elementree.toString
but it is supported by lxml.etree.toString
2017-09-08 15:34:15 +02:00
Jérome Maes dee87e106a [FIX] sale: access error when confirming SO if you are not admin
Use sudo to access config parameters. Previously it was an ir values
but now we have to access a config parameter as superuser.
2017-09-08 13:57:37 +02:00
Christophe Simonis e518f618bb [FIX] website_sale: should explicitly depend on sale_payment 2017-09-08 11:13:58 +02:00
Tejas Shahu 17e432d9a6 [FIX] mail: systray: next activity not closed on click
Before this commit, when you clicked on the dropdown, the action
was executed but the dropdown wasn't closed.
This issue was very annoying on mobile because the dropdown is in fullscreen
and we couldn't see the result of the action.

Now, we removed the "stopPropagation" which stops the bootstrap event
to close this dropdown.
2017-09-08 11:12:36 +02:00
Hiral Bhavsar 21931b7b6a [IMP] stock: display quant_ids similar to current_picking_move_line_ids 2017-09-07 14:23:29 -07:00
Hiral Bhavsar eef695f0d5 [IMP] mrp: make 'Inventory Moves' on MO display stock move lines
Also display this stat button in 'cancel' state.
2017-09-07 14:23:29 -07:00
Hiral Bhavsar 9022d84e00 [IMP] mrp: rename final_lot_id string
'Current Lot' -> 'Lot/Serial Number'
2017-09-07 14:23:28 -07:00
Hiral Bhavsar 26ce58eb2c [IMP] stock: remove 'Content' tab from package form view. 2017-09-07 14:23:28 -07:00
Hiral Bhavsar ff97f761ea [IMP] stock: clean up traceability report
- Add new column 'LOT/SERIAL NUMBER'.
- Add label 'Date' for date
- Column 'LOCATION SOURCE' and 'LOCATION DESTINATION' are merged into
  'LOCATION'.
2017-09-07 14:23:28 -07:00
Hiral Bhavsar 0bc29de024 [IMP] stock: group tracked products in stock.move.line
When the picking type doesn't have use_create_lots or
use_existing_lots the products should end up in one
stock.move.line. The user will then be able to validate the picking
without specifying serial/lot numbers.
2017-09-07 14:23:28 -07:00
Hiral Bhavsar 39d5881b93 [IMP] stock: restructure product.valuation.tree view
And display stock_value with a currency symbol.
2017-09-07 14:23:27 -07:00
Hiral Bhavsar f2926823e8 [IMP] stock: remove field 'method' from 'product.putaway'
Because it wasn't used anymore.
2017-09-07 14:23:20 -07:00
Kirti Choudhary be7ac3a503 [FIX] mass_mailing: urlparse is replaced with werkzeug.urls.url_parse 2017-09-07 14:17:21 +02:00
xmo-odoo e0f9479545 [FIX] core: dropped paren in P3-related changes
Fixes #19315
2017-09-07 10:54:50 +02:00
Xavier Morel 6bb6944e6b [FIX] P3: resizing of image *fields*
Fields sent from the client are pretty much always *text*. This can be
problematic for image fields sent as base64 *text* as in Python 3 the
base64 routines only work between bytes.

Alter the core field-resizing function (image_get_resized_images) such
that it ensures text base64 sources are encoded back to bytes before
being forwarded to the main resizing routines (which I don't think
should deal with *that* issue).

Fixes #18985: error when trying to update a company's logo
2017-09-07 10:47:02 +02:00
Christophe Simonis 9dff6516e4 [FIX] point_of_sale: avoid storing undefined in localstorage 2017-09-06 19:03:13 +02:00
Christophe Simonis 7580bfa49d [FIX] point_of_sale: stupid typo introduced by previous forward-port 2017-09-06 18:09:23 +02:00
Christophe Simonis b8dd34fcbb [MERGE] forward port branch saas-16 up to 64d56995e0 2017-09-06 13:29:05 +02:00
Thibault Delavallée 16541ae2ae [FIX] website_sale: fix call to generate_and_pay_invoice
Still using saas-16 call convention. Method arguments have changed since then.
2017-09-06 12:57:50 +02:00
Christophe Simonis 64d56995e0 [MERGE] forward port branch saas-15 up to ef5ac872b8 2017-09-06 12:26:36 +02:00
Christophe Simonis ef5ac872b8 [MERGE] forward port branch saas-14 up to ec0d51f20e 2017-09-06 11:28:11 +02:00
fwi-odoo 5563168fe7 [FIX] web: calendar: keep scroll after an event quick creation
Before this commit, the scroll was reset to the top of the calendar after
an event quick create.
This commit fixes this by defining the get/set localState for the calendar
renderer in order to keep the scroll and calling 'reinitView' from the
fullCalendar lib instead of always calling 'render'.
2017-09-06 11:17:29 +02:00
Christophe Simonis ec0d51f20e [MERGE] forward port branch 10.0 up to a4bcb66bfc 2017-09-06 10:59:06 +02:00
Christophe Simonis 827b1e8e3d [FIX] P3: reraise exception correctly 2017-09-06 10:57:35 +02:00
Nicolas Martinelli a4bcb66bfc [FIX] base_import: headerless import
- Import a CSV file without header
- Untick the option 'The first row contains the label of the column'

An error is reported.

If no header, the method `_match_headers` should return consistent
object types.

opw-769117
2017-09-05 16:37:48 +02:00
Géry Debongnie 983c7ae22f [FIX] web: proper x2m edition with pagination
Before this commit, we did not really handle gracefully editing a
one2many with many records. The main issue is that if the user was not
on the last page, creating a new record added it to the last page, which
is confusing and actually a bad idea for records with required fields.

This fix requires a way to track the current changes (because we do not
display the current state of the form view: the new record is displayed
in the first page, but is actually added at the end of the dataset).

Note that this probably does not solve all issues with pagination. This
is a quite delicate problem. We will add tests and fixes as needed.
2017-09-05 15:41:28 +02:00
Géry Debongnie fef645fcc5 [FIX] web: increase timeout for js tests
We have a new runbot server which is quite slow.  Because of this, it
takes too much time to run this unit test suite (for comparison, one of
the last build by the main runbot takes 126s).

This is necessary for now, until we use chrome headless or something...
2017-09-05 15:41:26 +02:00
Christophe Simonis 80ca45b161 [MERGE] forward port branch 9.0 up to e300a587b3 2017-09-05 12:14:05 +02:00
Christophe Simonis e300a587b3 [MERGE] forward port branch saas-6 up to 0099074ab2 2017-09-05 11:27:58 +02:00
Christophe Simonis 0099074ab2 [MERGE] forward port branch 8.0 up to ce12a7397f 2017-09-05 11:26:19 +02:00
Thibault Delavallée ce9ed600ca [FIX] website_portal_sale: fix override not passing all parameters to super
It does not have any impact in current stable as the inherited
method does not use it. However if another addon inherit it
it will not receive access_token depending on call chain. Let
us fix it.
2017-09-05 10:55:41 +02:00
Olivier Dony f4d541e51a [IMP] http: set HTTPonly flag on session cookie
This will reinforce the framework against potential XSS exploits
escalating to session hijack
2017-09-05 10:06:35 +02:00
Lucas Perais (lpe) e14ab69772 [FIX] point_of_sale: control if a cashier is in localstorage
Before this commit, we could temporarily change cashier from A to B, and back to A seamlessly just by refreshing the page.
This could be a security issue for a cashier is held responsible for its sales.

This commit stores the cashier in localstorage, and with the right sets of methods, corrects the issue.

OPW 767827

closes #19207
2017-09-05 08:41:33 +02:00
Olivier Dony ce12a7397f [FIX] base: remove early size limit on author field
The default size limits set in base.sql are eventually superseded by the
actual limits (or absence of) when the DB schema is synchronized with
the Python model definitions.

However the list of modules (name, authors, descriptions, dependencies)
is loaded before this can happen. The length of the author field is one
case that can easily crash the database bootstrap process at that point,
should a module with a long author name be present in the addons path.

After schema sync, that size limit is lifted entirely (although Odoo Apps
does limit the max author name length to 512 at the moment, to prevent
abuse).

Fixes #5850
2017-09-05 01:46:47 +02:00
Olivier Dony 53bd1266b6 [FIX] doc: mention psycogreen dependency for gevent worker 2017-09-05 01:45:26 +02:00
Christophe Simonis a9991e8082 [MERGE] forward port branch 10.0 up to abb726d4df 2017-09-04 18:47:40 +02:00
Christophe Simonis abb726d4df [MERGE] forward port branch saas-11 up to 431b30b478 2017-09-04 18:46:46 +02:00
Christophe Simonis 431b30b478 [MERGE] forward port branch saas-10 up to aab6bdd54a 2017-09-04 18:38:25 +02:00
Christophe Simonis 3ff4feafd2 [MERGE] forward port branch saas-15 up to 4d4d75709d 2017-09-04 18:12:00 +02:00
Christophe Simonis 4d4d75709d [FIX] core: also consider materialized views as existing
At the end of registry loading, a check is made on every model to
verify its table exists in the database. Materialized views weren't
considered during this check.

Note that we can't use `information_schema` views in this case because
it does include materialized views on purpose [1].

Forward-port of 4ca6945256

[1] http://www.postgresql-archive.org/Materialized-views-don-t-show-up-in-information-schema-tp5822643p5822644.html
2017-09-04 17:51:50 +02:00
Christophe Simonis fc2a39cc7d [MERGE] forward port branch saas-14 up to 99426b95b5 2017-09-04 17:12:40 +02:00
Christophe Simonis 99426b95b5 [MERGE] forward port branch 10.0 up to c5df78f38b 2017-09-04 16:15:28 +02:00
Elkasitu c5df78f38b [FIX] ir_model: Don't prefetch unnecessary fields
Do not prefetch unnecessary fields during the uninstallation of modules.

Previous to this commit, prefetching of unnecessary fields would cause server crashes
on some modules that add a field on ir_model_fields.
i.e. website_form
2017-09-04 15:46:19 +02:00
Elkasitu 8862bb01b9 [FIX] ir_model: Don't prefetch unnecessary fields
Do not prefetch unnecessary fields during the uninstallation of modules.

Previous to this commit, prefetching of unnecessary fields would cause server crashes
on some modules that add a field on ir_model_fields.
i.e. website_form
2017-09-04 14:57:13 +02:00
Cedric Snauwaert c39ad11d44 [FIX] account: when opening reconciliation from an account, only open view for that particular account 2017-09-04 14:44:01 +02:00
Christophe Simonis dad095de30 [MERGE] forward port branch 9.0 up to dc88a1ac42 2017-09-04 11:58:43 +02:00
Patel Jalpesh dc88a1ac42 [FIX] l10n_fr: migrate tags on taxes
Closes #19231
2017-09-04 11:55:45 +02:00
Lucas Perais (lpe) f98bb2b86b [FIX] website_sale: correct images of product and variants
Before this commit, when trying to edit through the website editor the product image, it was in fact the product variant that we edited.

This commit corrects it and when an image is displayed, the model it comes from is reliable

OPW 767539

closes #19168
2017-09-04 10:19:25 +02:00