Commit Graph
103389 Commits
Author SHA1 Message Date
Joren Van Onder 4e5815c1c3 [IMP] payment: create and use an electronic account.payment.method 2016-06-17 13:09:18 +02:00
Joren Van Onder e3730cf1f2 [IMP] payment*,website: rename payment.method -> payment.token
payment.method was not a good name because it was too easy to confuse
with account.payment.method.
2016-06-17 13:09:18 +02:00
Joren Van Onder 5c63ed388c [IMP] payment: add a generic payment acquirer 2016-06-17 13:09:18 +02:00
Joren Van Onder e883b8c734 [IMP] payment: show fees in payment.transaction tree view 2016-06-17 13:09:18 +02:00
Joren Van Onder b13e01f860 [IMP] payment: auto_confirm field should be displayed with radio widget 2016-06-17 13:09:18 +02:00
Joren Van Onder fc711a22a9 [IMP] payment: show configuration tab in payment.acquirer form view
Without debug mode.
2016-06-17 13:09:18 +02:00
Joren Van Onder 65b1220008 [IMP] website_payment: when invoicing always ignore invoice policy
Sale orders created through the website that have to be automatically
invoiced should ignore the delivery invoicing policy.

Otherwise you can end up with either an invoice not being generated at
all. This means the user has to manually generate and add the payment to
it. Even worse is if only some purchased products have invoice policy
delivery. In this case a partial invoice would be generated to which the
payment would be added, leading to a mismatch between invoice total and
payment amount.
2016-06-17 13:09:18 +02:00
Joren Van Onder 101a9693b3 [FIX] payment*: fix invalid coding
-*- coding: utf-'8' "-*-"

is not a valid encoding. Introduced by
666387a274 I think. It was probably a
typo/replace gone bad and it got copy-pasted everywhere. Emacs complains
every time you try to save changes to files with this invalid encoding.

This changes all of them to

coding: utf-8

adhering to eae045949d.

Done with:

find . -name '*.py' -print0 |\
xargs -0 sed -ie 's/-\*- coding: utf-'"'"'8'"'"' "-\*-"/coding: utf-8/'
2016-06-17 13:09:18 +02:00
Joren Van Onder 48336f0948 [IMP] payment: make 'Test' on environment button same color as in Kanban 2016-06-17 13:09:18 +02:00
Joren Van Onder a40840690c [IMP] payment: allow account.payment creation with payment.method 2016-06-17 13:09:18 +02:00
Joren Van Onder 8a761721d1 [IMP] payment: add options to automatically confirm SO's through website
Introduces two new options:
- confirm_so: to confirm the sale order on acquirer confirmation
- generate_and_pay_invoice: confirm_so + generation of invoice and
                            payment registration
2016-06-17 13:09:18 +02:00
Joren Van Onder 303e585371 [IMP] website_*: consolidate some duplicate payment logic
website_sale and website_quote both did their own
form_feedback. This causes issues because:

1. it would force upcoming features to have to be duplicated as well
2. there's a risk that improvements/bug fixes will only be applied to
one module, an example of this happening is
46c5f93b6c.
2016-06-17 13:09:18 +02:00
Yannick Tivisse 717f9217bb [IMP] hr_expense: bring back the sheets + other new features
NB:
- The option no_delete is not working, a fix will come from chm
- The many2many widget on a sheet creation is not working correctly as
  the called command is a (1, id, values) without a (4, id, _) before.
  A fix will also come from chm, but a disgusting hack has been
  provided for this particular case (to remove after chm fix)
2016-06-17 12:14:57 +02:00
Yannick Tivisse 5aa9bde34a [FIX] mass_mailing: Append unsubscribe url to mail body 2016-06-17 11:23:13 +02:00
Keyur Gajjar 7652b6388a [REM] mass_mailing: removed unused method mass_mailing_statistics_action() from models/mass_mailing.py 2016-06-17 11:23:12 +02:00
Keyur Gajjar bbca135410 [MIG] mass_mailing: code migration to new api
NB: A controller in website_mass_mailing has been migrated too. It's not a real issue
as this module will also be migrated in the days to come
2016-06-17 11:23:12 +02:00
Keyur Gajjar 1467689edf [MOV] mass_mailing: splitted the following files + new api
1. Splitted data/mass_mailing_data.xml to security/mass_mailing_security.xml for res_groups data.
2. Splitted views/mass_mailing_views to
    - views/link_tracker_views.xml
    - views/mass_mailing_stats_views.xml
    - views/mass_mailing_template.xml
2016-06-17 11:23:12 +02:00
Keyur Gajjar 1c1b049898 [MOV] mass_mailing: directory restructuring according to new api 2016-06-17 11:23:12 +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
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
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
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