Commit Graph
101409 Commits
Author SHA1 Message Date
Raphael Collet 4ddc323139 [FIX] base: fix and complete migration of base/ir
- add or fix decorators on methods
- fix most compute methods (wrong dependencies)
- revert changes in `eval_context` of `ir.actions`
- various code simplifications and improvements
- migrate methods that were not
- ir_qweb: modify `QWebContext` to take an environment instead of `cr`, `uid`, `context`
- ir_qweb: convert `AssetsBundle` to use new API `env`
- ir_ui_view: use decorator `multi` on method `read_combined`
- ir_ui_view: ensure that method `render` is never called with an xml_id
- ir_ui_view: factor out part of the `ormcache` key of method `_read_template`
2016-03-21 13:46:44 +01:00
Deep Bundela eb04aa1e39 [MIG] base: migrate base/ir to the new API 2016-03-21 13:46:44 +01:00
Keyur Gajjar 348fa4f958 [add] CRM: Logged activities stat button on res_partner form
1/ Add a stat button with history of activities (count of activities) on
   the Customer form view
2/ Activity reports: When clicking on the list view, there shouldn't have any
   group by (remove the Salesperson/leads group by)
2016-03-21 11:50:01 +01:00
Nicolas Martinelli 69278f09d1 [FIX] web_kanban: prevent drag'n'drop
Prevent drag'n'drop in the following cases:
- Group by field is read-only
- Group by field is a date or datetime

This is necessary to avoid, for example, changing the state of a sales
order or an invoice without going through all the business logic.

Related to #7047
opw-671697
2016-03-21 10:23:22 +01:00
Rohan Patel cdc26d14bd [UPDATE] web: Upgrade fontawesome to 4.5.0 2016-03-18 12:18:34 +01:00
Dhaval Panchal bb818cad05 [IMP] crm: set filter on customer field
-In crm_lead_to_opportunity_view.xml and crm_lead_view.xml, added domain and context in partner_id field to filter on customer
2016-03-18 12:16:02 +01:00
Yannick Tivisse 8124e9f9f9 [IMP] event_sale: Hide 'price_reduce' in group_no_one
This is a technical field corresponding to the discount amout to apply on a
ticket from a pricelist. As no form view for event.ticket was defined before
we added one to customize it.
2016-03-18 12:13:07 +01:00
Virbhadrasinh Gohil c3ed7bf425 [ADD] mass_mailing: Add help action in mail template when no record found. 2016-03-18 11:44:08 +01:00
Aaron Bohy 22924bb814 [MERGE] *: batch and cache views RPCs + refactoring
- RPCs to load fields_views, fields and filters are batched for optimization
  purposes.
- Those data are now stored in a JS cache.
- Views API has been refactored.
2016-03-18 10:45:19 +01:00
Aaron Bohy 04e0818a9d [FIX] mail: retrieve fields_view through data_manager
introduced by previous commit.
2016-03-18 10:44:52 +01:00
Aaron Bohy 6c57935443 [IMP] openerp,web: cache of actions, fields(_views) and filters
Introduction of 'data_manager' service which handles meta-data related to
actions and views (fields_views, fields and filters). Ideally, all RPCs to
get that kind of information should go through data_manager, as it holds an
internal cache.
2016-03-18 10:44:52 +01:00
Aaron Bohy bda451ab31 [FIX] *: adapt addons to views refactoring of previous commit 2016-03-18 10:44:52 +01:00
Aaron Bohy 002660a9b0 [IMP] openerp, web(_*): batch views RPCs
Load the fields_view of all views of the action together. If a searchview is
required, also load its fields_view and its filters.

Use lazy-loading for fields as they are required for the Pivot and Graph
views only, and may be used by Filters and GroupBy menus of the Search view
if the users clicks on 'Add a custom Filter/Group'.

The fields are thus also loaded directly if the first view of the action is
Pivot or Graph, and otherwise, they are lazy-loaded when/if the user opens
a Pivot or Graph view, or if he wants to add a custom Filter/Group.

Some refactoring of views API as well:
- Views must now be instantiated with their fields_view
- Move code requiring fields_view from start() to init(), or willStart() for
  heavy processing.
- Remove view_type attribute from views as it was used to call
  fields_view_get.
- Remove view_id parameter to views' init as it is no longer used.
- Move duplicate code from various views' init to the View widget.
- Remove view_loading() function from views as they now follow the classical
  lifecycle of widgets (init -> willStart -> start -> destroy).
- Searchview now extends View like all other views.
- Remove useless function guard_active() as it was used for the form_view's
  action buttons to wrap handlers to ensure that they are executed only if
  the form_view is the current active view. This is not useful anymore as
  from v9, views and their control panel are appended in the DOM
  simultaneously, so one can't click on a button of a view which is not the
  current active view.
2016-03-18 10:44:52 +01:00
Aaron Bohy 141f4d95bd [REF] web_kanban: render_buttons()
A special case for X2ManyKanban views was handled in the Kanban view itself.
This commit makes the X2Many case identical to the general case by setting
options.action_buttons to true if the X2Many field is not readonly.
2016-03-18 10:44:52 +01:00
Aaron Bohy 85066e7bcd [REF] web: /web/action/load: remove unused 'do_not_eval' argument
unused since rev. odoo/odoo@4a5cb1ebc4.
2016-03-18 10:44:52 +01:00
Yenthe 91163c8c1e [IMP] web: add restore database option on fresh install
Closes #11393
Closes #11080
Fixes #11079
2016-03-18 09:58:00 +01:00
Anand Kansagra 9c3cf2abb9 [IMP] sale, account: Rename 'Price' into 'Tax Excluded Price' on the sales orders/ quotations and account invoices reports. 2016-03-18 09:48:30 +01:00
sha-odoo 0703826f37 [IMP] Accounting/Billing : Split the features of Accounting and Billing. Now user only see the Billing Features if only Invoicing is installed. 2016-03-18 09:35:05 +01:00
Srushti Patel 24972234b9 [IMP] : added More information links to promote enterprise features in the following Modules
-accounting, project, crm, mass_mailling, stock, point_of_sale, website, website_sale, sale
2016-03-18 08:43:53 +01:00
Mansi Gandhi 4afadb3257 [IMP] Generic: change the string of report ==> Reporting replace with Reports. 2016-03-18 08:36:59 +01:00
Rutul Raval afd29b277d [ADD] product: New entry in the app switcher / root menu: Products
* This commit adds an easy access to products and variants from the app switcher / root menu, similar to what exists for contacts.
    * Move an action to view stockable products to stock, as it is only executed from stock.
2016-03-17 17:55:37 +01:00
Martin Trigaux 1cfc5c4983 [MERGE] website_sale: migration to the new API
and some other various and glorious commits
if you are curious, check the commit messages
2016-03-17 17:42:39 +01:00
Martin Trigaux ec3110898e [FIX] website_sale_options: increment of cart
Before the patch:
- product A, with optional product B and C
- buy A with B and C as options
- buy (again) A with B and C as options
  => existing line A,B,C is incremented
- buy (again) A but with only B as option
  => existing line A,B,C is incremented

This was wrong as a new line should be created instead without option C.

Side note: this should probably removed as confusing to have duplicated lines
and has no interrest to keep the link.
2016-03-17 17:42:11 +01:00
Martin Trigaux b363cac202 [FIX] website_sale: missing noupdate on security rules
Allow people to customize it
2016-03-17 17:26:53 +01:00
Martin Trigaux 76f9f5c51b [MOV] website_sale: move configuration files in appropriate directories 2016-03-17 17:26:52 +01:00
Martin Trigaux ea50cb3806 [IMP] website_sale: clean cart update methods
* _cart_find_product_line

The method _cart_find_product_line is always called with only one record.
The fact that the return statement was inside the loop confirms the for loop is
not useful.

The method will now return recordsets instead of ids.
Convert the overrides to the new API for cleaner code and avoid old-new api
headhache.

Side note: the website_sale_option override logic is very counter intuitive and
should probably be refactored.

* _cart_update

Add ensure_one to be sure working on only one sale.order.

The method is always called on only one order and does not make sense to be used
on multiple (is the action that is done on one line of the cart).
The return format is the updated line without link to multiple orders.

Remove the for loop and assume self is only one order.
2016-03-17 17:26:52 +01:00
Ravi Gadhia 788c1334e2 [IMP] website_sale: migration to new api 2016-03-17 17:26:52 +01:00
Martin Trigaux 2c904509a3 [IMP] website_sale: cleaning of outdated code
- remove field complete_name
  is the same as the ORM field display_name, compute the name_get

- website_publish_button is duplicated
- write outdated, according to TODO (field color already renamed)
- Instead of open_website_url, should use website_publish_button
- styles, style_in_product, attrib_encode: are no longer used in templates

- remove unnecessary rebrowse
  This check was added at d3678bf5 either
  - to prevent browsing as public user (wrong as always browsed with SUPERUSER_ID)
  - to refresh fields of the record (I find your lack of faith in the cache
  invalidation distrubing)

- remove get_pricelist method
  equivalent to call request.website.get_current_pricelist
2016-03-17 17:26:38 +01:00
Martin Trigaux a1339c5aad [IMP] website_sale: propagate modified context only in useful methods
The pricelist in the context is only useful when computing the price of the
product.
Do not modifiy request context but only a local copy.

active_id is only used for the computation of the extra price from variants
2016-03-17 17:18:55 +01:00
Mitali Patel 7b1d655d8c [FIX] mrp_byproduct: correctly handle fixed quantities
If the fixed quantity was higher than the produced quantity, the quantity of the
manufacturing order was used for the byproducts instead of the one specified on
the BoM.

This bug was due to the computation of the subfactor (`_get_subproduct_factor`
in mrp, because I love the modularity) that was computing remaining quantity,
only considering the variable quantities cases.
In fixed quantity, the MO quantity being lower than the byproduct quantity, it
was never fully produced.

Corrected the test to correctly check the quantities and handle the usecase with
an higher quantity in fixed byproduct.

Added a field subproduct_id on the stock.move object that allows to easily find
the attributes of the mrp.subproduct item without making hacky (and probably
wrong in case of more than one byproduct) search to find it back.

Closes #8031
2016-03-17 15:36:54 +01:00
Denis Ledoux f4f6e6c5dd [FIX] purchase: remove base. from Vendors menu xml id
Otherwise, when uninstalling the `purchase` module, this
menu is not deleted, while it should.

Besides, there is no reason to set `base.` to this xml_id:
It's not used by any other module.

opw-672130
2016-03-17 14:17:32 +01:00
Yannick Tivisse 6b31d254e0 [IMP] website: Do not resize favicon on each page load 2016-03-17 10:14:00 +01:00
Yannick Tivisse 22ba0f2402 [FIX] website_event: is_participating checks partner if no mail address 2016-03-17 10:14:00 +01:00
Parth Mehta b1f8abadf2 [IMP] crm: Name the root menuitem 'CRM' if only CRM installed
In sale_crm: Redifine the menuitem with the name 'Sale' in the
case that CRM was installed after Sale.
2016-03-17 10:03:13 +01:00
Srushti Patel 1427b3660c [IMP] stock,purchase: add Product Variants menuitem in the Inventory and Purchase apps.
* Provides an easier acces to product variants from those apps
    * Fix the name of the generic product variants action in the product module.
2016-03-16 15:08:14 +01:00
Mansi Trivedi 170d7475ae [REM] stock: On stock.production.lot form view, remove some unnecessary fields.
* Since lots can only contain one product, which already appears on the form view, the serial and product name are removed from the quants list.
2016-03-16 11:58:25 +01:00
Parth Mehta db1f8ee8df [IMP] account: Clarify refund sequence on account.journal form view
* The refund sequence checkbox was not in technical features while the refund sequence selection was.This meant that in non-technical mode you could activate refund sequences but couldn't select one.
    * This commit fixes the issue by setting the the checkbox to technical features as well, and setting the refund sequence selection to required once the checkbox is ticked.
2016-03-16 11:15:45 +01:00
dut-odoo 0c95954550 [IMP] product_extended: Improve string of field 'real_time_accounting' for better usability 2016-03-16 10:46:30 +01:00
Prashant Panchal 9a490b0b83 [IMP] Product: Improve type field tooltip on product. 2016-03-16 10:20:56 +01:00
Martin Geubelle 349054e41d [FIX] website: deal with unauthorized users
Show an appropriate message if the user does not have access to the analytics views.
2016-03-15 11:40:24 +01:00
Martin Geubelle 799fdffe12 [IMP] website_sale: table title in dashboard 2016-03-15 11:38:29 +01:00
Mitali Patel f9cd11e13a [IMP] sale_crm: On the opportunity form change Quote stat-button icon.
* Some people were expecting a $ amount instead of the number of quotations due to the dollar sign on the stat-button. This should clear the confusion.
2016-03-14 16:49:44 +01:00
Tanguy Charlier 5bc0bd3707 [REF] hr_timesheet: migrate project_timesheet.py to new API
* New API migration
    * Fix delay hours and total computation : Delay was wrongly computed as 0.0 in every case.
    * Remove onchange from task. They were more confusing than helping.
2016-03-14 14:27:41 +01:00
Invitu bc758128a8 [IMP] add widget support in pivot views (issue odoo#10473)
For example, add widget="float_time" in hr_attendance pivot view measure
field.
2016-03-14 14:24:04 +01:00
Richard Mathot 9f7085586b [DOC] web: do_action accepts also the XML id of an action 2016-03-14 11:37:46 +01:00
Tanguy Charlier 234f88a6af [REF] sale_service,sale_timesheet: Merge sale_service functionalities into sale_timesheet.
* Since the last timesheets refactoring, timesheet entries are always linked to a project, and sale_service had the same dependencies as sale_timesheet.
    * This commit simplifies the modules hierarchy by merging two modules that have a close functionality and that were both always installed after timesheets and sales.
2016-03-11 16:30:50 +01:00
Yannick Tivisse 4be6ac41de [REM] website: 'Optimize AdWords Campaign' under the Promote menu
fp request
2016-03-11 14:26:18 +01:00
Darshan Kalola 54393e9aa2 [ADD] website: Easy website Favicon configuration from website admin panel
Easy solution: a binary field in website.config.settings
2016-03-11 14:02:21 +01:00
rpi f2a805b286 [IMP] mass_mailing: Move access rights from employee to mass mailing user. 2016-03-11 13:36:44 +01:00
Anand Kansagra 5e0e7c5546 [IMP] account: Remove duplicate actions on the CoA Action menu 2016-03-11 10:05:47 +01:00