Commit Graph
111138 Commits
Author SHA1 Message Date
Jérome Maes b99311b0e9 [FIX] mass_mailing: use correct regex to detect href content
link_tracker use a regex to determine the content of
a 'href' tag, taking the 'mailto:xxxx@yyyy.zz' case
into account. mass_mailing use another regex that simply
don't.
So when sending a mass mailing containing email link,
the email will be appended by url path of tracking
url '/m/<stat_id>'.

This commit makes mass_mailing use the same regex as
link_tracker (which is in the dependencies of mass_mailing).

opw-727779
2017-04-07 15:52:13 +02:00
Fabrice Henrion a76ed8f2f3 [IMP] marketing_campaign: better icon
Keyboard is not a clear icon.
Calculator is better for statistics.

Closes #16095
2017-04-07 15:48:59 +02:00
Fabrice Henrion 5420c92b89 [IMP] mail: better notification icon
This icon allows to control what types of notifications you want to receive.
That an icon typically used for "notifications" is better than an icon
typically used for "reminders" and "alarms". There is the risk of a wrong
expectation because reminders and alarms have a notion of time associated to
them: reminders in the future or alarms in the future at a given time. In the
case of a follow, there is no "future time" concept, whereas there is a
notification concept. It makes even more sense when we look at the placement of
this icon on the right side of the label "Following".

Closes #16170
2017-04-07 15:40:55 +02:00
jaredkipe cf81b665e5 [FIX] hr_timesheet_attendance: convert field type
Bad migration of new API, was a float field.
Probably introduced at 510d260

Closes #16290
2017-04-07 15:12:22 +02:00
Christophe Simonis d4d5181285 [MERGE] forward port branch saas-6 up to 271067f50c 2017-04-07 15:11:50 +02:00
Nicolas Martinelli 606712a5d2 [FIX] web: refuse DB name with space
In v8, it was not allowed to create a DB with a name containing a space.
This should still be the case from v9 since it causes issuesfor backup
scripts, for example.

Reintroduces 1a0e9063d4

opw-727613
2017-04-07 14:53:01 +02:00
Yannick Tivisse 1452a9903c [FIX] account: Use the invoice shipping address to select the fiscal position
Tribute to Ray Carnes

PURPOSE
=======

Since the fields shipping_partner_id has been added on the invoice model, the onchange triggered by the partner_id hasn't been modified.

SPECIFICATION
=============

The shipping_partner_id will be picked by default to select the fiscal position. If there's no shipping partner, it will check if a 'shipping' partner is a child on the partner_id.
2017-04-07 14:33:02 +02:00
Levent Karakaş 7e8d37462b [ADD[ base: address format for Turkey
Closes #16304
2017-04-07 14:13:37 +02:00
Miku Laitinen b3c949b0c5 [FIX] doc: migration from community to enterprise
In the beginning Odoo Enterprise addons contained a second web module. At some
point that was replaced with web_enterprise, but the documentation wasn't
updated.

Describe the proper changes.

Closes #16302
2017-04-07 14:00:25 +02:00
Fabien Meghazi a859c3b6b3 [REM] Remove 'state' group_by filter in purchase order line search view (opw: 727796)
The group by on state in this search view cannot be used due to a typo
in the 'state' field's attribute "stored=True" dbe3d8035f

It can't be fixed in 9.0 as it would change the schema, hence the only
option is to disable this filter in 9.0

This should not to be forward ported to 10.0 as it is already fixed for
this version in 3451ac5254
2017-04-07 13:17:36 +02:00
Joren Van Onder d17c302c0a [FIX] point_of_sale: undo mobile browser autoscroll in client list
Mobile browsers attempt to scroll invisible input elements into
view (eg. when they end up hidden behind the on-screen keyboard). The
browser does not always correctly undo this. This is problematic
because the main window in the client list is not actually scrollable
for the user, so you ended up with part of the widget cut off. This
implements a workaround that scrolls to top when input elements are
blurred. Removing the blur handlers is not necessary because the input
elements get removed.

opw-706781
2017-04-06 17:01:22 -07:00
Goffin Simon c8a434306f [FIX] website_sale: Updating price on Optional Products
When changing the quantity of a product in Optional Products modal
in the shop, the price was not updated according to the pricelist.

opw:726686
2017-04-06 17:37:19 +02:00
Goffin Simon 428d9e8177 [FIX] odoo: Copy a record in other language than US
When copying a record in an other language L than US, first a translation
was created for L by the create called in the copy function and afterwards,
a second translation was created by the function copy_translations

So there were two duplicated translations for L instead of one.

opw:706865
2017-04-06 17:13:15 +02:00
Nicolas Martinelli 28c158cd13 [FIX] crm, sales_team: dashboard shortcuts
Partially an incorrect forward port of 27b6451. Moreover, the shortcuts
"exp. closing" and "overdue" use the action
`crm_lead_action_activities`, which filters by default
`activity_date_deadline != False`. This should be used as well when
counting.

opw-725666
2017-04-06 16:56:44 +02:00
Raphael Collet 6595cfdf0c [FIX] expression: avoid useless query when searching on x2many sub-field
Searching on a domain like `[('m2m.sub', operator, value)]` currently does
something like:

    right_ids = comodel.search([('sub', operator, value)]).ids
    table_ids = model.search([('m2m', 'in', right_ids)]).ids

and reduces the domain triple to `('id', 'in', table_ids)`.

The domain triple can actually be reduced to `('m2m', 'in', right_ids)`.  With
this reduction, the search on the field `m2m` will be done as part of the main
query.  And this will also enable the optimization of the former fix!
2017-04-06 16:46:46 +02:00
Raphael Collet 5219dcbae3 [FIX] base: malformed base.pot 2017-04-06 16:30:29 +02:00
Raphael Collet 3c2065c89d [FIX] expression: use sub-select when searching on many2many field
Avoid pathological performance issue caused by injecting ids retrieved with
another query.

Consider a domain like `[('m2m', 'in', ids)]` on a many2many field.  The
current implementation will perform the subquery:

    SELECT m2m_id1 FROM m2m_table WHERE m2m_id2 IN (ids)

and inject its result into the main query as:

    SELECT id FROM ... WHERE id IN (result_ids)

The latter may be very slow if `result_ids` is a huge list of ids.

The fix injects the first query into the main query as:

    SELECT id FROM ... WHERE id IN (
        SELECT m2m_id1 FROM m2m_table WHERE m2m_id2 IN (ids)
    )

As a result, the database will typically JOIN both tables, and avoid generating
the whole list from the subquery.
2017-04-06 15:59:50 +02:00
Martin Trigaux 58918fb826 [FIX] account: bad forward port
Field remaining from 9.0 when cherry picking #16236 to #16282
2017-04-06 15:57:03 +02:00
Thomas Binsfeld f79e2fd318 [IMP] account: add prepare methods for exchange diff move lines
Such prepare methods are useful in situations where we want to propagate some
analytic dimension to exchange difference move.

Closes #16282
2017-04-06 15:17:17 +02:00
Thomas Binsfeld 01add1fe15 [FIX] account: browse only one record
Part of #16282
2017-04-06 15:11:31 +02:00
lap-odoo ba1bf379f4 [IMP] l10n_ar: update taxes descriptions
Replace taxes descriptions code into a clear tax description for l10n_ar. Was PR #16201
2017-04-06 15:08:33 +02:00
lap-odoo 70d351ebb2 [IMP] l10n_ca: update taxes description
Replace taxes descriptions codes by clear tax description for l10n_ca. Was PR #16202
2017-04-06 15:06:48 +02:00
Raphael Collet 6621ade382 [FIX] ir_model: prevent renaming/removing fields that are used in views 2017-04-06 15:06:06 +02:00
Raphael Collet 5a1672fab8 [FIX] ir_model: field names must be unique per model 2017-04-06 15:05:52 +02:00
Raphael Collet 6b48098c81 [FIX] ir_model: field names must be valid pg identifiers 2017-04-06 15:05:52 +02:00
lap-odoo 8d3556859d [IMP] l10n_ec: update account_tax description
Was PR #16203
2017-04-06 15:02:02 +02:00
Christophe Simonis 271067f50c [MERGE] forward port branch 8.0 up to 3128e84243 2017-04-06 14:46:56 +02:00
Christophe Simonis 6afea0b96a [FIX] base: allow non instanciation of manual fields in partial loading 2017-04-06 12:31:02 +02:00
Odoo Translation Bot e08590320d [I18N] Update translation terms from Transifex 2017-04-06 11:41:10 +02:00
Raphael Collet 6498f35145 [IMP] base: add individual module exclusions 2017-04-06 11:17:58 +02:00
Raphael Collet c29cac23fb [IMP] base: add boolean field 'exclusive' on module categories
When set, this flag restricts the installation of several modules
from the same category.
2017-04-06 11:17:58 +02:00
Nicolas Martinelli e79d94438e [FIX] website_sale{_options}: quantity over 999
The fields containing the quantity of product doesn't display numbers
over 999 correctly: only 3 digits display in the field.

We add a specific class `quantity` for input fields, with a padding of
zero. The class `js_quantity` is not used since it is linked to jQuery
events.

opw-727640
opw-725671
2017-04-06 11:05:30 +02:00
Fabien Pinckaers 846bf1bb4a [IMP] sale: analytic account visible for sales & quotations 2017-04-06 09:47:31 +02:00
Goffin Simon d444fbcc1a [FIX] l10n_at: Vorsteuer 2500 account
The type of account Vorsteuer 2500 is Non-current Assets(like in l10n_be).
In this way, the amount due will include the taxes Vorsteuer 10%
and Vorsteuer 20% when computing the amount due with _compute_residual
because the account is not receivable or payable.

opw:725619
2017-04-06 09:21:21 +02:00
Nicolas Martinelli d4684ba7cd [FIX] sale: 100 % discount
- Set discount policy: Show public price & discount to the customer
- Set a product with 100% discount

When added to a SO, the product discount is 0 %.

opw-727519
2017-04-06 08:37:59 +02:00
Nicolas Martinelli 48aefe61f0 [FIX] mrp: warning for lot
Complement of commit 85132f68d2

opw-727679
2017-04-06 08:35:43 +02:00
qdp-odoo df755ef6d4 [FIX] account: reverse move now also reconcile together liquidity amls.
This is needed in order to clear the 'unreconciled payments' in the bank statement reconciliation report when you wrongly encoded a bank statement and reversed it.
This patch goes along with the modification of the bank reconciliation report in enterprise to exclude such 'reconciled' lines.
2017-04-05 17:31:19 +02:00
Jeremy Kersten ff8f50d3b3 [IMP] website_sale_wishlist: improve wishlist after first users test
- Update Cart Quantity when 'add to cart'
- Change usability for b2b/b2c add/move to cart
- Disable 'add to wishlist' if already in wish list
- Wait the commit of 'Move to cart' of the last item
  before the redirect to avoid to get a fake empty cart.
- Reset red notification after a small delay
- Fix 'list of variants' optional feature (broken by commit 045a859)
- Adjust animation to match cart/wishlist
- Fix button cart / wishlist / comparison order
- ...

Courtesy of @adr-odoo for testing
2017-04-05 17:27:15 +02:00
Jeremy Kersten bd17dfe019 [FIX] payment_paypal: pdt parsing - accept error as response
In case of error, paypal return some lines where error message and not a
string with 'key=value'.

This commit fix traceback:
ValueError: dictionary update sequence element #0 has length 1; 2 is required
2017-04-05 17:21:07 +02:00
Nicolas Lempereur dff2cf3ca1 [FIX] base: field monetary lose context of t-lang
In monetary field refactoring (3407fb70e4) there was a small issue that
made context lost so the language use to render the field could be
different from the one to render the view.

For example: if the user has english, and print a report using the lang
of a partner in language spanish, the report would use spanish to format
number for all fields but monetary (which would use english).

opw-708197
2017-04-05 14:49:03 +02:00
Martin Trigaux 0ac2ca9b14 [FIX] point_of_sale: translate close button
Evaluated when loading the widgets
2017-04-05 14:26:12 +02:00
Richard Mathot a16da9f9c6 [IMP] mrp: price on product should be changed when receiving from production in average price, not only from supplier 2017-04-05 14:05:15 +02:00
Lucas Perais (lpe) ca7cd3ffd3 [FIX] l10n_do, l10n_cr: compatibility of res.partner.title between the two modules
The two modules should create/update their data (res.partner.title) as a shared resource -- in module base

OPW 725362
2017-04-05 13:54:26 +02:00
Wolfgang Taferner bf781cf740 [FIX] mrp: BoM count detection in case it is a single variant
In case a product is a single variant we should not leave it with a BoM
of zero as soon there is a BoM for its template. This would for example
hide the `compute_price` object button which relies on the `bom_count`to
be visible.

BoM is not found for a single variant product and compute price not
possible from the `product.product` view although it is implemented
actually there.

Closes #16237
2017-04-05 12:00:39 +02:00
Nicolas Martinelli 3128e84243 [FIX] account: aged receivable
- Create an invoice of 10000 at date 2016-11-30, due 2017-02-28
- Make a partial payment of 1500 at date 2016-11-09
- Make a partial payment of 1000 at date 2016-11-30
- Make a partial payment of 2000 at date 2017-01-30

At current date (e.g. 2017-04-04), run the Aged Partner Balance. 5500 is
still due, but set to the +120 days period instead of 30-60.

opw-725890
2017-04-05 11:50:03 +02:00
Jerther 33076f7394 [FIX] stock: set AML date same as move date
Based on v9 fix: f6b6eb906d

Closes #16217
2017-04-05 11:31:19 +02:00
Denis Vermylen 7787e91d68 [FIX] models: don't call name_get on falsy records
The call of the name_get on records with falsy ids was unnecessary
as it wasn't used afterwards and could lead to errors if a name_get
doesn't handle falsy records.

solves https://github.com/odoo/odoo/pull/16244
2017-04-05 11:24:02 +02:00
Nicolas Martinelli 8f39ad2be6 [FIX] point_of_sale: action_assign before force_assign
This allows the reservation in sub-locations before forcing the
availability.

opw-726060
2017-04-05 11:09:26 +02:00
Jerther 52c58fd218 [CLA] backport signature to 8.0
Done at #16240
2017-04-05 10:48:35 +02:00
Nicolas Martinelli 85132f68d2 [FIX] mrp: warning for lot
The constraint should only check for move lots with a lot number already
filled in. Indeed, in case we use work orders, we can potentially create
move lots without S/N, and fill in the S/N later.

opw-727679
2017-04-05 09:47:54 +02:00