Commit Graph
106440 Commits
Author SHA1 Message Date
Goffin Simon 225023f1d1 [FIX] account: Wrong "amount_currency" in account move line after reconciliation
Use case:
-enable multi currency (use UDS as company currency and EUR as secondary currency)
-create account account in a different currency (EUR)
-create journal for the bank account in EUR
-create a new tax included tax
-create a new bank statement in EUR journal and add one line
-reconcile
-Choose a counterpart with the included tax and click on reconcile

Before the fix:
After reconciliation the amount_currency for tax and expense were wrong.
You could check this in the journal items linked to the bank statement.

Video:https://youtu.be/678rFb4OE2Q

opw:680693
2016-06-17 09:18:39 +02:00
Damien Bouvy 654237b43c [FIX] website_quote: test uses field that doesn't exist
Or at least doesn't exist anymore.
2016-06-17 08:33:07 +02:00
Damien Bouvy 9c007ac375 [IMP] db_manager: better uuid management
* Always change the uuid of a duplicate database by default
* Clearer message when restoring a backup
2016-06-16 17:29:41 +02:00
Raphael Collet 1a6e934a55 [MIG] yaml_import: convert to the new API 2016-06-16 16:54:30 +02:00
Raphael Collet c69831379f [MIG] convert: convert to the new API 2016-06-16 16:54:30 +02:00
Raphael Collet 6056a7d1d2 [MERGE] convert BaseModel and expression to the new API 2016-06-16 16:53:22 +02:00
Raphael Collet 7901349779 [FIX] expression: in subsearch, use all remaining fields
For instance, searching on `partner_id.company_id.name` was doing a sub-search
on `company_id` instead of `company_id.name`.
2016-06-16 16:50:49 +02:00
Raphael Collet 8aec98cde8 [MIG] expression: convert to the new API
With code simplification, and turning recursive functions into iterations.
2016-06-16 16:50:48 +02:00
Raphael Collet 4edcba696e [IMP] api: make Environment implement the Mapping API 2016-06-16 16:50:48 +02:00
Raphael Collet 5ba7ce138b [FIX] test_new_api: avoid crappy monkey-patching of res.partner 2016-06-16 16:50:48 +02:00
Raphael Collet 2c6f34d568 [FIX] models: fix implementation of method _check_m2m_recursion
The former algorithm was incorrect: when checking two related nodes together,
it returned as if a cycle was found (even when no cycle was present.) The new
algorithm computes the transitive closure of the relation from the root nodes,
and stops as soon as a cycle is found.
2016-06-16 16:50:47 +02:00
Raphael Collet 5161e25112 [FIX] models: in _write(), the smallest parent_left is 0 instead of 1 2016-06-16 16:50:47 +02:00
Raphael Collet 19561727a7 [MIG] models: convert class BaseModel to the new API 2016-06-16 16:50:47 +02:00
Raphael Collet 4f2f1247a6 [IMP] api: make decorator @returns work when model=None
Specifically, the `upgrade` function simply returns the given value.
2016-06-16 16:50:47 +02:00
Raphael Collet 684df5b2dc [REM] fields: remove support for deprecated properties read and write 2016-06-16 16:50:46 +02:00
Raphael Collet 8da9116f5d [REM] models: remove deprecated method BaseModel.import_data() 2016-06-16 16:50:46 +02:00
Cedric Snauwaert b350ee65a4 [FIX] account: speed optimization of dashboard
when there are too many unreconciled entries, showing dashboard is really slow, switch the computation of unreconciled entries to SQL
2016-06-16 16:44:30 +02:00
Cedric Snauwaert 6b1bff4ee9 [FIX] account: fix condition to create exchange_rate_entries, in some case we don't want to create one
Typically when sum(debit) = sum(credit) and sum(amount_currency) = 0
2016-06-16 16:12:45 +02:00
Martin Trigaux 43f619ed76 [FIX] payment: correctly trigger the constraints
The third parameter expects a list of field, not some random string.
This made the constraints for the fields tagged with required_if_provider to be
never checked.

Closes #12458
2016-06-16 15:51:50 +02:00
Martin Trigaux 1cd356c6f6 [FIX] payment_sips: missing required value 2016-06-16 15:51:50 +02:00
Nicolas Lempereur f7ec48b6df [FIX] crm: needed _order for group by crm.stage
When grouping result the BaseModel method _read_group_fill_results add
the possible groups which had no result.

But, if the order of the group is not consistent, we can get really
wrong results. The code logic is expecting that the grouped result
gotten and the list of groups (returned by _read_group_stage_ids of
crm.lead) is in the same order.

If the _order attribute of the model is not enough specific (as was the
case in crm.stage) the inconsistent order would kill aggregation values
(displaying 0 instead of what should have been present).

opw-680952
2016-06-16 15:38:27 +02:00
Mohammed Shekha 58d57f9154 [IMP] website_event_question: Front-end register display improvements
Purpose:
Registration form needs some improvement : When there is lots of question
and answer and sometimes question is too long then view is mashed/weired

Improve the view and show one question and one answer on line, next question
and answer will come on next line,
Also change the common question/answers view, put question answer in
inline and each question/answer should come into next line

Mockup : http://bit.ly/1zpoWju
2016-06-16 15:09:54 +02:00
Aaron Bohy a48f47d470 [MERGE] web_tour, *: onboarding
- Deletion of addon web_tip
- Creation of addon web_tour (a tour being a succession of tips)
- Creation of onboarding tours for several apps:
	- Accounting
	- CRM
	- Discuss
	- HR Expense (first step only)
	- HR Recruitment
	- Project
	- Sale
- Various usability improvements (mainly onboarding-oriented)
2016-06-16 14:59:57 +02:00
Aaron Bohy 99a6f4ac72 [ADD] mail: onboarding tour 2016-06-16 14:59:41 +02:00
Fabien Pinckaers f972b60dc2 [ADD] sale: onboarding tour 2016-06-16 14:59:41 +02:00
Fabien Pinckaers ad0bc9adf2 [ADD] project: onboarding tour
Also:
 - creation of a (archived by default) sample project with tasks, that the
   user can activate to discover the project app.
 - improvement of the simplified form view to create a new project
2016-06-16 14:59:41 +02:00
Fabien Pinckaers 3c319b2b8b [ADD] hr_expense: onboarding tour
first step only, to be continued...
2016-06-16 14:59:41 +02:00
Fabien Pinckaers 3f4c062023 [ADD] hr(_recruitement): onboarding tour
Also some tweaks in views (mainly wording)
2016-06-16 14:59:41 +02:00
Fabien Pinckaers 025dcfcd68 [ADD] crm: onboarding tour
Also add a simplified form view to create opportunities
2016-06-16 14:59:41 +02:00
Fabien Pinckaers b0610837c3 [ADD] account(_accountant): onboarding tour 2016-06-16 14:59:40 +02:00
Aaron Bohy 0980546f41 [IMP] web_tour,website: enable web_tour in the frontend 2016-06-16 14:59:40 +02:00
qsm-odoo d0993c19ad [IMP] web_tour: tip animation
* Improve the JS/LESS so that its content makes the tip grow
with a bubble effect (instead of using a popover).
* Avoid flickering when the mouse leave/enter the tip or move
between the tip and its anchor element.
* Use text-align:left instead of justify
* Set the content width in JS (to a larger width) to be customizable
* Round LESS variable to avoid values like 266.6666666666
* Set opening direction according to viewport:
  - Top and bottom tips open towards the right except if they overflow
    the window on this right
  - Left and right tips open towards the bottom except if they overflow
    the window on this bottom
* Improve the 'Skip these steps' mechanism (which is easier as we don't
  use bootstrap's popover anymore)
2016-06-16 14:59:40 +02:00
Aaron Bohy 38bb6a7f81 [ADD] openerp,web,web_tour: new web_tour addon
Join work with ged
2016-06-16 14:59:40 +02:00
Aaron Bohy 6416c46d85 [REM] *: remove web_tip addon and its data in other addons 2016-06-16 14:59:40 +02:00
Fabien Pinckaers dd9fc5618a [IMP] sale_timesheet: open tasks in Kanban grouped by stage_id
instead of list view, by default.
2016-06-16 14:59:40 +02:00
Adrien Dieudonne 9b69184ffa [REM] project: remove state field on project.project
Also remove unused method _generate_task()
2016-06-16 14:59:40 +02:00
Adrien Dieudonne 9f2852fe8a [IMP] account, purchase: add menus to products in account 2016-06-16 14:59:39 +02:00
Adrien Dieudonne 7c3b056966 [IMP] product, website_sale: remove product from apps 2016-06-16 14:59:39 +02:00
Adrien Dieudonne ff4cffd5a3 [IMP] project: usability improvements
Simplified form view to create new projects
Always use quick create to create tasks
Remove chatter from project form view
Display the 'more' link in project dashboard in gray
2016-06-16 14:59:39 +02:00
Adrien Dieudonne ef83d19b6c [ADD] web_kanban: on_create attribute
Possibility to specify the action to execute when the user clicks on 'Create'
in the kanban view.

If set to magic 'quick_create', it opens the quick create in the first column.
2016-06-16 14:59:39 +02:00
Adrien Dieudonne 939ebba682 [IMP] web_kanban: grouped: set 'Create' btn-default if no column
... and reset it btn-primary when a first column is added
2016-06-16 14:59:39 +02:00
Aaron Bohy c577fccb3f [IMP] web: webclient: listen to scroll event
and propagate events on the main bus
2016-06-16 14:59:39 +02:00
Aaron Bohy e7256058f2 [ADD] web: is_admin key of session_info into page source 2016-06-16 14:59:39 +02:00
qdp-odoo a59703e652 [FIX] account: on opening of bank statement reconciliation widget, don't make automatic reconciliation if we have only one open invoice but also an unreconciled payment line (blue line) with the same amount 2016-06-16 14:30:20 +02:00
qdp-odoo 26dfe8944d [FIX] account: in bank statement reconciliation widget, searching on a given amount now also return blue lines with that amount (previously it was only looking on payable/receivable lines) 2016-06-16 14:26:46 +02:00
Mansi Gandhi 0abd35fbfb [IMP] mail: Notification email template header buttons order
On emails sent from tasks, the button "View Task" should be the main
Call to Action (primary), not New Task (that should be link like unfollow):
2016-06-16 14:09:46 +02:00
Adrien Dieudonne a9b0561106 [FIX] *: use new JS module to read from/write in localStorage
to prevent errors when the localStorage capacity is 0, which is the case e.g.
on private browsing with Safari.
2016-06-16 13:48:18 +02:00
Adrien Dieudonne 8580636bad [ADD] web: js module to communicate with localStorage
Private browsing in Safari doesn't allow to store anything in the localStorage,
and it throws an error when you try to do so. This new JS module is a connector
to the browser's localStorage if it is enabled, and if not, it simply keeps its
own storage in RAM.
2016-06-16 13:48:18 +02:00
Aaron Bohy 6c9567ae3c [IMP] base,web: ir_action: target main to clear breadcrumbs
New value for the selection field 'target' of ir_actions_act_window which
forces the breadcrumbs to be cleared before executing the action.
2016-06-16 13:48:18 +02:00
Aaron Bohy c9fe301cfc [REF] base: ir_actions: remove unused target value 'inlineview' 2016-06-16 13:48:18 +02:00