Commit Graph
117975 Commits
Author SHA1 Message Date
Thibault Delavallée 30b2806e58 [FIX] yaml_import: forward port of saas-12 fixes
fa502dcab8: [FIX] tools: yaml_import: typo
during migration

15835236f2: [FIX] tools: yaml_import: fields
with inverse When importing from yaml do not remove valid values for
computed fields with an inverse method
2016-07-12 17:49:58 +02:00
Ravi Gadhia 631019b865 [MIG] website_membership: migration to new api 2016-07-12 17:25:48 +02:00
Jérome Maes f96b3cd9f9 [MOV] website_membership: module directory organization 2016-07-12 17:25:48 +02:00
Jairo Llopis ee365bbf98 [FIX] modules: choose the right addons path
When launching a server with two similar addons path, e.g.:
- /home/alice/dev
- /home/alice/devodoo

launching the server in dev mode may crash due to the poor matching using
`path.startswith(...)` method which may make `/home/alice/devodoo/bob/main.xml`
match in addons folder `/home/alice/dev` and with a non-exitant local path
`odoo/bob/main.xml`.

Instead of relying on the name, use the `os.path.commonprefix()` method to match
on real paths and avoid partial matching.
commonprefix will only work if the folder name ends with the appropriate
separator (which is not guarantee for a user provided addons-path) so force a
trailing `/` using os.path.join(..., '')`.

Closes #12359
2016-07-12 17:21:50 +02:00
Damien Bouvy d7d07810aa [FIX] hr_timesheet_sheet: no product on employee
Some leftover code from before.

opw-683126

Courtesy of David Coninckx
2016-07-12 16:30:56 +02:00
Aaron Bohy ee4c808d2c [FIX] web: debug_manager: update when coming back with breadcrumbs
Before this rev., the debug manager's state was only updated when pushing a new
action but not when coming back to a previous action using the breadcrumbs.
So when the latter case happened, the debug manager was desynchronized with the
action manager and it allowed to edit an action that wasn't the current action.
2016-07-12 15:30:01 +02:00
Jérome Maes d28e8446da [MIG] website_portal*: migration to new api
Those modules were almost already migrated, this commit
simply modified the import and the xml tags.
2016-07-12 14:29:31 +02:00
Jérome Maes e13f8fa4fe [MOV] website_portal*: module directory organization 2016-07-12 14:29:31 +02:00
Jérome Maes 09b783794e [MIG] website_sale_*: migration to new api
Those module were almost already migrated, this commit simply modified the import and the xml tags.
2016-07-12 14:29:31 +02:00
Jérome Maes c8d238093e [MOV] website_sale_*: directory organization 2016-07-12 14:29:31 +02:00
Vincent Renaville c9b270c9a4 [IMP] l10n_ch: extend minimal chart of account. Was PR #12552. Courtesy of CamptoCamp 2016-07-12 12:15:57 +02:00
Richard Mathot 42cfd81b32 [TYPO] l10n_do: two provinces must have different codes
(spotted by master-nightly)
2016-07-12 11:51:57 +02:00
Jérome Maes 1c8ab58c17 [IMP] website_sale_digital : use read_group for computed fields 2016-07-12 11:43:49 +02:00
Jérome Maes 71a505d37f [MOV] website_sale_digital : reoganize module directory 2016-07-12 11:43:49 +02:00
Jérome Maes 65dcfbbbc9 [MOV] website_rating_project_issue : move files to reorder module 2016-07-12 11:43:49 +02:00
Jérome Maes 28313ab574 [REM] hr_contract : remove unused file 2016-07-12 11:43:48 +02:00
Jérome Maes 96fc908c15 [MIG] website_issue : migrate to new api 2016-07-12 11:43:48 +02:00
Jérome Maes 2e8b4dfb8f [MIG-MOV] website_hr_recruitment : finalize grouping models, and migrate xml and python to new api 2016-07-12 11:43:48 +02:00
Jérome Maes e9b6a1c0db [MOV-MIG] website_hr_recruitment : move some file and migrate some others ot new api 2016-07-12 11:43:48 +02:00
Jérome Maes 3275a90ff0 [MIG] website_customer : migraton to new api 2016-07-12 11:43:48 +02:00
Jérome Maes ea90d4ef0c [MOV] website_customer : move files 2016-07-12 11:43:48 +02:00
Jérome Maes 53b65a51d2 [MIG] website_crm : migration to new api 2016-07-12 11:43:47 +02:00
Jérome Maes 68b5cf0721 [MOV] website_crm : reorganize module directory 2016-07-12 11:43:47 +02:00
Yannick Tivisse 7fca4c2577 [MERGE] l10n_in_hr_payroll: Migration to new API 2016-07-12 09:54:03 +02:00
Rohan Patel bce60748b5 [MIG] l10n_in_hr_payroll : Converted yml test cases to python unittest. 2016-07-12 09:53:06 +02:00
Rohan Patel 21e824b4ef [MIG,IMP] l10n_in_hr_payroll : Migrated reports to new API. 2016-07-12 09:53:05 +02:00
Rohan Patel a7886df35f [MIG] l10n_in_hr_payroll : Migrated to new API. 2016-07-12 09:41:10 +02:00
Rohan Patel 0b4b508ddd [MOV] l10n_in_hr_payroll : Re-organized directory structure. 2016-07-12 09:41:10 +02:00
Damien Bouvy f600366092 [FIX] point_of_sale: correct previous fix
I inadvertently inverted the domains; silly me.
2016-07-12 09:26:01 +02:00
Yannick Tivisse cb46de527c [MERGE] l10n_fr_hr_payroll: Migration to new API 2016-07-12 09:25:44 +02:00
Rohan Patel 08f8719985 [MIG,IMP] l10n_fr_hr_payroll : Migrated reports to new API. 2016-07-12 09:24:56 +02:00
Rohan Patel 2b19b806e1 [MIG] l10n_fr_hr_payroll : Migrated to new API. 2016-07-12 09:24:56 +02:00
Rohan Patel edf633fb9a [MOV] l10n_fr_hr_payroll : Re-organized directory structure. 2016-07-12 09:24:56 +02:00
Damien Bouvy 47bb1cf44d [FIX] point_of_sale: session access rules
You should not be able to see a pos.session if its pos (config_id)
is not available to you.
2016-07-12 09:22:19 +02:00
Yannick Tivisse 430c1ce238 [MERGE] document: Migration to new API 2016-07-12 09:03:53 +02:00
Goffin Simon 3ea1ac7e0d [FIX] website_slides: changing channel_id on slide.slide
Steps:
-Go into Slides (into Website Admin main menu)
-Find the Slide "Odoo Explained"
-Change the channel to "Employee Channel"
-Disconnect or open a private session
-Go to the menu "Presentations" on website
-Click on "Public channel"

Bug:

Error 403

Fix:

When changing the channel_id of a slide, the custom_slide_id of all
the channels using this slide as "Slide to Promote"  has to change
in False to avoid access rights errors.

opw:682063
2016-07-12 09:01:25 +02:00
Ravi Patel 65b3c683b1 [MIG] document: Migrated to new API. 2016-07-11 18:06:23 +02:00
Ravi Patel 2332b4c55c [MOV] document: Reorganise module directory. 2016-07-11 18:06:23 +02:00
qdp-odoo 2f3249d688 [FIX] account: fixed get_pair_to_reconcile() in case there is a manual reconciliation done via the wizard on an account that has a secondary currency set. In that case, the currency to consider is always given by the special key 'skip_full_reconcile_check' in the context. OPW 682368 2016-07-11 17:47:17 +02:00
Damien Bouvy 70e9a41e25 [FIX] base: compute share as sudo
Applying groups (or implied groups) in a multi-company setting
triggers the recompute of the share field; however, if the current
user does not have sufficient multi-company rules on res_users records,
the operation fails with ACLs errors.

Computing this field as sudo prevents this.
2016-07-11 17:05:20 +02:00
Thibault Delavallée 15835236f2 [FIX] tools: yaml_import: fields with inverse
When importing from yaml do not remove valid values for computed fields with
an inverse method.
2016-07-11 16:21:22 +02:00
Thibault Delavallée fa502dcab8 [FIX] tools: yaml_import: typo during migration 2016-07-11 16:21:16 +02:00
qsm-odoo c21568e14f [FIX] *: html fields sanitization
Since commit c9e38cae9f in saas-10, the html fields are sanitized in
strict mode by default. This breaks all html fields behaviour when it
is editable in the website editor.

This commit deactivate the sanitization for such HTML fields (like it
was already the case for blogs contents or products descriptions for
example). A more specific sanitization will be implemented in future
versions.
2016-07-11 16:02:20 +02:00
Goffin Simon 965024902d [FIX] delivery: Invoice line for delivery method
Steps to reproduce:

1. Activate the following options
** Settings > Warehouse > Products > Manage different units of measure for products
** Settings > Accounting > Accounting & Finance > Analytic accouting
2. Desactivate the following option
** Settings > Accounting > Analytic accouting > Sale > Use multiple analytic accounts on sales
3. Create a Sale order
** Add 2 qty of the product iMac
** Add in quote the delivery method "Normal Delivery Charges" and set 2 qty
** Set an analytic account under Contract/Analytic
** Set the field Create Invoice to "On delivery Order"
4. Deliver only 1 quantity of the iMac and then create the invoice
5. Deliver the last quantity of the iMac and then create the invoice

Behavior before the fix:
The first invoice contains 2 qty of the Transport
The second invoice contains 1 qty of the Transport, has no analytic account set, has no UOM set

Behavior after the fix:
The first invoice contains 2 qty of the Transport
The second invoice contains 0 qty of the Transport because it has already been invoiced

Closed #12644

opw:682284
2016-07-11 14:30:16 +02:00
Jérome Maes 06fd5de05d [FIX] website_crm_partner_assign: bad method signature 2016-07-11 13:36:22 +02:00
Yannick Tivisse 7417e24a38 [MERGE] master_l10n_be_hr_payroll_account: Migration to new API 2016-07-11 12:21:21 +02:00
Rohan Patel 3738bb16e9 [MIG] l10n_be_hr_payroll_account : Migrated to new API. 2016-07-11 12:20:54 +02:00
Rohan Patel 581a171ef1 [MOV] l10n_be_hr_payroll_account : Re-organized directory structure. 2016-07-11 12:20:54 +02:00
Yannick Tivisse e3b6a02c92 [MERGE] l10n_be_hr_payroll: Migration to new API 2016-07-11 12:00:51 +02:00
Rohan Patel 48853266df [MIG] l10n_be_hr_payroll : Migrated to new API. 2016-07-11 11:17:52 +02:00