Commit Graph
101435 Commits
Author SHA1 Message Date
rmu-odoo 319353dea4 [IMP] account,account_asset:few usability changes
1. Add an accounting configuration option
   "Assets management & Revenue recognition"

2. Deferred revenue account not set by default in product
    - Create new Deferred Revenue Type
    - Create new product and assign this "Deferred Revenue Type"
      you can see in income account there is nothing set. Actually
      when we select revenue type then in income account system
      have to set "Deferred Revenue Account" which we set on revenue type.
      Otherwise, if we create invoice for this product then system will
      by default take the income account from product category.

3. Change word Depreciation to Revenue :
2016-03-23 13:20:12 +01:00
Raphael Collet 2d254e294b [FIX] ir_actions: fix unbound variable obj in method _get_eval_context 2016-03-23 12:28:05 +01:00
Martin Trigaux f42a00b9b1 [MERGE] website_sale_delivery: new api migration
Closes #10939
2016-03-23 12:14:24 +01:00
Martin Trigaux 42b44daa8f [IMP] website_sale_delivery: return recordset instead of ids
Convert the method _get_delivery_methods to return recordset instead of ids.
This avoids rebrowsing records already computed.
2016-03-23 12:05:19 +01:00
Ravi Gadhia 4e49df4eb0 [MIG] website_sale_delivery: new api migration 2016-03-23 12:05:08 +01:00
Martin Trigaux 67d95df511 [FIX] website_sale: correct triggers for recomputation
Was copied from the one above while we only need the is_delivery field
2016-03-23 12:04:29 +01:00
Virbhadrasinh Gohil 3855ab7d85 [ADD] stock_landed_costs: Add test case for incoming shipment.
The current test in landed costs puts landed costs on outgoing pickings.
It is a bit weird as they are put on incoming shipments normally.  It checks
if the lines of the landed costs have been calculated well, but not if the
amounts/accounts/... on the account move and account move lines have been
calculated correctly.  It should also check the entries created when some
part is already out and when we create negative landed costs.  (in order to
be able to revert them)

Scenario :
- Two new products without stock as is done in current test in real-time
  valuation,...
- Both products are received
- One product goes out (or a part of the quantity)
- A landed cost is created for the incoming picking
- Check that the journal items created, have the correct amounts and that there
  is a part that went out and is put on the out account
- Create a negative landed cost as the first landed cost was a little bit too high
- Check again that the journal items created have the correct amounts
2016-03-23 11:27:55 +01:00
Christophe Matthieu 00f01b8b1d [IMP] website_forum: remove le list of the user per badge
(6 minutes to load all avatar for some page, no sense to display all users)
2016-03-23 11:21:57 +01:00
Christophe Matthieu f1514bf01c [IMP] gamification: split multi function field to avoid massive prefetching of user records
Issue: website_forum takes 15 to 30 seconds to load the user page
2016-03-23 11:21:57 +01:00
rmu-odoo f1e4402b6a [IMP] hr_holiday: show absent employee in dashboard 2016-03-23 10:55:37 +01:00
Rohan Patel c01f5758b0 [IMP] board: Display 'My Dashboard' instead of 'New' in breadcrumb 2016-03-23 10:09:13 +01:00
Rohan Patel dbb2642f44 [REM] board: Remove the board.create model
It is no longer used in master.
2016-03-23 10:09:13 +01:00
Nicolas Martinelli 7a44effd09 [IMP] account: rename "Done" to "Skip"
When less than 2 entries are selected, no action will be performed.
Therefore, the "Done" label is misleading.

opw-670503
2016-03-23 09:31:59 +01:00
Fabien Pinckaers 512e62d5ad Merge branch 'master' of https://github.com/odoo/odoo 2016-03-22 10:40:07 -07:00
Fabien Pinckaers 4589276d7d [IMP] Won leads are not lost 2016-03-22 10:39:23 -07:00
Nicolas Martinelli f37681e74e [IMP] sale_stock: decrease delivered quantity
The commit adds a "Refund" field on the stock move, in the module
sale_stock. This allows to decrease the quantity delivered in the
associated SO, and therefore to generate refunds more easily.
2016-03-22 16:19:01 +01:00
Yannick Tivisse d3714770d9 [IMP] website: Hide website_id in Website Config view
This field is misunderdstood by common user and is problematic in saas
instances. Make it invisible, but usable with the html editor
2016-03-22 15:49:07 +01:00
Aaron Bohy 1193686bf3 [FIX] board: broken include and unwaited deferred
This commit fixes two problems with the dashboard:

- The function prepare_dropdown_menu() has been removed by commit 002660,
breaking the include in dashboard.js, and thus the 'Add to Dashboard' feature
wasn't appended to the FavoritesMenu.

- The code to render the dashboard didn't correctly wait for the action
manager's deferred to be resolved, which produced a traceback when they were
a Kanban or List view in the dashboard.
2016-03-22 15:28:42 +01:00
xmo-odoo c41661ab83 [FIX] view inheritance tests
Validation error type changed from AttributeError to ValueError.
2016-03-22 13:29:54 +01:00
Raphael Collet 01a04f121f [IMP] ir_ui_view: pass error message when validating views 2016-03-22 11:56:32 +01:00
Raphael Collet 6b01c6d120 [FIX] ir_filters: fix API of method create_or_replace
The API was broken after the migration to the new API.  The method now returns
a record with the new API, and a record id with the old API.
2016-03-22 10:20:56 +01:00
Nicolas Martinelli 899d01b9fb [FIX] web_kanban: request fields only if necessary 2016-03-22 08:45:17 +01:00
Fabien Pinckaers 97e2d35292 [FIX] english typo: amounting 00 --> amounting in 00 2016-03-21 20:48:39 -07:00
Yannick Tivisse dae84c5f8f [MOV] payment_payumoney: Move from enterprise to community 2016-03-21 16:11:13 +01:00
Keyur Gajjar 82e35bce6c [FIX] gamification: several layout issues
1/ ISSUES WITH BADGES:
Go to menu Employees > Badges > Select any Badge from kanban View.
Click on "GRANT THIS BADGE" button.
- When you grant a badge, the description field is not at the right place.
  It should be below the employee field
- Badges Form View: "Granted Employees" should be a stat button with a counter
- Badges form view is broken, field label/values are not at right place

2/ ISSUES WITH CHALLENGES:
Go to menu Employees > Challenges
Challenges Kanban View
- Image Avatars are too big, make it smaller.
- Challenges Form View > Advanced Options : fields Report frequency, Report Template
  and Send a Copy to are ugly
2016-03-21 14:02:10 +01:00
Keyur Gajjar bea7b19862 [MIG] gamification: migrated sass to less. 2016-03-21 14:02:10 +01:00
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