Commit Graph
105914 Commits
Author SHA1 Message Date
qsm-odoo 57ff82f767 [FIX] website: hide the language selector in edit mode 2016-10-10 15:31:36 +02:00
Martin Trigaux 6c1e5e904f [ADD] base: Khmer language 2016-10-10 15:00:24 +02:00
qdp-odoo 53b1c76c99 [FIX] account: move menuitems at the right place 2016-10-10 14:43:59 +02:00
Christophe Simonis c60e43a9a4 [MERGE] forward port branch saas-13 up to 341bea8 2016-10-10 13:25:31 +02:00
Christophe Simonis 341bea8f88 [MERGE] forward port branch saas-12 up to 43cb4ac 2016-10-10 13:00:05 +02:00
jeffery chen fan 7332a39457 [IMP] mrp: add product qty into BoM structure view
As the unit of measure is displayed it makes sense to display the quantity too.
Closes #13703
2016-10-10 12:04:57 +02:00
Christophe Simonis 43cb4ac202 [MERGE] forward port branch saas-11 up to 3cdf429 2016-10-10 11:57:51 +02:00
Christophe Simonis 3cdf429f8b [MERGE] forward port branch 9.0 up to e2ede31 2016-10-10 11:39:52 +02:00
Diep Huu Hoang 71edb4fc4c [CLA] corporate CLA signature for Trobz
Closes #13680
2016-10-10 11:27:02 +02:00
Jeremy Kersten e2ede31238 [FIX] stock_dropshipping: Prevent dropshipping settings erasable by code update
These data should be in no update. Else at next update, it can change the configuration
of the production.

This commit closes #13404
Courtesy of @bealdav
2016-10-10 11:17:17 +02:00
Jeremy Kersten b770c3e5a3 [FIX] web: fix styling in many2many tag input
Since Chrome 53.0.2785, the input select is hover the existing tag.
With this fix, the existing tag are displayed at the right side of
the input to create a new one.

This commit closes #13655

Courtesy of @8cells
2016-10-10 11:17:17 +02:00
Martin Trigaux fc2e80cb4b [I18N] export 10.0 source terms 2016-10-10 11:00:26 +02:00
Nicolas Martinelli 9548fcb2e5 [FIX] event_sale: confirm registration
When a user registers for an event on the front-end, the confirmation of
the associated SO will also confirm the registration. However, if a SO
is created manually and a ticket event is added to it, the confirmation
of the SO will not trigger the confirmation of the registration.

In the second case, the registration simply doesn't exist yet at
confirmation and is created by the method `default_get` of
`registration.editor`.

We make sure to confirm these registration when we make the final
reservation.

opw-688665
2016-10-10 10:24:57 +02:00
qsm-odoo 4cfcbb9ebd [FIX] website_blog: fix tour tip messages typo
* Clich -> Click
* Yoru -> Your
2016-10-10 10:17:01 +02:00
Sébastien BEAU 1c2a7b8e3f [FIX] purchase: copy company in picking
In a multi-company environment, we need to make sure to copy the company
of the PO to the company of the picking. Otherwise, it might happen than
the PO as a different company than the picking.

Closes #13129
2016-10-10 09:57:14 +02:00
Odoo Translation Bot 7185ae4f67 [I18N] Update translation terms from Transifex 2016-10-09 00:34:56 +02:00
Danimar Ribeiro 6af9a69a65 [FIX] recordset in domain value
closes #13693
2016-10-07 12:23:17 +02:00
Michael Brown d477dcc316 [FIX] models: fix behaviour of 'defer_parent_store_computation'
If a model uses nested sets to maintain a hierarchical record
ordering, then bulk inserts (e.g. via a CSV import) are likely to
suffer from an O(n^2) performance penalty, since there is a high
chance that each new record will require many of the existing records'
parent_left and parent_right fields to be updated.

The context parameter 'defer_parent_store_computation' may be passed
to the load() method, in order to defer updating the parent_left and
parent_right fields until after the bulk operation is complete.  This
appears to have last been fully supported in version 7 (via the old
import_data() method).

It is still possible to specify 'defer_parent_store_computation',
e.g. via an XML-RPC call such as

  m.execute_kw(dbname, uid, password, 'stock.location', 'load', [],
               {'fields': fields, 'data': data,
                'context': {'defer_parent_store_computation': True}})

This will currently defer the recalculation of parent_left and
parent_right, but does not correctly call _parent_store_compute()
after the bulk operation is complete.

Add the missing call to _parent_store_compute() to perform a one-time
update of the parent_left and parent_right fields if needed after the
import operation is complete.

Also fix the child_of_domain() and parent_of_domain() expression
methods, so that the 'child_of' and 'parent_of' operators give correct
answers when updates to parent_left and parent_right have been
deferred.

Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>

Closes #13688 (part 2/2)
2016-10-06 17:52:03 +02:00
Michael Brown 22c4a0c1b0 [FIX] expression: pass context to hierarchical domain operators
The expression context is currently passed to to_ids() but is missing
from all calls to child_of_domain() or parent_of_domain().  These
methods are effectively always passed a context of None.

Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>

Closes #13688 (part 1/2)
2016-10-06 17:51:28 +02:00
Michael Brown 1b3d60d961 [FIX] product: speed up product.template bulk record creation
Bulk inserts of product definitions (e.g. via a CSV import) will
suffer from an O(n^2) performance penalty due to an unfortunate cache
invalidation bug.  The underlying cause is difficult to determine due
to the labyrinthine nature of the relationship between product.product
and product.template, but some key elements are:

- The "product_variant_count" field is a non-stored computed field,
  and so gets invalidated by the call to recs.modified(upd_todo) in
  BaseModel.create()

- Field.determine_value() will call _prefetch_field() to repopulate
  "product_variant_count" by refetching all records from the database,
  despite the fact that "product_variant_count" is not stored in the
  database.

Using the length of "product_variant_ids" directly (instead of going
via "product_variant_count") seems to avoid this problem, possibly
because the definition of "product_variant_ids" conveys more
information about the circumstances in which its value must be
invalidated.

An alternative solution of making product_variant_count a stored field
(using the same trigger as for other variant-derived fields such as
volume and weight) works but still results in some unnecessary fetches
and invalidations.

Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>

Closes #13689
2016-10-06 13:02:52 +02:00
Martin Trigaux ef60b24ce6 [I18N] fetch new 10.0 terms from Transifex 2016-10-06 08:43:22 +02:00
Christophe Simonis 020440f500 [FIX] packaging: correct docker build name (part2) 2016-10-06 02:54:53 +02:00
Damien Bouvy 9b55bf5b3d [DOC] doc: add documentation for mixins and useful classes
Documentation to help developers use the following classes:
- utm.mixin
- rating.mixin
- website.published.mixin
- website.seo.metadata
- mail.thread
- mail.alias.mixin

After careful consideration, the ir.needaction.mixin was
not included in this doc page since it is no longer displayed
anywhere and will be dropped quite soon.
2016-10-05 23:06:23 +02:00
Damien Bouvy 49033e3ec6 [FIX] website_quote: make table for options similar to pricing table
The options table displays the following columns:
Product name | Description | Price
while the pricing table ommits this first column. This is quite a
good idea as products are not always accessible to portal/public
users depending on what modules are installed (notably website_sale
which introduce the published/unpublished record rule on products).

To avoid introducing an extra-sudo simply for display reasons,
this commit simply remove the product name column and harmonizes
the options display with the main pricing display.
2016-10-05 22:31:11 +02:00
Damien Bouvy 4b831fb4b9 [FIX] website_quote: browse acquirer with sudo in all cases
Somehow in the migration to the new api, it was decided that the
acquirers would be browser as sudo only for token access. This caused
portal users to have a crash when trying to view their quotation since
some fields from acquirers are set the specific groups for security.

This commit reintroduces the old behaviour, which was to browse as
SUPERUSER in all cases for the rendering of the buttons.
2016-10-05 22:31:11 +02:00
Christophe Simonis 780869879b [REL] 10.0 \o/ 2016-10-05 21:00:09 +02:00
Christophe Simonis 18cdce919b [FIX] packaging: correct docker build name 2016-10-05 20:59:43 +02:00
Olivier Dony f18def7175 [FIX] web_settings_dashboard: stop depending on old numbering scheme 2016-10-05 17:28:15 +02:00
Denis Ledoux 60a59b607a [FIX] mail: handle undefined customer_email_data
`customer_email_data` can be undefined.
It must therefore be checked before testing
its length

e.g. use the /helpdesk command with an anonymous visitor
of the livechat

opw-690301
2016-10-05 16:46:55 +02:00
qsm-odoo fb363b572b [FIX] *: adapt odoo interface violet
Change color #a24689 to #875A7B

Commit https://github.com/odoo/enterprise/commit/8ac1c19fac7615fecd51e670f798d13158a4e53c
changed the odoo interface violet by changing the main LESS variable
but forgot there was many direct occurences in XML/HTML/... (for
example for the mobile browser color).

Even if it's community the odoo interface violet is used at many places
(module description, XML demo data, ...).
2016-10-05 10:29:00 +02:00
Denis Ledoux 3babd230b0 [FIX] sale: tour, remove tip which is about another module
A customer can confirm a quotation only once `website_quote` is
installed. Without it, this isn't possible, and by default
this is not installed with the installation of the `sale` module.

Courtesy of fgi@odoo.com.
2016-10-05 10:02:34 +02:00
qsm-odoo b970eaac15 [FIX] website: set the correct height for welcome message
Commit 48a1eaf792 adapt the welcome
message on website so that it fits the page height. But this does
only worked for large screens as the height was forced to main
height... which is smaller than the default welcome message height
on small screen. The fix only had to use min-height instead of height.
2016-10-04 21:49:44 +02:00
qsm-odoo 9337c7d4e2 [FIX] website: properly reload editor after menu edition
Commit 5f98040430 in saas-12 changed
some "saved" event to "save" event but forgot to adapt new features
which depend on this in 10.0 after forward port.
2016-10-04 21:25:19 +02:00
qsm-odoo 0175395c13 [FIX] website_blog: prevent customization of blog post outside of blog
The blog_cover JS code is only available on blog pages. So the option
can only be activated on blog pages (which was not the case if the
snippet latest post was used on a random page).
2016-10-04 17:04:40 +02:00
qsm-odoo 6c284a18d4 [FIX] web_editor: allow website_animate to preview image animation
Animation preview on images did not work as the web_editor stopped
every potential animation when an image entered edition. As the
behavior does not seem useful as there is no infinite animation which
is possible with standard odoo (and even if it was the case, it would
not be too strange that the animation continues), the feature is
removed with this commit.
2016-10-04 16:43:34 +02:00
qsm-odoo 4b6bbbe5e6 [FIX] web_tour: adapt tip color to new brand color
Since commit 8ac1c19fac7615fecd51e670f798d13158a4e53c the odoo brand primary color
changed, which also changed the color of tips. The problem
was that they lose a lot of contrast in the appswitcher.
2016-10-04 10:25:05 +02:00
Valencia Rodrigues Sah 10dcec1e9a [IMP] account: It is better to order also by 'id', esp. when 'sequence' could match among multiple records. 2016-10-04 10:24:03 +02:00
Nicolas Lempereur 886751e2c1 [IMP] base: upstream_dependencies called from new api
In saas-12 and up, upstream_dependencies returns:

- when called from old API : a list of ir.module.module ids
- when called from new API : a recordset of ir.module.module

From 9.0 to saas-11, when called from new API it would also returns a
list of ids which can bring needless inconsistencies.

With this commit when called from new API a recordset is returned.

opw-690015
2016-10-04 09:29:31 +02:00
Olivier Dony f9da4970ab [MERGE] Forward-port saas-11 up to eb6b256f99 2016-10-04 01:20:17 +02:00
Olivier Dony 48b4da63e7 [IMP] res.users: remove special case for sudo() in read_group
Neither the super-user nor the sudo() mode should need
to use read_group() on any of the private user fields.
So we can simplify the code and remove this special case.

The same is not true for read(), though.
2016-10-04 00:21:09 +02:00
Olivier Dony 2e71496695 [FIX] hr_expense: order sheets even when not paid 2016-10-04 00:21:09 +02:00
Olivier Dony eb6b256f99 [MERGE] Forward-port 9.0 up to b64b9619f8 2016-10-04 00:16:09 +02:00
Olivier Dony b64b9619f8 [MERGE] Forward-port saas-6 up to 447179c2d3 2016-10-03 23:59:12 +02:00
Olivier Dony 447179c2d3 [MERGE] Forward-port 8.0 up to 3d55aff1c8 2016-10-03 23:53:23 +02:00
Olivier Dony 3d55aff1c8 [FIX] convert: properly catch Value/Name Errors 2016-10-03 23:41:44 +02:00
Olivier Dony ba7880a249 [FIX] base: force local cursor in case of mismatch 2016-10-03 19:48:09 +02:00
Olivier Dony 12634e1227 [FIX] base_import_module, tools: raise a clear error for unsupported file types
Also restrict XML data attribute evaluation context
even for real module data files. This will prevent
accidentally depending on context parameters that
would not be available inside base_import_module.
2016-10-03 19:48:09 +02:00
Thibault Delavallée 0b87f76628 [IMP] mail: separate management of mail routes from redirection
Move code related to redirection in its own class method. This way all
controllers perform their own actions and checks before calling the
redirection itself. Moreover it is necessary for some controllers to be
able to call the redirection independently outside of the mail/view
controller scope.

This commit also fixes some links generated for mail notification email
buttons. Assign and (un)follow buttons now effectively use the link helper
when generating the associated URL instead of manually crafting it.

Custom routes for notification buttons used in HR and CRM are added.
Indeed in order to be able to fine-tune the behavior called by those
buttons, using dedicated controllers is simpler than trying to use
a generic one. As there are few custom buttons in notification emails
using dedicated controllers does not lead to a code overhead.
2016-10-03 19:03:50 +02:00
Martin Trigaux 859bcd45c6 [I18N] export sources terms to reflect planner update
in saas-13 as it's still where Transifex watches .pot files
2016-10-03 19:03:18 +02:00
Christophe Simonis 87b12bea89 [FIX] account: use renamed decimal.precision (see 4b60d5c1bd) 2016-10-03 18:48:48 +02:00