Commit Graph
94373 Commits
Author SHA1 Message Date
Jérome Maes c6ff080e2b [FIX] im_livechat : send rating to the operator once the anonymous person close its conversation. 2015-03-23 14:49:23 +01:00
Jérome Maes 033ae180b1 [FIX] rating : clicking on rating kanban card now redirect to the object form view 2015-03-23 14:49:14 +01:00
Jérome Maes e36ffa8a55 [FIX] im_livechat : fix rule matching according to the country code found with GeoIP 2015-03-23 14:49:06 +01:00
Jérome Maes e5e9e35c30 [FIX] im_chat : real sanitization of shortcode. Substitution can be HTML code (only for emoji and should respect the regex) or pure text (will be escaped to avoid XSS) at create and write. 2015-03-23 14:48:57 +01:00
Christophe Matthieu c9dd223305 [FIX] website editor: delete content should not remove the editable ancestor node when all content is seleted 2015-03-23 12:25:06 +01:00
Christophe Matthieu 2f5e4149fb [FIX] summernote: wrap the content with p when the user keyup on 'enter' but should not wrap the content if the editable area is a p, li or other para 2015-03-23 12:25:06 +01:00
Christophe Matthieu 421693d952 [FIX] website_mail: text block: padding at 0, it is not aligned with texts in other blocks 2015-03-23 12:25:05 +01:00
Christophe Matthieu e1cf30a88f [FIX] website editor: remove wrong tooltip on snippet icon 2015-03-23 12:25:05 +01:00
Richard Mathot 26c44a58df [FIX] hr: allow translating job offers 2015-03-23 12:11:41 +01:00
Géry Debongnie 23bb735908 [FIX] web: datetime widget didn't detect all changes
The datetime widget use the "keypress" event to detect if it has been
changed.  Unfortunately, some keys, such as backspace, do not fire a
keypress event.  This commit listen instead on the 'change' event, which
should fire when the input has changed.
2015-03-23 10:50:34 +01:00
Yannick Tivisse 374a016c6f [IMP] event: confirm,attend,cancel buttons on registration tree view 2015-03-23 09:26:11 +01:00
Olivier Dony 42db2db492 [FIX] crm: typos/grammar in CRM tips 2015-03-20 18:02:50 +01:00
Olivier Dony dfbef485c6 [FIX] l10n_be_coda: more lenient detection of CODA files
Some Belgian banks (e.g. CPH) seem to generate CODA
import files that do not comply with the CODA 2.3
(or 2.4 or 2.5) spec, specificially in the header
we use to detect CODA files.
2015-03-20 18:02:50 +01:00
Jérome Maes ca9d671c1d [IMP] account_analytic_analysis : change label of a state button on contract form view. 2015-03-20 16:52:18 +01:00
Thibault Delavallée 94360ce480 [FIX] event, event_sale: ux fixes:
- maximum seats on an event can be edited for confirmed events
- maximum seats is required when the event has limited seats availability
2015-03-20 16:15:03 +01:00
Thibault Delavallée da09947121 [FIX] website_event_sale: do not tell the ticket is
sold out or has not enough seats if it is unlimited.
2015-03-20 16:15:03 +01:00
Thibault Delavallée e1f26d52ee [FIX] website_event_sale: typo: forgotten , leading to a crash
when trying to remove attendees when lessening the number of tickets
sold in the ecommerce.
2015-03-20 16:15:03 +01:00
Thibault Delavallée 879b454544 [FIX]¸crm: res_partner form view: correct target of
opportunities button tip. Using directly the first child
is risky because modules can add statbutton before the
opportunities button (published for example). Using a
class seems a safer way to select the target.
2015-03-20 16:15:03 +01:00
Christophe Matthieu f5a0a64e08 [FIX] website editor: snippet clean_for_save method is never called 2015-03-20 15:25:33 +01:00
Richard Mathot c405dfe3b0 [FIX] hr_holidays: correct tooltip for sick leaves
The displayed date was incorrect: instead of the day number in the month (1st-31th), we displayed the day order in the week (0th-6th).

Yeah, this one was a tricky one...
2015-03-20 08:31:34 +01:00
Christophe Simonis 3baab9b22d [MERGE] forward port of branch 8.0 up to 7780004 2015-03-19 18:48:41 +01:00
Christophe Simonis 7780004f95 [FIX] web: correct many2one dropdown visibility.
The dropdown should only be append to visible elements.
2015-03-19 18:41:45 +01:00
Goffin Simon ac67ce4ecc [FIX] stock: quants not being reserved correctly
`product_qty` field is not recomputed at record creation.
Force field recomputation at any change
Removing the trigger on `product.product` should not be a problem as
product uom can't be changed once there are move lines.

opw:629650
2015-03-19 15:01:54 +01:00
Nicolas Martinelli 3da6c1a610 [FIX] web_calendar: reactivate the possibility to remove a calendar from side list
It is now possible again to remove a calendar from the side list
thanks to the 'X'

opw: 629511
2015-03-19 13:26:37 +01:00
Jeremy Kersten d5da26a5a6 [FIX] mass_mailing: count recipients with SUPERUSER_ID to bypass security
If a campaign was done to a list of Applicant, marketing team had an error loading the kanban view.
Because to display the number of recipents, a search is done with a domain on hr.applicant.
Model that except Human Resources / Officier, nobody can read.
2015-03-19 13:09:22 +01:00
Goffin Simon 5611b5e2fa [IMP] To allow to translate pages in version.
The translations of a page A in a version are applied to all the pages
with the same key of page A.
2015-03-18 17:19:07 +01:00
Jeremy Kersten 825c2b3ff5 [FIX] website_hr_recruitement: allow utm for job apply 2015-03-18 16:51:05 +01:00
Goffin Simon 05908a0fac [FIX] account_payment: supplier invoice on more then one payment oder
The field move_line_id in payment.order.form only shows account move lines that still have
an amount to pay. This was lost during 333e83f.
2015-03-18 16:45:25 +01:00
Dharmraj Jhala 01f2c5c9d2 [IMP] Allow custom ordering of files contained in zip dumps
This will allow to speed up our migration platform: as funzip can pipe
the output of the first file of the archive, even if the file is not
fully unzipped yet. This is useful to plays with dump.sql without waiting
for the full archive decompression.
2015-03-18 14:22:22 +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
Olivier Dony d93148240b [FIX] ir.model.data: update_dummy should mark inherits parents too
When a `noupdate` record is processed during an update,
the update_dummy method marks the record as "seen" so
it won't be deleted at the garbage collection step,
and seen as an obsolete external ID.

This needs to be done also for the parent records via
_inherits, because they have also received an implicit
external ID at creation, and must not be garbage
collected, even if their `noupdate` flag (db side)
is not set because the flag was added later.

This rare problem could be reproduced by creating a product
in a module, then referencing it in e.g. a sales order,
then updating the module after changing the product
record to be in a `noupdate` block.
At the end of the update the implicit product.template
record would be garbage collected, and trigger a cascade
deletion of its children - blocked by the SO reference
to the product.
2015-03-18 14:10:18 +01:00
Olivier Dony d8c4e4fa76 [FIX] product: unused import as of 489a96c257 2015-03-18 14:10:18 +01:00
Olivier Dony 694fe1fb3f [FIX] web: remove deprecated hack for future_display_name
This temporary patch was used to simulate the presence of a
`display_name` field in all models. It is not needed anymore
as of version 8.0, which comes with the actual magic to make
`display_name` work everywhere.
2015-03-18 14:10:18 +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