Commit Graph
106440 Commits
Author SHA1 Message Date
Jeremy Kersten 8033467be6 [FIX] marketing_campaign: fix diagram view - type has been renamed to action_type
During migration to new api the field has been renamed but not the condition in the diagram
2016-10-11 16:29:37 +02:00
Jeremy Kersten 39d4486ded [FIX] calendar: rename function call for _get_recurrent_date_by_event
Function has been prefixed with an underscore by commit #21e4579551a

Avoid traceback where 'get_recurrent_date_by_event' is not defined

Thix commit closes #13727
2016-10-11 15:45:05 +02:00
Jeremy Kersten 43d4b37435 [FIX] utm: remove auto install.
First module which need it, will install it with dependences.

This commit closes #13739
2016-10-11 15:25:33 +02:00
Jairo Llopis dd312e0da2 [FIX] fields: make [(5,)] with computed domain work (#13480)
* Failing test for one2many [(5,)] action, when domain is callable.

The problem is that `self` inside a callable domain becomes the comodel when at [(5,)].

* [FIX][fields] Make [(5,)] with computed domain work.

To reproduce this failure, declare a field like:

```
child_ids = fields.One2many(
    comodel_name="other.model",
    domain=lambda self: [("id", "in", self._ids_to_find())],
)
```

Now set some value to it.

Now unset them. Impossible because ``self`` becomes ``other.model`` in domain evaluation.
2016-10-11 15:14:05 +02:00
Aaron Bohy 8e113aebf1 [FIX] web: X2Many list views: don't display action buttons 2016-10-11 13:52:04 +02:00
Martin Trigaux 731fe1c9ab [FIX] doc: avoid conflict on extenstion and odoo folder 2016-10-11 12:09:28 +02:00
Martin Trigaux 9528024536 [FIX] doc: building correctly autoclass references 2016-10-11 12:09:27 +02:00
Jeremy Kersten 633780a00c [FIX] web,crm: view_list respect group operator defined in the view.
Remove useless avg defined on crm view.

If you define avg='Average Values' in a view, now we see in the footer of list view the average.
2016-10-11 11:50:24 +02:00
Jeremy Kersten 4ca06e0255 [FIX] fields: add group_operator to be availble in get_description.
Web client use fields_get (which one call get_description) to know if
a group operator exists. But until now, group_operator are never returned.

Without it, the web client cannot display the sub-total except for sum
(the fallback in the web client).

This commit closes #13713

Todo: do the same on Class Monetary in next branch
2016-10-11 11:49:55 +02:00
Martin Trigaux acaf0f1e19 [FIX] doc: set the correct title length
Avoid 'Title underline too short.' error
2016-10-11 11:17:44 +02:00
Ravi Gadhia 0afe5d4af5 [FIX] web: hide "Create" button for editable tree views with create="false"
Make it such that the buttons "Save" and "Discard" are still visible.
2016-10-11 10:22:10 +02:00
tdi-odoo eb358d6e34 [FIX] account: fix access rights on multi currency menuitem
Because we need to be able to activate currencies as soon as we check that option in the settings, so the menuitem should be visible outside of the developper mode.
2016-10-11 10:05:50 +02:00
qdp-odoo 587ca36e45 [REV] account: revert commits 45e2a6abdc and 7e61cd7dd3
The web client does not like having twice the same field defined, so those patches weren't consistantly working... yeah, you could say that the account.payment view was totally broken
2016-10-11 10:01:42 +02:00
Thibault Francois 46f3ca0f7b [FIX] res_partner: add index on commercial_partner_id
This commit closes #13716
2016-10-11 09:36:03 +02:00
Goffin Simon 1eb4bb5d74 [FIX] account: Fiscal position tax mapping to including tax
According to the documentation it makes sens to map an excluded tax
with an included tax. For example in Belgium, B2C taxes are generaly
included and B2B taxes are excluded. Then we can manage this situation
by creating a pricelist with prices for B2B and B2C.

opw:688085
2016-10-11 09:22:11 +02:00
Nicolas Martinelli d60354aaf7 [FIX] account: analytic account on write-off
When an analytic account is specified on a write-off move, it should be
written on the move line linked to the write-off account, as it was the
case in v8.

opw-688635
2016-10-10 17:01:21 +02:00
qsm-odoo e117671a8b [FIX] sale_crm: change position of mispositionned tip
The tip is placed on a text right aligned button so the tip appears
mispositionned. This commit simply changes the tip to be on the right
instead of the bottom.
2016-10-10 16:28:04 +02:00
qsm-odoo 6c9b2e202c [FIX] web_editor: change attachment/image icon in editor bar
The image icon was not clear enough. The editor bar appears in the
website builder, the mail composer, the forum composer, ... In each
of them, we can both link a picture or a file but a picture makes
more sense in some context and in some other ones not.

This commit solves the problem by changing the icon to fa-file-image-o
which is a mixed of file and image. This also solves the problem of
having two buttons with the image icon in the website builder (indeed
an image icon is also used for the image look button).
2016-10-10 15:31:36 +02:00
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
Nicolas Martinelli 2990060b7d [FIX] base_import, base_action_rule: fix traceback
When importing an action rule, an error occurs:
- The import is committed when the user clicks on "Validate"
- The import fails with a traceback when the user clicks on "Import"

This is because commit 7d648542 introduces a `cr.commit()` in the
`_update_registry`, while nothing should be committed upon import
validation.

opw-683874
2016-10-10 14:57:18 +02:00
qdp-odoo 53b1c76c99 [FIX] account: move menuitems at the right place 2016-10-10 14:43:59 +02:00
Martin Trigaux 3f192abafb [FIX] base: correct the translation of auth_ldap module
Invalid rst made the description rendering to crash

Fixes #13695
2016-10-10 13:56:50 +02:00
Martin Trigaux a26b805f5e [FIX] point_of_sale: remove unvalid ACL
The field bank_statement_id was removed at c04065a
The rule is no longer working and we have no link between a cashbox and a bank
statement anymore.

Fixes #13550
2016-10-10 13:56:50 +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
qsm-odoo f242721eb0 [FIX] website: fix FAQ Roller opening on old apple devices
On old apple devices (IPad 2, IPhone 4, ...), the FAQ Roller could not
be opened on click. This is because the snippet does not use standard
bootstrap correctly and put the toggle on a <div/> element instead of
a <a/> element.

This fix forces an empty click handler on these <div/>, which allows
standard bootstrap to work.
2016-10-10 12:08:27 +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
Christophe Simonis 67d285b9bc [MERGE] forward port branch 8.0 up to d3c4ab2 2016-10-10 11:22:55 +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
Nicolas Martinelli a1d6c2d631 [FIX] account: check exchange rate
An issue occurs in the following situation:
- Define a currency exchange rate at day 1 and day 2
- Create an invoice at day 1, and calculate the taxes. Do not set an
  invoice date!
- Validate the invoice at day 2

The exchange rate for taxes is the rate at day 1, while the exchange
rate for other amounts is the rate at day 2.

There is actually no way to know what was the rate applied for the
taxes at invoice validation. There are two solutions:
- recompute the taxes at validation
- force the user to set an invoice date and recompute manually the
  taxes

The first solution might have unexpected effects, therefore the second
solution is applied.

Fixes #13473
opw-688517
2016-10-10 10:08:33 +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 d3c4ab23e4 [I18N] Update translation terms from Transifex 2016-10-09 02:56:21 +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
Denis Ledoux 964f42fb86 [FIX] purchase_double_validation: from waiting approval to cancel
It wasn't possible to cancel a purchase order
within the state "Waiting for Approval", despite
the fact the button cancel is displayed.

Clicking on the cancel button just did nothing.

This is now properly working, thanks to the additional
path added by this revision, between the workflow states
`CheckForApproval` and `cancel`.

opw-688685
2016-10-06 16:07:16 +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