Commit Graph
105276 Commits
Author SHA1 Message Date
Martin Trigaux ae5f6df340 [IMP] rating_project: unify terms 2016-09-06 11:47:28 +02:00
dut-odoo d272bde197 [IMP] point_of_sale: Prevent backend sessions and orders creation
If your create an order in backend and you make payements, they remain opened while the POS session isn't closed, which may seens counter-intuitive. The payment in taken into account afterward and the reconciliation is made with the invoice (if applicable)

We shouldn't let people create POS orders from backend. And while we're at it, we should do the same with sessions. They're opened and closed from the dashboard.
2016-09-06 11:23:43 +02:00
Damien Bouvy 29d8576b0a [FIX] mail: remove duplicate code
There already is a redirect implementation in the chat_manager
which closely matches the on_redirect implementation in chatter.js,
however the former has the advantage of calling get_formview_id
to ensure that the view is correct.

This fixes a faulty behaviour when some models are referenced from
chatter message using data attribute data-oe-model and data-oe-id.
For example, linking invoices in the chatter would always open them
with the 'vendor invoice' view; from this revision on the correct
view will be used (assuming get_formview_id is implemented on the
model).

The default behaviour of the chat_manager when a user clicks on a
partner record is to open a channel if the partner has a user then
return a callback passed as a parameter (usually to open the channel
as a popup or in the discuss app). To keep the old behaviour
of the chatter followers list widget (i.e. open the partner form
when clicking on a follower), a small change has to be made on the
redirect implementation: when no callback is provided, do not create
the channel (instead a returning an empty callback).
2016-09-06 08:52:57 +02:00
Thibault Delavallée b9e31f132f [FIX] calendar: correct used variable probably introduced when migrating 2016-09-05 18:21:53 +02:00
Olivier Dony ad50d13b6a [FIX] stock: select picking type deterministically
The default order on `sequence` was not specific enough,
causing semi-random selection of picking type and warehouse
when several types exist with the same sequence.

The problem was made more likely by the fact that
warehouses create their own picking types.
The algorithm to determine the sequences for the
new types was not handling properly the case of
a NULL sequence.

The patch fixes both issues: the selection of the
default picking type (e.g. for purchase orders),
and the algorithm for choosing the sequence for
new picking types.
2016-09-05 18:02:43 +02:00
qsm-odoo b54ffcc0e7 [MERGE] mass_mailing, web_editor: new snippets and theme system
* Replace mail theme/template system with a cleaner one which only
allows to change a class on the main container of the mail
* Improve snippets
* Improve snippet options
* Improve web_editor UI
* ...
2016-09-05 17:07:43 +01:00
qsm-odoo 54b22541b6 [IMP] mass_mailing: use standard background colorpicker 2016-09-05 17:07:31 +01:00
qsm-odoo 61e48b09fb [REF] mass_mailing: convert templates to themes and clean code
* Remove mass mailing template switching system (lemon, airmail, ...)
and replace it with a theme selector which only toggle a different
class on the body.
* Lint JS files.
* Change the way the editor is overridden by mass_mailing in a more
odoo way (put the JS in assets and check on runtime if it must be
applied.

+ fix editor style
+ remove useless code
+ remove odoo template
2016-09-05 17:07:31 +01:00
qsm-odoo 71b8bc7570 [IMP] mass_mailing: correctly define snippets toolbar template
* Split snippets into templates and use the t-snippet directive
* Correctly handle snippet thumbnails thanks to t-thumbnail and not
with custom css
2016-09-05 17:02:00 +01:00
Csaba Fazekas 9676ceec02 [REF] mass_mailing: change/add snippets/themes layout/design
* Airmail/Lemon/Tech template/Odoo template
* Add bg color option
* Clean snippets
2016-09-05 17:01:50 +01:00
Christophe Matthieu 1501b30c53 [REF] mass_mailing: change theme/template selection and add new snippets
* remove theme/template selection screen for mass_mailing
* allow to use different layout on edition
* add new snippets
2016-09-05 17:00:45 +01:00
Christophe Matthieu ea8f29e260 [FIX] web_editor: debug mode is not applied in the iframe of html field 2016-09-05 17:00:33 +01:00
Christophe Matthieu 0cca5651a5 [FIX] web_editor: saved mass_mailing have small difference with edition 2016-09-05 17:00:09 +01:00
Christophe Matthieu 8fc60d3509 [FIX] web_editor: display fullscreen button in readonly mode 2016-09-05 17:00:02 +01:00
Martin Trigaux 2d64653853 [FIX] correct the path to base module
In Transifex configuration file
2016-09-05 16:45:43 +02:00
Damien Bouvy 7b489ed42c [IMP] sale: show complete SO view by default
Instead of showing the columns delivered/invoiced qties on SOs
by setting a special key in the view's context, let's do the opposite
and hide them for a sepcial key instead.

The rationale behind this decision is that when a user wants to see
a SO from another place in the system, it is often a SO and not a quote
(i.e. accessing from an invoice's chatter message, from a subscription,
etc.). The default should then be to show these fields unless otherwise
specified in the context (and not the opposite).
2016-09-05 16:42:15 +02:00
Martin Trigaux e37d0909a2 [I18N] export master source terms
Since the externalidpocalypse
2016-09-05 16:33:43 +02:00
Martin Trigaux 136630c56f [FIX] mail: do not split translations on mail template
This commit is a port of a17c09af to master
The email templates may contain non-html content (mako) which should not be
sanitized.
Changing this attribute to sanitize_attributes made the translations to be split
when translated.
2016-09-05 15:54:01 +02:00
Thibault Delavallée 06e97cf766 [FIX] account: fix groups on invoice buttons
Double tap

 * fix wrong group xml_ids probably introduced when rebasing the branch
   removing workflow after xml-id-pocalypse
 * fix wrong group used for buttons, should be for Billing users
2016-09-05 15:21:42 +02:00
qsm-odoo b6b3e156a0 [IMP] web, website(_quote): move jSignature lib location (website -> web)
The jSignature lib is now used by non-frontend module (at least it
will be in upcoming commits).
2016-09-05 15:01:21 +01:00
Richard Mathot 0494ae5cd6 [REV] 827b9988ce
Because it does not fix the problem.
2016-09-05 14:59:55 +02:00
Richard Mathot 33dd2e5a54 [FIX] l10n_in_hr_payroll: no crash when installing
This is a minimal fix after a broken inheritance. Usability may not be
optimal.
2016-09-05 14:41:50 +02:00
Pierre Masereel 5a939ba4d8 [FIX] base: error during migration
There is a traceback when we are trying to install module from the list
view and clicking on the button 'Module Immediate Install'.
This traceback appears because of a server action that has not been migrated
during the rev https://github.com/odoo/odoo/commit/d465346f1

To fix this, we've converted the server action in new API.
2016-09-05 14:28:15 +02:00
Richard Mathot 827b9988ce [FIX] l10n_cr: bad external ids for new records 2016-09-05 14:26:51 +02:00
Yannick Tivisse 0b83dd9a8d [FIX] sale_timesheet: Set the account_id on the analytic entries from timesheets
When we create a timesheet activity, it create an analytic line that allows to re-invoice the costs from the employee. If the account_id is not set on the analytic account line, the employee cost is not passed correctly on the Analytic Entries, which is not the behavior we should expect.

This commit simply adds a account_id on the employee and this account is returned with the cost and the uom by the method `_get_timesheet_cost`
2016-09-05 13:59:48 +02:00
Martin Trigaux 6fc692d383 [FIX] hr_attendance: correct bad module in external id 2016-09-05 13:24:41 +02:00
Thibault Delavallée 96f0dd01ac [MERGE] project_issue: improve usability
This branch contains several usability improvements targetting saas-13.
Each commit contains its own small feature or improvement.
2016-09-05 12:51:26 +02:00
Thibault Delavallée e89fdf7788 [IMP] project_issue: make visible choice of tasks and/or issues on project form view
Indeed currently it is only visible in edit mode. However we noticed
people did not trigger the edit mode to find fields they do not expect
to find. Making them visible helps understanding projects can be used
notably for tasks and issues.
2016-09-05 12:18:55 +02:00
Thibault Delavallée 0194365e0c [IMP] project_issue: slightly improve issue reporting
* Number of emails should not take into account internal notifications
 * Remove Channel and Tasks from issue report as those are not really
   used anymore
 * Remove New filter as it can be done through stage filtering instead
   of using a not obvious heuristic based on stage sequence
2016-09-05 12:18:42 +02:00
Thibault Delavallée d3bbcd6474 [IMP] project_issue: hide Add new Column through Search / Issues action
A new view is dedicated for that kanban view. It is based on the standard
issue kanban view but using the group_create=false attribute to disable
the ability to create new columns.

It is done using a different view because standard issue kanban view
requires this ability. However it is not possible to achieve that goal
using conditional attributes.
2016-09-05 12:18:09 +02:00
Thibault Delavallée c76c1f98f8 [IMP] project_issue: display choice of task and issues in quick create of forms in kanban 2016-09-05 12:18:06 +02:00
Thibault Delavallée 4eb6a4bd4d [CLEAN] project_issue: clean view files and organization
New API migration of project issue was not correctly done considering
module organization. This commit reorder files according to the
guidelines.
2016-09-05 12:17:54 +02:00
Olivier Dony 6ea36beec5 [FIX] models: preserve order when merging recordsets
RecordSets were not preserving order when combined
with AND/OR set operators. Order was lost as well
through mapped().

This caused various recurring "heisenbugs" during
tests executions on runbot, specifically comming
in the test of stock_landed_costs.

Using OrderedSets instead of basic Sets to resolve
these operation avoids the indetermination.

This required an implementation of __or__ / __and__
for OrderedSet.
2016-09-05 12:17:04 +02:00
Olivier Dony 859d443863 [IMP] *: rename manifest files for v10 naming convention 2016-09-05 11:57:50 +02:00
Olivier Dony 4339196e52 [IMP] support v10 manifest file naming convention
- As of v10, manifest files should be named `__manifest__.py`
- For backwards-compatibility, __openerp__.py manifest files
  will still be supported for the time being
- Limited refactoring, to add support for the 2 different
  naming conventions
- All textual references to __openerp_.py updated in
  documentation and examples
2016-09-05 11:57:50 +02:00
Olivier Dony c0566b2896 [IMP] module: parse manifest files with literal_eval
Manifest files are literal Python dictionaries, and
aren't supposed to contain expressions that require
a full-fledged eval.
`literal_eval` is therefore sufficient *and* safer.

This parsing method was already used when listing addons
during startup of the Root controller (http.py, load_addons())
2016-09-05 11:57:50 +02:00
Martin Trigaux 3efa9d39c6 [I18N] Update translation terms from Transifex 2016-09-05 11:34:17 +02:00
Christophe Simonis 1a77d9d02a [MERGE] forward port branch saas-12 up to 476cb5a0 2016-09-03 23:57:57 +02:00
Haresh Shyara 6d9b4de939 [IMP] mrp: timer duration improvement 2016-09-02 18:17:52 +02:00
qsm-odoo 5a1db6cde2 [DEL] web: remove old tour system 2016-09-02 18:09:07 +01:00
Christophe Matthieu 689bf6185b [IMP] account: deactivate tour_bank_statement_reconciliation JS file
The test is never started and the tour is not up to date so remove it
from the DOM until it is converted to new tour system.
2016-09-02 18:09:07 +01:00
Mansi Trivedi 6a72e2e574 [IMP] mrp: Added form view of 'mrp.bom.line' model 2016-09-02 18:06:49 +02:00
Gaurav Panchal 3ae55ed232 [IMP] mrp: open produce product wizard + add barcode in mrp report 2016-09-02 18:06:49 +02:00
Christophe Simonis 476cb5a090 [MERGE] forward port branch saas-11 up to a989680 2016-09-02 18:01:42 +02:00
Denis Vermylen (dve) ac442a3f08 [IMP] payment_ogone: change outdated logo 2016-09-02 17:42:43 +02:00
Denis Vermylen (dve) f31b2c8a83 [FIX] website_sale: add invisible fields to view to update them
in "Website Admin" settings pricelist groups were not updated because they were
not declared in the view. added now.

Also added group to pricelists menu and fix typos.
2016-09-02 17:42:42 +02:00
Denis Vermylen (dve) b4d7b7e6dc [IMP] website, doc: replace eCommerce by e-Commerce 2016-09-02 17:42:42 +02:00
Denis Vermylen (dve) 07a1ed406f [IMP] website,website_sale: improve settings view
rename options, add radio widget
2016-09-02 17:42:42 +02:00
Denis Vermylen (dve) 7ace88f6a9 [IMP] website_sale: add click on planner to tour 2016-09-02 17:42:42 +02:00
Denis Vermylen (dve) e142d78d92 [IMP] theme_*: add ir.actions.todo to themes
installing a theme redirects to the website instead of the backend menu.
2016-09-02 17:42:42 +02:00