Commit Graph
101295 Commits
Author SHA1 Message Date
Mansi Trivedi 79bc3f3836 [IMP] project: Calendar view by month on project.task
Purpose:
The field date_deadline is a date field (without hours:minutes:seconds)
The customer is tempted to put the task deadline under hours, which is not
feasible

So in the calendar view for task, set the "month" view by default
instead of the "week" view.
2016-03-03 15:21:24 +01:00
hip-odoo e91a3346ef [FIX] account: remove unused option in tooltip
'situation' type is no longer present, remove it's contextual help (tool-tip).
Make the tooltip multiline.
2016-03-03 14:49:08 +01:00
Xavier Morel a76b3caa6e [IMP] custom view validators system
Add possibility for modules to add validators, getting closer to
defining views outside of base.
2016-03-03 13:18:01 +01:00
Xavier Morel cfbc1729c4 [IMP] view: inefficient contains check
Checked that the arch tag was a *substring* of "kanban" rather than
literally "kanban"
2016-03-03 13:18:01 +01:00
Thibault Delavallée bfe7aafa7f [IMP] tools: mail: parse style in sanitizer
Style attribute is now parsed and sanitized. Only a while list of accepted
properties is kept. The behavior is implemented directly in the cleaner
itself. As there is no easy possible inheritance, the styling cleaning is
appended directly after the legacy processing in __call__.

The styling sanitizer is called only if the style attribute is kept. If
the sanitizer is called with strip_style=True, the styling is removed
and therefore no sanitizing is performed.

Tests about html fields have been updated. Indeed the styling is now sanitized
and the test was not correct anymore, as the test html was stripped. It now
contains styling that is kept. The strip_classes is also tested.
2016-03-02 16:43:22 +01:00
Thibault Delavallée fd25fd4d44 [FIX] fields: do not strip class by default
Do not strip class by default on html fields, this was an error. Currently
only mail_message body field should not contain classes. Indeed as external
content can be stored through the mail gateway we do not want to keep the
classes.
2016-03-02 16:43:04 +01:00
Thibault Delavallée cf2318a76d [IMP] tools: sanitizer: frame tag
Do not try to keep frames as they are already removed. Indeed tag_to_kill contain
the frame tag. This parameter has precedence on the ``frames`` parameter of the
cleaner. It was therefore unnecessary.
2016-03-02 14:33:14 +01:00
Thibault Delavallée c9e38cae9f [FIX] fields: html: strip_style / strip_classes
Added the support of strip_classes, like the already existing strip_style
parameter of html fields.. This parameter is missing but allow full
customization of html fields.

Also fixed the call to the sanitizer in fields. Indeed the strict mode is
set to False. When not in strict mode the classes are never stripped whatever
the value of strip_classes.

Sanitizer is now called always in strict mode to ensure the sanitize process
is correct and really take into account strip_style and strip_classes.

This fix is done in master due to possible side effects and possible behavior
changes that are not welcomed in stable versions.
2016-03-02 14:31:39 +01:00
Martin Trigaux f125b81226 [FIX] survey: better template for list of pages
opw-670279
2016-03-02 13:58:57 +01:00
Aaron Bohy 27e92415a9 [FIX] mail: followers: allow edit subtypes even if not follower
Before this rev., editing the subtypes of other followers was only possible if
the current user already opened a record of the same model of which he is
himself follower.
2016-03-02 13:39:16 +01:00
Aaron Bohy dc81e5f664 [REF] mail: code refactoring
- extended_chat_window feature in its own files: as it is only available in the
  backend, we don't want it in the frontend assets (which contain the 'basic'
  chat_window)
- move followers feature in its own files
- creation of the 'mail.utils' module in utils.js
- creation of systray.less to define the style of the mail item and dropdown
  in the navbar
- use of chat_manager's search_partner function in PartnerInviteDialog
- some code linting
2016-03-02 13:39:16 +01:00
Aaron Bohy 1e0bc5920f [IMP] mail: follower: remove an RPC when user is follower
When loading a form_view with the follower widgets, an RPC was performed to get
the followers info (name, email...), and if the user is one of the followers,
a second RPC was done to retrieve the subtypes.

This rev. batches those two RPCs. Also simplifies read_subscription_data() as
it is now always called with a follower_id.

A few code refactoring as well.
2016-03-02 13:39:16 +01:00
Christophe Simonis caedbcd261 [IMP] res.partner: remove unused field use_parent_address 2016-03-02 13:10:42 +01:00
qsm-odoo df004ac605 [FIX] web_editor: bg-* bootstrap colors
Wrong values for background-colors for bg-* classes of web_editor.
2016-03-01 17:56:27 +01:00
Damien Bouvy 150d74b6ea [IMP] analytic: add tracking of customer in chatter 2016-03-01 17:12:25 +01:00
Aaron Bohy be7898955b [REF] web_kanban: duplicate definition of One2ManyKanbanView
Relational Kanban views are already (and correctly) defined in
kanban_relational.js
2016-02-29 10:05:09 +01:00
Aaron Bohy b816cdbea9 [FIX] web(_*): views: render action buttons in dialogs
Commit 516b1a6c72 fixes a bug with action buttons not being displayed when they
should in dialogs. However, it makes the assumption that either $node or
this.options.$buttons exist, which is not always the case (e.g. dashboard).

This rev. moves that logic out of the views to the view_manager, and protects
the call of empty() on this.options.$buttons.
2016-02-29 08:47:20 +01:00
Fabien Pinckaers e189352d8d [IMP] Working Days visible on employee form 2016-02-27 17:16:39 +01:00
Yannick Tivisse 6bb6885087 [IMP] stock: Remaining 'Quants' into 'Quantitative Valuation' 2016-02-26 16:23:56 +01:00
Yannick Tivisse 4ab2816809 [IMP] base: Group ir attachments by attached document name
Original Idea: On project, group the attachments by Task name
2016-02-26 16:21:33 +01:00
Yannick Tivisse 824e0636ee [IMP] stock: rename 'Picking Types' into 'Operation Types'
Remove duplicate menuitem too
2016-02-26 16:18:27 +01:00
Yannick Tivisse 4c037681ee [IMP] point_of_sale: Move common demo data into importable modules.
The only remaining demo data are the partners from the indiegogo campaign
2016-02-26 16:12:20 +01:00
Raphael Collet 1156807344 [FIX] res_bank: fix migration, select=True becomes index=True 2016-02-26 15:28:35 +01:00
Yannick Tivisse 6909c265ca [IMP] Website_slides: Override open_menu instead of creating a new ir.actions.todo
That way, we have only 2 ir.actions.todo executables on the common modules
(I don't count the configuration wizards in l10n_eu_service or oauth_ldap)
- 'base.open_menu' to jump on a frontend view
- 'theme_install_todo' to open the theme installation view

As the module website_theme_install is auto_install: True and so installed after
the modules like forum, slides, ..., the theme_install_todo is by accident
always the 1st chosen one, which was the wanted behavior.

NB: Remove the ldap wizard launcher
2016-02-26 15:21:21 +01:00
Joren Van Onder 076fad1de5 [IMP] point_of_sale: add default pos.config fiscal position
This makes it so people can pick one of the selected fiscal positions in
pos_config.fiscal_position_ids as their default fiscal position. When
creating a new order in the front- or backend the pos order will
automatically be assigned this default fiscal position.
2016-02-26 14:16:16 +01:00
qsm-odoo acd3da1848 [FIX] web_editor: bootstrap colors (text-, bg-)
Bootstrap handles the primary color in a different way than the other
colors. So to not break the backend UI, the o-create-color-classes
mixin has to consider this difference.

Notice that colors management should be further improved in the future.
2016-02-26 13:09:13 +01:00
Fabien Pinckaers 4c8e908b49 [IMP] Speed up app switcher loading: 645k --> 137k lossless compression for all icons 2016-02-26 11:39:38 +01:00
Parth Mehta 9aa351a9db [IMP] delivery: margin on shipping price
Allow users to define a percentage on shipping price, in order to cover
up differences between rating and shipping actual price.

Authors:
	Barad Mahendra <mba@openerp.com>
	Parth Mehta <pme@odoo.com>
2016-02-26 11:37:35 +01:00
qdp-odoo 7f64a2ec24 [FIX] account: put back the concept of full reconciliation. This doesn't add anything new but this concept seems to be a legal requirement is some countries, hence considered as a fix. A different patch for v9 has been pushed at 395c4bdc69, to wrap this change into a module 2016-02-26 11:32:32 +01:00
qsm-odoo 5a099117c4 [FIX] web(_editor): qunit tests
* Correct qunit template assets
* Delete useless template which broke qunit qweb inheritance
2016-02-25 14:45:34 +01:00
qsm-odoo 516b1a6c72 [FIX] web: target=new forms buttons
Launching a form view in a dialog thanks to target=new did not
display the action buttons (save, discard, ...). This is because
the action_buttons flag is set to false by default and the only way
to start an action with a different value is thanks to JS code (i.e.
the debug manager modals).

Now, action buttons are also rendered if the flag footer_to_buttons
is set to true (only happens when launching an action in a modal) and
that the formview does not have any footer tag with buttons to add
(so that wizard form keep replacing the action buttons by these footer
buttons).
2016-02-24 17:13:00 +01:00
Yannick Tivisse 80b7cba812 [IMP] Delivery: Display kg on 'Put in Pack' wizard 2016-02-24 17:09:29 +01:00
qsm-odoo bf39884a5c [MERGE] *: new web_editor/website + assets improvements
Read sub-commits for more details.
2016-02-24 15:08:29 +01:00
qsm-odoo ed46965dbe [FIX] web*: tours
Selector changes + No need to open the snippet panel anymore.
2016-02-24 13:47:36 +01:00
qsm-odoo 6610d05549 [REF] web_editor,website,mass_mailing: JS/XML update
* Adapt DOM selectors
* Refactore dialog XMLs to have odoo styling
* New editor options (background-position, ...)
* Various improvements
2016-02-24 13:47:36 +01:00
qsm-odoo 58c5ff1d4f [REF] website*: frontend user navbar
* Remove use of bootstrap navbar
* Add navbar.less file for compatibility with enterprise
* Modify the location of the "new page/product/..." elements
2016-02-24 13:47:36 +01:00
qsm-odoo 88c2b6843a [REF] web,web_editor,website(_*),report,pos,mass_mailing: assets
* Remove recursive assets inclusions (i.e. assets_editor was including
assets_common, summernote, ...)
* Better construct the assets (link, then script + type attribute)
* Better include the assets (split js / css, always use t-call-assets)
* Simplifies the number of assets
* Move bootstrap js to assets common
* assets_frontend is now created by web module to allow using it on the
connexion page but also in the web_editor, where colors have to be
bootstrap/theme ones. Note: if a module depends on website, then keep
using the inherit_id="WEBSITE.assets_frontend"
2016-02-24 13:47:06 +01:00
qsm-odoo 5b65befcd8 [REF] web,web_editor,website,report,mass_mailing,mail: LESS
* Convert some CSS to LESS
* Split/Join LESS files
* Remove duplicates between website and web_editor
* UI improvements
* Allow simple customizations thanks to LESS var&mixins for website
2016-02-24 13:09:48 +01:00
qsm-odoo 40334b3342 [REF] web_editor,website,mass_mailing: editor UI unification
Before, the whole editor UI was redefined for web_editor, each
mass_mailing template, website builder, ... Now they all inherit
from the web_editor one.
2016-02-24 13:09:15 +01:00
qsm-odoo a64f64aba4 [REF] website: snippets
* Delete useless snippets
* Delete default mb,mt on snippets
* Delete useless options
* Reorganize snippets order
* Style improvements
2016-02-24 13:08:09 +01:00
stefanorigano c4a896a8a0 [REF] website,web_editor: complete restyling 2016-02-24 11:15:55 +01:00
Jeremy Kersten 1d90e70244 [FIX] crm*: remove outdated stage_type from context
This key in context is useless since v7.0
2016-02-23 15:31:17 +01:00
qsm-odoo 8f2be0d61b [IMP] web: update Dialog class
Update Dialog class with enterprise version.
2016-02-23 13:40:17 +01:00
Ravi Gohil 7eab8e26d3 [MIGR] base: migrate base/res to the new API
- `ir.property`, improve API of method `get_by_record`
- `res.bank`, `res.partner.bank`
- `res.company`
- `res.config`, `res.config.installer`, `res.config.settings`, fix usage of methods `get_default_`
- `res.country`, `res.country.group`, `res.country.state`
- `res.currency`, `res.currency.rate`
- `res.font`
- `res.lang`
- `res.partner`, `res.partner.category`, `res.partner.title`
- `res.request.link`
- `res.groups`, `res.users`, `res.users.log`, change password wizard
2016-02-23 12:06:25 +01:00
Yannick Tivisse 1490e430e6 [IMP] base: rename duplicated menu
Rename the menu 'Apps' by 'Local Modules'

Fixes #9009
Closes #11017
2016-02-23 11:25:53 +01:00
Richard Mathot 9bfa205082 [IMP] survey: correct English 2016-02-22 08:31:58 +01:00
qdp-odoo 8dd9b25a62 [MOV] account: moving reports from account_extra_reports to account 2016-02-19 17:37:46 +01:00
Fabien Pinckaers 773fb17ccb [IMP] support@ --> help@ 2016-02-19 12:47:01 +01:00
Joren Van Onder 22b93174af [FIX] point_of_sale: fix forgotten method rename
pos_order.onchange_qty was renamed to pos_order._onchange_qty during the
migration to the new API.
2016-02-19 10:23:02 +01:00
Joren Van Onder 92badf048f [IMP] point_of_sale: automatically set customer fiscal position
This makes it so that when you set a customer in the POS frontend it
will automatically apply the fiscal position associated to the customer
on the order.

If the customer has no set fiscal position or if the fiscal position is
not available in the POS nothing will happen.

opw-668155
2016-02-18 15:48:16 +01:00