Commit Graph
101323 Commits
Author SHA1 Message Date
Yannick Tivisse 8a2f4e7d3f [IMP] base: Merge group_light_multi_company into group_multi_company
This distinction is useless and confusing.
2016-03-07 15:53:30 +01:00
Yannick Tivisse abdca55ea2 [FIX] User with 'Access Rights' rights not able to access Users menu
The ERP managers (users with 'Access Rights' rights) cannot even click on
the Settings app menuitem. Because of 2 things:
- The Dashboard settings is accessing the model ir_module_module. So
  we set a groups 'group_settings' on it.
- The Users view is accessing the model ir_module_category to groups
  the aggregate and display the settings. So we change the security rules
  by giving the access to the group_erp_manager instead of group_settings
- The global rules opn companies was applied to the erp managers. We
  splitted this ir.rules into three new ones on portal,public and employee
  users to allow the erp managers to access the companies
- Writing on the res_groups was calling the method _update_user_groups_view
  in all the cases. This method should be called only when the view was
  needed to be modified, i.e. when the category_id is modified for this
  group.
2016-03-07 15:53:30 +01:00
Yannick Tivisse 29404e096b [IMP] base,base_setup: easier multi-company configuration
- The 'Extra Access Rights' is now hidden out of debug mode
- The fields 'company_id' (current company) and 'company_ids'
  (allowed companies) are hidden if there are no more than 1
  company in the database.
- If there are more than 1 company, the fields are displayed
  on the user form view and setting more than 1 company on the
  user will add him into the group 'group_multi_company'. On the
  same way, setting only one company on a user will remove him
  from this group
- The group 'group_multi_currencies' is displayed on the General
  Settings. Enbaling this feature will add all the users into this
  group. This is more accurate as this feature is more global
  than per employee.
2016-03-07 15:53:30 +01:00
Yannick Tivisse 90981ec730 [IMP] Administration access right on Configuration->Settings menuitems 2016-03-07 15:53:29 +01:00
Yannick Tivisse fdb3ad7082 [REM] Remove the group 'base.group_configuration'
This additional administration group was formerly used to hide
the configuration menuitems for the common users.

Being manager should be enough to access these items
2016-03-07 15:53:29 +01:00
Mansi Gandhi d5f9338e81 [IMP] account: display user message to configure the tax-cash-basis-journal. 2016-03-07 14:51:13 +01:00
rap-odoo 59efea7e31 [IMP] account: Remove the 'reference' field from the Customer invoice report. 2016-03-07 14:47:36 +01:00
Ankit Joshi 266f798fc0 [ADD] stock: add the field 'description_picking' in picking report
The field is defined but never user. It could be useful to indicate
to the delivery guy that the product is 'fragile' or whatever.
2016-03-07 14:28:54 +01:00
Darshan Kalola e14d0a9f62 [ADD]hr_recruitment,website_event_track: added color field to store the user selected tag color where tag color selection is not possible and improved the tag position in kanban view of event.track. 2016-03-07 14:02:33 +01:00
Anand Kansagra 87c631b1c1 [IMP] sale: Add tooltip for expiration date field. 2016-03-07 13:57:56 +01:00
Kinjal Mehta a3f5d07d32 [IMP] stock_landed_costs: add tooltip message on split method and string on cost lines header 2016-03-07 10:24:11 +01:00
Jigar Patel 159f6c9e1f [IMP] event: The timezone of the event should be required field because if the user does not set timezone then in website_event(frontend) for event's timezone is not intuitive 2016-03-07 09:20:34 +01:00
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