Commit Graph
96774 Commits
Author SHA1 Message Date
pvy 3b9f2ea182 [IMP] account: moved analytic checkbox on taxes to the right column of the advanced options under the other checkboxes 2015-07-30 14:18:15 +02:00
pvy d3709a893d [IMP] point_of_sale: only bank and cash journals should have a pos tab 2015-07-30 14:17:56 +02:00
Aaron Bohy 2473ab083f [IMP] web_kanban: trigger_up scrollTo event
This change is meaningless in community but was required for the enterprise
edition has the way to scroll the webclient just changed from triggering an
event on core.bus to triggering_up the custom_event 'scrollTo'.
2015-07-30 14:00:49 +02:00
Aaron Bohy 90b2250cad [IMP] web: action_manager: hide control panel when widget ready
for widgets that don't use it, instead of hidding it directly. Doing so, the
control panel is hidden simultaneously with the old view, and there is no more
flickering.
2015-07-30 14:00:48 +02:00
Aaron Bohy 6f8cabe413 [FIX] web: view_manager: update control panel on title change
only if the control panel if visible.

This fixes a bug on the settings view (form view), on which the control panel
is hidden (the bar containing 'Apply' and 'Cancel' is unfortunately not a true
control panel). When clicking on 'Apply', for some weird reason, the event
'change:title' is triggered and the control panel is updated with the new title
('New'). However, as the flags hidden isn't mentionned, the control panel
visibility is toggled.
2015-07-30 14:00:48 +02:00
qsm-odoo ecb562de5f [IMP] calendar: remove modal repeated event name
The event dialog in calendar showed the event name as title and
repeated the information in its content
2015-07-30 11:53:10 +02:00
qsm-odoo d792afe836 [FIX] hr: employee form view template
Title fields were not correctly aligned in enterprise version
2015-07-30 11:53:10 +02:00
Thibault Delavallée 5a4053a504 [IMP] crm: sales team: cleaned res_config about email
aliases explanation and redirection to the general settings.

Added an option to automatically generate an alias for sales
teams, like what is done in projects.

Some cleaning has been done in the form view. Aliases are
valable only for sales team managing leads.
2015-07-30 10:19:15 +02:00
Fabien Pinckaers 369db198d3 [DEMO] crm: cleaned and updated demo data to have a better
organized pipeline with the new organization and views.
2015-07-30 10:19:15 +02:00
Fabien Pinckaers a8c5b7810f [REF] crm: lead report and opportunity reports merged, into a single report
[REM] crm: removed unused file crm_report_view.xml, containing
strange old views, probably some old reports. Those seems to be replaced by
the opportunities and activities analysis + the various dashboards and
graph views.
2015-07-30 10:19:14 +02:00
Fabien Pinckaers f255aa7b36 [IMP] crm: stage management
Stages are now sales team dependant, and not shared anymore. This comes
with a sales-team way of working :
- sales team is the entrance point, click on the big Pipeline button to
see the opportunities pipeline of this specific sales team
- no more opportunities menu entry, as you should come from a sales team
- leads are still sales-team agnostic

The stage management has been updated :
- Won is still a stage (probability=100, onchange=1).
- Lost is not a stage anymore. Lost is equivalent to archiving. Archiving
uses the active field. Setting a lead or an opportunity as lost set them
as unactive.

Downside of the no more share policy: multi sales team opportunities
management can quickly become complicated. Indeed you may have stages
with the same name, not being the same stage, therefore not displayed
in the same column. Grouping on the stage name leads to other issues
(sequencing incoherence, impossible to drag n drop), so this is not
an option.
2015-07-30 10:19:14 +02:00
Fabien Pinckaers a056a5d890 [MOVE] crm: crm.stage code moved from crm to crm_stage.py file; moved
its views in its own file. Just reorganizing things before cleaning
a bit.
2015-07-30 10:19:14 +02:00
Fabien Pinckaers dc736426dd [REM] sales_team, crm, various: removed multisalesteam mode and group.
Using several sales team and the new dashboards is now the only
behavior about sales team. The unique sales team mode is therefore
removed, leading to some update in the various addons that hide
the team_id field when not in multi sales team mode.

[DEMO] cleaned demo data (removed marketing sales team because it should
not exist)
2015-07-30 10:19:14 +02:00
Fabin Pinckaers 49b904b6c1 [IMP] crm: type field required
[FIX] crm: assign date_open in leads only if not set in the values.
Given values have the priority on default-like values.
2015-07-30 10:19:14 +02:00
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