Commit Graph
94342 Commits
Author SHA1 Message Date
Jeremy Kersten 825c2b3ff5 [FIX] website_hr_recruitement: allow utm for job apply 2015-03-18 16:51:05 +01:00
Christophe Simonis fd3cd5ecc2 [MERGE] actually forward port of branch 8.0 up to e27744d
I screw up previous forward port that end up as a normal commit.
This commit is empty to track that a merge actually happen.
2015-03-18 14:11:05 +01:00
Christophe Simonis a329aa1949 [MERGE] forward port of branch 8.0 up to e27744d 2015-03-18 14:05:02 +01:00
Christophe Simonis e27744df0c [MERGE] forward port of branch saas-3 up to b79f64f 2015-03-18 13:16:23 +01:00
Antony Lesuisse 7dbd495985 [IMP] website: server actions allow trailing paths 2015-03-18 13:10:58 +01:00
Christophe Simonis b79f64f1f8 [MERGE] forward port of branch 7.0 up to e1daaff 2015-03-18 12:52:33 +01:00
Nicolas Lempereur e1daaff8e0 [FIX] kanban: propagate context of many2many field
Propagate the context in kanban view when displaying a many2many field.

fixes #5623, closes #5681

opw-629698
2015-03-18 12:32:24 +01:00
Olivier Dony 489a96c257 [FIX] product.template: name_search order + mismatch on IDs
Improve commit bf31ab6718:
 - do not use the product.product name_search() when there is no
   search term (it's only useful with a search term
 - do not use the product.product name_search() when the extra
   domain (args) has a criterion on IDs - these will be *template*
   ids, not *variant* ids, so the results would be wrong
 - Since templates and variants use a different natural `_order`,
   perform an extra name_search() on templates after gathering the
   ids to return, to apply the proper sort ordering. Increases the
   penalty by doing 2 name_search() calls.

This issue could be seen e.g. in the breadcrumbs where the
display_name variable is displayed for templates, and indirectly
relies on name_search() due to an old hack in call_kw in order to
implement the "future_display_name".
2015-03-18 11:40:51 +01:00
Raphael Collet 6aa28a89bb [FIX] models: compute many2many field on existing records when field is introduced by an update 2015-03-18 09:43:45 +01:00
Christophe Simonis 98c1a82e68 [FIX] mail, share: correct module update.
a6eac0f08e introduced a new `res.groups`
belonging to the "Sharing" category.
As this group has the flag `shared`, it is ignore when generating the
group's user view (and its virtual fields).

When updating `mail` module, the `share` module (which depend on mail)
is not loaded yet. This mean this new group is taken into account when
getting the `res.users` virtual fields.
As this group belong to the same category as the `share.group_share_user`
group but dont have an inheritance link between them (`implied_ids`),
they are generated as `boolean` instead of a single entry `selection`
field. This create a missmatch between the fields and the previously
generated view, which forbid inheritance application.

Force view regeneration, to avoid it.

Also change the group's category as this group is purely technical and
must be hidden anyway.
2015-03-17 19:29:54 +01:00
Olivier Dony a757fce9d6 [FIX] project.task: no crash when there is no CC in incoming email
msg.get('header') returns None when that header is missing
2015-03-17 19:09:55 +01:00
Jeremy Kersten 082a6ce0ab [FIX] point_of_sale: don't overwritte title from pos template 2015-03-17 18:53:26 +01:00
Josse Colpaert fffd52a16b [FIX] stock: Inventory theoretical qty should only consider the location itself, not its children. Same for reservations.
When the theoretical_qty of the stock is calculated, we should only consider the location itself, not its children.
That way you can have correct inventory for e.g. iPads that are both in Stock and Stock/Shelf 1
2015-03-17 17:17:44 +01:00
Josse Colpaert 50cdacba90 [FIX] stock: search qty available correction when searching zero quantities
When =, >=, <= 0 it cannot use the read_group of quants because the results will not be in the read_group Fixes #5701
2015-03-17 16:50:50 +01:00
Nicolas Martinelli 3d05ddab50 [FIX] sale_stock: Cancel all procurements linked to a sale order
During the creation of a Sale Order containing a product for which 'Make To Order' is activated
in the Procurements, two procurements are created:
- one for 'Partner Locations/Customers' location
- one for 'WH/Stock' location

If the Sale Order if cancelled, the user must first cancel the picking (delivery order).
This will trigger the cancellation of the procurement with the 'Partner Locations/Customers'
location.

The new behavior is to cancel the procurements linked to the Sale Order, which will trigger
the cancellation of the picking.

opw: 630170
issue: https://github.com/odoo/odoo/issues/3805
2015-03-17 16:37:24 +01:00
Olivier Dony 3239d5fb74 [FIX] account_payment: typo in 9562bf8398 2015-03-17 15:50:11 +01:00
Olivier Dony 6411619811 [FIX] account_payment: typo in 9562bf8398 2015-03-17 15:45:00 +01:00
Raphael Collet e182da22f4 [FIX] base/ir_model: upon custom field creation, always clear manual fields in registry
The invalidation in registry was done only if the field's model was already in
registry.  This situation is not the case when you create a custom model with a
custom field.
2015-03-17 11:51:22 +01:00
Goffin Simon d117bad18c [FIX] point_of_sale: invalid tax amount on grouped entries
If "Group Journal Items" option is checked, the generated accounting entries may get an invalid tax amout.
This will happen when several entries for the same product do not use the same tax amout (e.g. discount).
Avoid grouping products with different taxes under the same line by creating one line per tax_code_id.

opw 626695
2015-03-17 10:16:56 +01:00
Jérome Maes 812b9f9113 [FIX] im_chat : sanitize the shortcode substitution to avoid XSS 2015-03-17 09:04:03 +01:00
Goffin Simon e2ccc5709b [FIX] account_asset: wrong currency to compute the residual amount of an asset
The result of the residual amount of an asset is : asset.purchase_value - amount - asset.salvage_value
where purchase_value and asset.salvage_value are in the currency of the asset. Amount is the difference
between debit and credit of an account move line expressed in the currency of the company.
This is why the amount must be convert in the currency of the asset.
2015-03-17 08:51:43 +01:00
Jeremy Kersten dd26aac66f [FIX] website_blog: check that tag exists before to slug it
Link with deleted tag will return an browseNull which don't
support slug function.
2015-03-16 23:29:52 +01:00
Jeremy Kersten bcc36c3241 [FIX] website_blog: use slug and unslug for multi-tag
It's better for SEO to have tags slugged in url
tag=1,2 => tag=website-1,functionnal-2

It allow to keep the retro-compatibility with v8 and google links.
2015-03-16 21:50:28 +01:00
Jeremy Kersten 8419ed64cd [FIX] website_forum: check that sorting is valid in forum
Retro-compatibily for V8 and google links.
More than 25 000 links in google contains ?sorting=date
Since saas-6, sorting is directly used in query, so we need to
check that the sorting is still valid !
2015-03-16 21:15:02 +01:00
Jeremy Kersten ff204d4cf6 [FIX] website_crm_partner_assign: only display website_published grades.
Typo in condition, result was the opposite of the expected behavior.
2015-03-16 20:29:02 +01:00
Jeremy Kersten b6a528fbf0 [IMP] website: improve list of template for html editor when we edit a report
Since commit 0167acb, the template used in translate_doc are added to the list
of template when we are editing a report with the html editor.
It's nice, but we don't have all the dependicies from this one.

Now we recompute the list of template, to have all the related templates:
the external_layer* and all templates which overload this report.
2015-03-16 20:22:28 +01:00
Goffin Simon 01c983919c [FIX] website: to keep the spaces around the translations
We keep the original spaces around the translations to avoid
missing spaces between words.
2015-03-16 17:03:50 +01:00
Christophe Simonis 24e2cc5b44 [FIX] web_calendar: do not use magic var event.
It works in Chrome, but not in Firefox.
2015-03-16 16:35:55 +01:00
Damien Bouvy 6922ec6123 [FIX] website_quote: t-field instead of t-raw avoid access rights problems
When displaying a field, it is usually preferable to use the 't-field' qweb tag
to avoid access problems: the name_get is automatic so you don't need to access
the model sub-field (in this case, you don't need to access the res.partner name)
2015-03-16 16:09:16 +01:00
Raphael Collet 7ac4639a24 [FIX] fields: fix determination of field.selection for custom fields
In the case of custom fields, `field.selection` is set directly instead of
being set in overridden fields.
2015-03-16 15:34:16 +01:00
rma-odoo f5a506743e [FIX] web_calendar: Selection fields used as color attributes of calendar view 2015-03-16 13:25:00 +01:00
Jérome Maes 71c624163c [FIX] sale, sale_layout : template crashing. Output pdf was unreadable due to colspan=100. Now using fixed number of column. 2015-03-16 13:18:53 +01:00
Goffin Simon 5733ee865e [FIX] website: no interpretation for "\2060" on mac with google chrome
On mac with google chrome, the character "\2060" has no interpretation
and a small square is displayed instead.

opw: 630276
2015-03-16 12:37:40 +01:00
Olivier Dony 632ca11a94 [FIX] mail: no crash when generating footer on models w/o _get_access_link() 2015-03-16 11:37:03 +01:00
Olivier Dony 10b8f1c907 [FIX] forum: "Relevancy" is old-fashioned -> Relevance 2015-03-16 11:34:22 +01:00
David Monjoie 373b560511 [FIX] account: added check if country has a code
It is possible, if the user created a new country by himself, to have a country without a code, we then need to check that.

Fixes opw 629891, where the customer wrote "Belgie" trying to find "België", didn't find it and created a new "Belgie" country without code.
2015-03-16 10:35:01 +01:00
Goffin Simon 2606e37b18 [FIX] account_asset: currency problem with depreciation in asset management
The amount used to create an account asset depreciation line must be in
the currency of the asset.
opw: 628663
2015-03-16 09:28:24 +01:00
Nandan Jani 6ffef2b053 [IMP] website_quote: improve navspy tracking, make history work and cleanup
Backport of master commit 742acbb454
2015-03-13 17:03:05 +01:00
Nandan Jani d1d8802a40 [IMP] website_quote: support printing for the customer
Backport of master commit ed9f8fdbb4
2015-03-13 16:55:11 +01:00
Matt Choplin 17c1556208 [CLA] Matt Choplin
Closes #5753
2015-03-13 15:59:54 +01:00
Robert Rübner adde3e9569 [CLA] bloopark systems GmbH
Closes #5617
2015-03-13 15:01:51 +01:00
Goffin Simon 4530faae8b [FIX] account_payment: compute amount to pay
compute the amount_to_pay with  function field amount_residual on
account.move.line

opw:628903, 628428
2015-03-13 14:09:46 +01:00
Josse Colpaert 20312e2880 [IMP] Deleting PO lines should work the same way as Cancelling PO
Also the test is adapted.  When a product as treated as MTO, it should not
without notice change to an MTS.
2015-03-13 13:58:19 +01:00
Olivier Dony 7eec97a584 [FIX] website, mass_mailing: restore original FieldTextHtml widget -> FieldTextHtmlFrame only for mass_mailing
The new `summernote in iframe` version of the
FieldTextHtml widget is not ready for prime time
yet.
Usability is not very good when used as a replacement
for the previous html editor, especially in email
composer windows, and initial loading is very slow.

For now we only enable it as FieldTextHtmlFrame for
mass_mailing templates, where isolation of the
style is important (so that recipients receive the
exact same result as was displayed on screen, without
side-effects caused by backend/frontend style)

In master the summernote version will be improved
and the old CLE version will be dropped completely.
2015-03-13 13:44:06 +01:00
Xavier Morel e93ead9093 [FIX] web_calendar: error in case of creation with quick_create disabled
Broken in 82fee7dfe8 porting of quick create to Bootstrap modals: in
case quick_create is disabled, the creation of the quick_create dialog
is bypassed and so is defining this.$input, but focus() calls still
happen and blow up.

Create a dummy $input in the constructor so it's alway possible to call
this.$input.focus().
2015-03-13 13:31:25 +01:00
Christophe Simonis e67372146d [FIX] hr_holidays: correct leave type order.
Leaves types must be ordered depending on the remaining leaves for the
current user.
2015-03-13 12:13:36 +01:00
Josse Colpaert 09abac7608 [FIX] Stock: Make sure inventory works with packs and lot = False
The inventory should work with packs.  If a pack is not indicated
in the inventory line, it means we correct the quantity for the product
that is not in a pack.

Also, when the lot is False, it should not behave as normal stock moves.
It should correct for the quantity that has no lot.

We try to reconcile the negative quants in the pack also.
2015-03-13 12:11:17 +01:00
Josse Colpaert 57593e5898 [IMP] stock: picking report should show only what is reserved when partially available
Only when the picking is partially available, the system will only show the amount of products available.
That way, when working with paper, the warehouse operator will only get what is available.  This is the case
where we did not launch the bar code interface or the transfer wizard.
2015-03-13 11:48:32 +01:00
Commandant Custo deb1db281b [FIX] account: Missing label for partner VAT in invoice report
Missing label for partner VAT field in invoice report
2015-03-13 11:50:01 +01:00
Olivier Dony e9fe55b3d0 [FIX] crm: convert to opportunity wizard should not have a view switcher
`view_type` actually defaults to 'form', which is what
we want, but `view_mode` defaults to 'tree,form' which
is *not* what we want here
2015-03-13 11:32:33 +01:00