Commit Graph
103231 Commits
Author SHA1 Message Date
Deep Bundela eb04aa1e39 [MIG] base: migrate base/ir to the new API 2016-03-21 13:46:44 +01:00
Nicolas Martinelli adae94e483 [FIX] project: task manager
Following commit 1dbccc8, there is no `user_id` field on the analytic
account anymore. However, a field `user_id` was added directly on the
project with commit 908f416.

opw-672333
2016-03-21 13:44:11 +01:00
Nicolas Martinelli df212977b8 [FIX] stock_landed_costs: missing AML
There are 2 journal items missing on the accounting entry that
represents the assignation of the landed costs (for a product that has
already left the stock!) => expense account at the debit and stock
output account at the credit (amount is equal to the cost of the landed
cost)

opw-671311
2016-03-21 13:37:42 +01:00
Denis Ledoux 037257b887 [FIX] payment_adyen: back-port of 3dafb19
opw-672504
2016-03-21 13:02:26 +01:00
Raphael Collet 2d77941844 [FIX] models: enable modification of the help of custom fields
The field was not used when building the registry, hence when synchronizing the
field back to the database, the field `help` was set to `NULL`.
2016-03-21 12:23:17 +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
Raphael Collet 07d7be8896 [FIX] ir_model: fix validation of depends when empty on custom fields 2016-03-21 11:31:00 +01:00
Nicolas Martinelli 7a9c16ffee [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 11:00:27 +01:00
Goffin Simon cc335879a7 [FIX] sale_stock: _check_routing in drop shipping
When checking the route of a product, if the product is set with route drop shipping
then the product is available.

Inspired from 14fd46c0d5

opw:672392
2016-03-21 10:44:00 +01:00
Denis Ledoux 56a06b73f2 [FIX] website_payment: set default payment acquirer for configuration users
By default, users other than the admin cannot create
default values for all users,
`ir.values` for all users can only be created as sudo.

opw-672400
2016-03-21 10:30:03 +01:00
Denis Ledoux 15f27b2614 [FIX] website_sale: always re-render the pay now button
Before this revision,
when a user tried to pay his cart with a first acquirer
e.g. Ogone
then came back to the shop (using the browser back button)
then chose another acquirer
e.g. Paypal
a new transaction is created, due to the change of acquirer
(following revision cb9d798)
and therefore, the transaction has a new reference compared
to the last payment transaction attempt (e.g. the ogone one)
but, the old reference is still referenced within
the `Pay now` form values, because the page wasn't re-rendered,
because the user pressed the browser back button, and this
doesn't refresh/re-render the page, and, therefore,
the old reference was still referenced within the `Pay Now`
form values.

Therefore, the wrong reference was sent to the acquirer
(e.g. paypal) and this prevented the payment validation
at the payment feedback, as the new reference was expected
in the feedback information, while we receive the older one.

This revision makes sure to always re-render the `Pay now`
form, so the transaction reference, as well as the other
possible changes in the values, are correctly set,
before sending the information to the acquirer.
2016-03-21 10:30:03 +01:00
Denis Ledoux aae5647988 [FIX] website_quote: port of f89e8f9df2
The above revision needs to be applied on website_quote
as well.
2016-03-21 10:30:03 +01:00
Denis Ledoux 6a1116e947 [FIX] website_quote: port of cb9d7982c1
The above revision need to be applied in website_quote
as well.
2016-03-21 10:30:03 +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
Goffin Simon a706ada628 [FIX] sale, sale_stock, website_quote: delivery lead time with website quote
The related customer_lead of each product in a SO line must be set when a
quotation template is used in a SO.

opw:671938
2016-03-21 09:43:32 +01:00
Joren Van Onder 9df2921743 [IMP] hw_blackbox_be: implement support for registered POSBoxes
POSBoxes will be registered with the government. If a POSBox is not
registered it won't load the blackbox driver, preventing communication
with the Fiscal Data Module.
2016-03-21 09:10:34 +01:00
Nicolas Martinelli 528db2b306 [FIX] website_event: do not copy menu_id
When the user duplicates an event, the `menu_id` is copied. This causes
two issues. First, it links the event to the wrong menu. Then, the
controller `event` uses this `menu_id` to compute the target URL. It
will therefore redirect the user to the wrong event page.

opw-670353
2016-03-21 08:23:46 +01:00
Odoo Translation Bot f5cc04caa7 [I18N] Update translation terms from Transifex 2016-03-20 02:58:59 +01:00
Odoo Translation Bot ef026d7cf2 [I18N] Update translation terms from Transifex 2016-03-20 00:32:37 +01:00
Denis Ledoux ecfbd3f9b7 [FIX] website_blog: old api call without cr, uid, ids
opw-672398
2016-03-18 17:33:35 +01:00
Denis Ledoux 31eb1438a1 [FIX] account: settings, prevent the re-write of the company currency
When applying the accounting configuration wizard,
the `currency_id` was being re-written on the company,
even if there was no change (if the currency remained the same),
because of the related.

This leaded as well to the re-write of the company currency
on all journal items, because the `company_currency_id` on
`account.move.line` is a related to `company_id.currency_id`as well,
and they were being recomputed due to the above re-write.

Meaning, when you had a bunch of journal items, applying the
accounting configuration wizard could have take a while.

opw-672400
2016-03-18 16:42:36 +01:00
qdp-odoo 4665216331 [FIX] account: when creating an invoice's journal entry, set the invoice_id on tax lines too. That isn't a big deal though, but for the data coherence and to define reports on invoices it'd be easier with that field. 2016-03-18 15:26:00 +01:00
Denis Ledoux dcb43a5083 [FIX] mrp_repair: tax_id is a many2many
This is related to 3d58cd1ca2

`compute_all` indeed does expect ids, and not browse records,
but it expects a list of ids for the `ids` parameter, or a single
id, but not `False`.

Besides, `line.tax_id` is a many2many, despite the fact
its naming seems to say otherwise, and therefore `.ids`
should be used in order to pass all the taxes of the line,
not just one.
2016-03-18 14:35:54 +01:00
Géry Debongnie fc43546f01 [FIX] mail: duplicating partners does not duplicate mail channels
It could be a real problem when the duplicated user has access to all
private conversation from the original user.
2016-03-18 14:04:31 +01:00
Denis Ledoux 3d58cd1ca2 [FIX] mrp_repair: taxes compute_all take ids as parameters.
Not browse records.

This is an oversight of the revision
f4f4a4db73

opw-672321
2016-03-18 13:45:15 +01:00
Denis Ledoux 4ce55a2cd1 [FIX] mrp_repair: taxes domain in fees editable list
Apply the same domain which is appled in the form
view, which was redefined during the 9.0 accounting
refactoring (c04065abd8)

This is following the forward-port 51774f2a45

opw-672321
2016-03-18 13:45:15 +01:00
Joren Van Onder fe76e6bc36 [FIX] barcodes: first qualify the quantity event before handling it
Introduced by 5bb64d40d0. Before doing
anything we should first ensure that the quantity keypress event targets
body (and that it is a number, but that's less important). Before this
we didn't do that and thus the _display_no_edit_mode_warning was given
when people where just typing in the associated thread of a picking.

opw-672350
2016-03-18 13:11:25 +01:00
Yannick Tivisse b6847a0537 [FIX] ir_cron: programming error 2016-03-18 12:35:09 +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
Tanguy Charlier 2f8c99d412 [FIX] web_kanban: float_time widget did not work
* This is a forward-port of 4c1c1ec4d4
2016-03-18 11:18:29 +01:00
Thibault Francois 43c42b304d [ADD] project_timesheet, sale_service: support for project sub-tasks
This commit introduces "Sub-task", a concept remotely similar to
the "delegated tasks" available in version 7.0, but covering a
more specific and narrow scope.

Activating Sub-tasks
--------------------

Sub-tasks are made available within any project by configuring
a "sub-task project" in the project settings. This feature is
considered low-level and technical, and only accessible with
"Technical Features" enabled.
The "sub-task project" may be the project itself.

Using Sub-tasks
---------------

Conceptually, a sub-task represents the allocation of a part
of the scope of its parent task. Multiple sub-task levels
are possible.

Once activated in project settings, a new "Sub-tasks" smart button
will appear on the task form, giving the option to view and
create sub-tasks. In addition, a new field "Sub-tasks Hours" will
appear next to the other computed "Hours" fields, representing
the total hours allocated to sub-tasks.
(Technically, the sum of the maximum between the planned hours
and spent hours of all sub-tasks, with spent hours always used
when a task is closed)
These sub-task hours will be dynamically subtracted from the
remaining hours of the task, and will therefore affect the
task's progress as well.

Upon creation, a sub-task will inherit the link to the
original sales order and procurement from its parent task, and
will by default be assigned to the "sub-task project" set on
the project of the parent task.

Enhancement
-----------
The kanban view for tasks will now display a color-coded label
with the number of remaining hours, whenever the percentage
of remaining hours is below 20% (orange=20%-, red=1%-).

Note: This is a forward port of the commit 9eac32beea
2016-03-18 11:18:23 +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
Jeremy Kersten f01c195288 [FIX] base: ir field - set dependence as required when creating a compute field.
When you create a computed field, if you don't set the dependencies field
Odoo raises a traceback keyerror for ''.

Courtesy of @odony
2016-03-18 10:01:11 +01:00
Jeremy Kersten 58d587df09 [TYPO] base: ir model fix typo in comment 2016-03-18 10:01:10 +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
Goffin Simon 40248d77ff [FIX] stock: Wrong error when you work with lot owner
When a stock move was created in a picking with a product set with
a unique serial number existing in the stock of a specific owner.
If the owner was not specified for the stock move then a wrong message
was raised "The serial number 00005 is already in stock.". But the real
problem could come from function quants_get_preferred_domain which didn't
find the existing quant due to the fact that the system didn't check in the
right stock(owner). A new quant was then created with the existing serial number.
And a wrong message was raised.

opw:671783
2016-03-18 09:38:15 +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
Olivier Dony 0d86b91dd9 [IMP] tools.dumpstack: display last used db when known 2016-03-18 09:11:33 +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
Nicolas Martinelli 14fd46c0d5 [FIX] sale_stock: availability check
When searching for a dropshipping route, we need to access the field
`picking_type_id`. If user is not allowed to read it because of the
access rule `stock_picking_type_rule`, he will get an access error.

opw-668926
2016-03-18 08:43:39 +01:00