Commit Graph
96760 Commits
Author SHA1 Message Date
Thibault Delavallée 42c5eea677 [FIX] mail: chatter: do not crash when reading the chatter
of unactive records. The chatter now uses a correct read_ids (no need
to have a search set), with an active_test in the context allowing
to read on unactive records.
2015-07-30 10:19:14 +02:00
Thibault Delavallée 744d7e2331 [FIX] mail: alias: default value for alias_domain
otherwise it is not correctly computed on new records inheriting
from mail.alias class.
2015-07-30 10:19:14 +02:00
Arthur Maniet 581aba9fdb [FIX/REF] barcodes: don't catch keypress if a control key is pressed
This avoids breaking shortcuts on Firefox, which rely on keypress
events instead of keydown / keyup. The tradeoff is that a barcode
cannot be scanned and interpreted if ctrl, alt or cmd is pressed.
Also don't catch function keys.
2015-07-30 07:55:53 +02:00
Arthur Maniet 68ad51b6a9 [FIX] barcodes: style 2015-07-30 07:55:53 +02:00
Arthur Maniet 276a454901 [REF] barcodes: update the manifest 2015-07-30 07:55:53 +02:00
Arthur Maniet 03534c5bef [IMP] barcodes: use a regexp to match a barcode 2015-07-30 07:55:53 +02:00
Arthur Maniet 0ed6a7dd18 [IMP] barcodes: use a known terminal char to stops buffering keys
BarcodeEvents uses the fact that a barcode usually ends with \n, \r or
\t - and never contains it - to stop buffing keys as soon as such a
character is inputted instead of waiting x milliseconds.
2015-07-30 07:55:53 +02:00
Arthur Maniet 47262c8587 [REF] barcodes: make key repeat prevention optional
This functionality was an attemps to fix the chair-to-keyboard
interface in the PoS. Since it is not a standard behaviour, it
must be explicitly requested.
2015-07-30 07:55:52 +02:00
Arthur Maniet 5b01eca5e4 [FIX] barcodes: BarcodeEvents handler binding and unbinding
In order to remove an eventhandler, removeEventListener must receive
the same function reference that was passed to addEventListener. So
the handlers references are kept as attributes of the class.
2015-07-30 07:55:52 +02:00
Arthur Maniet f45904f581 [REF] web: move barcode_events to module barcodes
If the module barcodes is installed, a BarcodeEvents singleton is
automatically instanciated. It listens to keypresses and, when a
sequence of keys represents a barcode, it broadcasts a 'barcode_scanned'
event on core.bus containing the barcode string.
2015-07-30 07:55:45 +02:00
Antony Lesuisse 16402f6795 [REM] auth_openid
deprecated use oauth2 instead
2015-07-30 02:00:23 +02:00
Antony Lesuisse 89f2eabd1a [FIX] mrp: product.product to bom stat button
- Remove domain (only search context)
- Set correct default values for both template and variant when creating a bom
  when coming from a product variant from
2015-07-30 01:18:20 +02:00
Antony Lesuisse 2c229fa9c0 [IMP] mrp: mrp_view.xml cleanup
- Reorder views per model and per actions
- Remove dead views and actions
- Flatten configuration menu, only the resource submenu is kept
- Rename mrp_bom_tree_view to mrp_bom_line_tree_view (no other xmlids where harmed in this commit)
- Add a view mrp_bom_tree_view for bom list with name and product variant when group_product_variant is enabled
2015-07-30 01:18:20 +02:00
Fabien Pinckaers 90c4489a07 [IMP] Creation date is confusing since its not the creation date in order point with po lead times. And user want the scheduled date rather than the creation one 2015-07-29 15:14:35 -07:00
Fabien Pinckaers 43e3663d93 [FIX] Scheduling of orderpoint: it was wrong to add the supplier lead time at every rocurment (what do you do if you manufature) and wrong for PO: you were always late 2015-07-29 14:52:29 -07:00
Fabien Pinckaers 8049f4b3a2 [IMP] typo: it's a security days to deliver customers only, not global to all operations 2015-07-29 14:26:37 -07:00
Joren Van Onder afc9507f3a [IMP] website_sale: don't hardcode salesteam
This causes issues when people delete the Website Sales team. The
website_sale module already adds a salesteam_id to website, which is
configurable. So instead set that to website.salesteam_website_sales by
default and use it in both website_sale and website_crm.
2015-07-29 20:29:04 +02:00
Joren Van Onder cdd7ab7f56 [FIX] website_event_sale: don't use registry cache for default ticket
Before this request.registry.get('ir.model.data').get_object_reference()
was used to grab the event_sale.product_product_event record. After
deletion of this product get_object_reference() would still return the
old id, which upon usage would throw a MissingError exception.

So to fix this, bypass the registry caches by using just
request.env.ref().
2015-07-29 20:27:25 +02:00
Joren Van Onder 6262ad9a99 [IMP] res_users: don't allow unactivating the current or admin user
Try to protect users from locking themselves out.
2015-07-29 20:23:24 +02:00
Joren Van Onder a0857f13eb [IMP] res_lang: don't allow unactivating of a used language
Unactivating the preferred language of a user will prevent him from
logging in.
2015-07-29 20:19:35 +02:00
Joren Van Onder 60af9986ed [IMP] base_action_rule: don't show filters created from automated action
When creating an automated action the filters created for them showed up
in everyone's search box, which often times was confusing and not really
useful.
2015-07-29 19:59:57 +02:00
Josse Colpaert 6ef158b63b [IMP] stock: getting quants methods refactor
The methods for getting the quants took a lot of parameters,
as in most of the cases (only exception being the negative
quants reconcile) the parameters depended on the move/pack operation
being processed.  By just passing the move and ops the code gets simpler.

There should also only be one place where most of the domain for searching the quants
based on the move/ops is calculated.
2015-07-29 17:45:16 +02:00
Antony Lesuisse 4914fcb093 [IMP] web: about dialog for v9 2015-07-29 15:20:48 +02:00
qsm-odoo ca6064f155 [FIX] google_calendar: Refresh code
- Google sync was dropped with new design
- Use new API alert/confirm dialogs
- The user was able to click on the button... by clicking next to it
    (remove the button template, create it in JS)
- Fix some exceptions in routes
- Convert CSS to LESS
- Update google tutorial

(google_calendar module needs some improvments, especially to give
meaningful error messages to the user when the google server sends
back errors)
2015-07-29 15:00:07 +02:00
qsm-odoo 82e166bb6f [FIX] (web_)calendar: Refresh code + Filters
- Contact filters were dropped with the new design
- The 'me' filter was not working correctly (wrong colors)
- Remove some useless/unnecessary code
- Use new API confirm dialogs
- Convert CSS to LESS
2015-07-29 15:00:06 +02:00
Antony Lesuisse 78c54c3d98 [IMP] base_import file selection show only .csv files 2015-07-29 14:40:54 +02:00
Aaron Bohy aa887ed02c [FIX] web,mail: widgets: replace $el.toggle() by do_toggle()
Since rev. 16eb36ff, do_show() and do_hide() on widgets toggle the classname
o_hidden on which the rule 'display: none' is defined, instead of calling
jQuery's show() and hide().

The method do_toggle(), sharing the same logic, has been introduced in rev.
74c5f772.

From now on, every widgets should call do_toggle() instead of $el.toggle() as
it will have undesiderable effects (they should call do_show() and do_hide()
instead of $el.show() and $el.hide() as well, this as been done in 16eb36ff).

This rev. replaces all calls to $el.toggle() by do_toggle(). It also adds
an optional argument to do_toggle() to force hidding or showing the widget.
2015-07-29 14:36:03 +02:00
Aaron Bohy 51952f3033 [REF] web: form view: WidgetButton: use Dialog.confirm 2015-07-29 14:36:03 +02:00
Aaron Bohy ecc4e512cd [IMP] web: action manager: restore action
When clicking on the breadcrumb to come back to a previously loaded action, the
restore() function is called. With this rev, this old action is shown only once
the Deferred returned by the optional on_reverse_breadcrumb callback is
resolved, i.e. when the action is ready, as it should be.
2015-07-29 14:36:03 +02:00
qsm-odoo 970b54d1eb [IMP] web: alert/confirm dialogs default titles
Add "Alert" and "Confirmation" as default titles for
alert and confirm dialogs
2015-07-29 14:30:28 +02:00
Jignesh Rathod 7d70000a12 [IMP] stock : Improve return mechanism.
When a location is marked as return location,
upon a return it can be put it in the possible return locations,
when it is in the same warehouse or under the same parent location.

The push rules are also applied on returned moves now, but
only when the push rule does not return the return to the original location

The lot in the return line is removed as it does not make sense
(better to change it on the pack operations)
and the views are cleaned

The returned picking is also automatically reserved.
2015-07-29 13:27:41 +02:00
Thibault Delavallée 924c54f24b [FIX] mail: followers computation: working on newId records
can lead to issues when trying to compute followers.

This case appears in the onchange mechanism. Indeed it may
manipulate temporary and/or new records, not having an
ID. In this case the computation of followers is not
necessary anymore.
2015-07-29 12:07:50 +02:00
Thibault Delavallée ed3d6aff81 [IMP] hr_recruitment: have a default stage for newly created jobs
as there is no more column sharing anymore. This ease the use of the
application by having a lightweight data to customize.
2015-07-29 12:07:50 +02:00
pvy 4442efb652 [IMP] account: changed the displayed field of the taxes in the invoice reports, it is now the description, i.e. 'label on invoices'. Based on a request from fp. 2015-07-29 11:11:55 +02:00
qsm-odoo face447e4d [FIX] web: div.o_checkbox compatibility
Add rules so that the enterprise version div.o_checkbox does not
break community layout
2015-07-29 10:45:04 +02:00
Aaron Bohy e56bdb731d [IMP] base_import: ControlPanelMixin and new design compatibility
- Use the ControlPanelMixin in the Import view;
- Adapt the stylesheet to fit with both community and enterprise editions;
- Convert the css into less, use mixins and variables defined in web;
- Return the reload() deferred in the on_reverse_breadcrumb callback so that the
  previous action waits to be properly reloaded before being shown.
2015-07-29 08:41:03 +02:00
Aaron Bohy a21fe28b8d [FIX] base_import: action button 'Import'
Adapt the template according to the refactoring of the parent commit.
2015-07-29 08:41:03 +02:00
Aaron Bohy 71e9de4ecc [REF] web(_tests): list view (editable): action buttons
Refactoring of the DOM structure and classnames of the list view's action
buttons (in the control panel), for new design compatibility. This refactoring
was required as some addons shared between both editions (e.g. base_import)
define their own buttons and extend the ListView.buttons template to insert
them.
2015-07-29 08:41:02 +02:00
Simon Lejeune 4e24b81616 [REF] web: action manager: wrap the client actions in a div
this way we can style the div and use the trick to have the child of a
flex-item filling 100% of its parent (flex item in relative position and
flex child in an absolute position). It is needed to have a consistent
look betwenn Odoo enterprise and Odoo community.
2015-07-29 08:39:38 +02:00
Antony Lesuisse c8b1f0d678 [IMP] hr_recruitment search attachments
code moved from the deprecated hr_recruitment_document
2015-07-29 00:53:23 +02:00
Antony Lesuisse 0ef5453e48 [REM] hr_applicant_document
The feature will be readded in hr_recruitment
2015-07-29 00:20:53 +02:00
Antony Lesuisse 05146e438b [FIX] document: remove some unnecessary deps 2015-07-29 00:20:28 +02:00
Joren Van Onder 86f2cbb967 [IMP] sale: filter multi-company taxes on a sales order
Showing only the taxes from the same company. Beware that multi-company as
adminstrator is not supported, anyawy this mitigate some of the possible errors
if it happens anyway.
2015-07-28 23:10:22 +02:00
Joren Van Onder f23b9b31b5 [IMP] ir_model: don't allow manual creation of invalid one2many fields
Only allow it when there is an inverse many2one. This is meant to try
and prevent users from messing up their database.
2015-07-28 23:06:27 +02:00
Joren Van Onder b7cec33182 [IMP] product: don't allow modification of UOM's from odd views
This is to avoid users accidentally breaking inventory values.
2015-07-28 23:05:08 +02:00
qsm-odoo 9bd09bc233 [FIX] board: use of event variable
The global event variable is magically ok on some browsers
but not on firefox

(Thanks aab)
2015-07-28 16:35:32 +02:00
Christophe Simonis ea5ee871d4 [FIX] mail: adapt test introduced during previous forward-port 2015-07-28 15:08:54 +02:00
Damien Bouvy 8998b03b82 [FIX] website_quote: missing deps in website_quotation.js 2015-07-28 14:33:47 +02:00
Christophe Simonis 908cb7cde3 [FIX] web: use correct non-undefined variable.
Bug introduced during previous forward-port
2015-07-28 14:30:05 +02:00
Christophe Simonis 97073e2a73 [MERGE] forward port of branch saas-6 up to 51040b6 2015-07-28 13:56:16 +02:00