Commit Graph
101311 Commits
Author SHA1 Message Date
qdp-odoo 62fb8d8a34 [IMP] accout_bank_statement_import: add a feature to build the full name of the bank statements by just giving the number 2016-03-04 17:01:49 +01:00
Jigar Patel 224d1c5433 [IMP] purchase_requisition: procurement tooltip
Remove the tooltip as it is outdated. It still refer to a checkbox. However it
is now a selection field whose entries are clearly defined. The tooltip is
therefore not necessary anymore.
2016-03-04 16:18:27 +01:00
Anand Kansagra 14bf814e88 [IMP] crm: wording of function field
Rename field string from 'Function' to 'Job Position' in the lead model. This
way it matches the wording used in the customer form.
2016-03-04 16:13:52 +01:00
Kinjal Mehta 58c4619918 [IMP] mass_mailing: no create link.tracker
Indeed UTMs should be created from the front end, via promote.

Also fixed some mismatch in tracker views by correctlin setting the view_id in
mass_mailing and classic utm view.
2016-03-04 16:12:37 +01:00
Ajay Javiya 5738f99aac [MIGR] website_sale_stock: new module structure
As this module does not have any code to migrate to the new api, only a move
is performed. No code has been harmed.
2016-03-04 16:05:09 +01:00
Dharmraj Jhala f2ace98a5f [REM] website_sale_stock: unnecessary controller
Removed controller override in website_sale_stock. Indeed this override adds a
result that is not used anywhere. website_sale_stock contains now only a template.
2016-03-04 16:05:09 +01:00
Foram Shah 002f0647e6 [IMP] stock: wording, leftover suppliers
Replace the word 'Supplier' with 'Vendor'
2016-03-04 15:54:45 +01:00
Mitali Patel 49a0c137e3 [IMP] product: Add UoM type in the list view of the UoM. 2016-03-04 15:26:55 +01:00
Dhaval Panchal dc7aca3ca6 [IMP] project: favorite
A favorite system is introduced in project model. It uses a many2many between
users and projects. This allow users to favorite a project and see them by
default in their project dashboard.

The new default fitler when seeing projects is now favorited projects.
2016-03-04 15:00:54 +01:00
Mohammed Shekha 783f246bde [IMP] hr_holidays: user reads only own leaves
In order to avoid all users being able to see leaves from everyone
the record rule is updated so that users see only their own leaves.

Code computing leave on employee record now uses super user to compute
it to ensure the current status of an employee is visible to other
employees.

Dashboard menus is now restricted to group hr_manager.
2016-03-04 14:57:48 +01:00
rmu-odoo c76201cbdd [IMP] payment : environment as toggle button
Environment field on payment.acquirer model now has a shiny stat button on its
form view. It allows to toggle between production and testing mode.

All payment acquirers are by default in testing environment now, to avoid issues.
2016-03-04 14:55:20 +01:00
qdp-odoo 6d502823ff [IMP] account: added field reference on bank statements, to hold the name of imported file or online synchronization reference 2016-03-04 10:20:54 +01:00
Thibault Delavallée f4481ff74e [IMP] mail: gateway: CIDs
Finally add support of CIDs in incoming emails. Inline images are recognized
and added as attachments. Image links are updated from src=cid: to src=link
using the /web/image controller.

It has been decided to keep the image in atttachments instead of putting them
in base64, like proposed in various PRs. Indeed we prefer to store this data
into the attachments instead of directly putting it in the mail_message table.
Moreover this enable the display of attachments in the chatter and record views.
2016-03-03 15:56:09 +01:00
Géry Debongnie a127a7aed2 [FIX] mail: only update timestamps periodically
the messages in a thread were previously rerendered every minutes to
update their timestamps.  This commit only update the timestamps, not
all the message.  This will allow us to keep expanded/folded state in
messages without collapsing them every minutes.

[IMP] mail: add read more/read less support client side

Messages are cleaned up and tagged server sides, with a attribute
data-o-mail-quote.  This commit replace their content with a clickable
read more link, which toggle its display.
2016-03-03 15:45:05 +01:00
Thibault Delavallée ba74e9ffec [CLEAN] tools, mail: remove html_email_clean
Remove html_email_clean in tools. Remove shorten in mail.
2016-03-03 15:44:57 +01:00
Thibault Delavallée cb8c2d2b7e [IMP] tools: sanitizer: quote detection
Quote detection is now done in the sanitizer itself. It tags nodes that are
inside quotes (signature, text quotes, email quotes). The purpose is to remove
html_email_clean and have all the html cleaning / sanitizing inside a single
function. When a node is tagged, data-o-mail-quote is set on the node.
This attribute is added in the whitelist of valid attributes for the
sanitizer.

[REM] Support of shortening messages. The read more / read less will only
display or hide detected quotes and signatures. Shortening messages above
a given amount of characters is not supported anymore. Indeed it adds much
complexity to the sanitizer without adding much value to the result. The
primary purpose of the sanitizer is indeed to remove noise and unnecessary
content.

[TESTS] a lot of test are not necessary anymore, as read more / read less
display will be moved in the front-end and as the shortening has been
removed.Tests have therefore been cleaned and simplified.

[DEMO] mail: small demo update to include a bit quote detection
2016-03-03 15:44:56 +01:00
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