odoo/odoo.git
9 years agoMerge branch '8.0' of github.com:odoo/odoo into 8.0
Fabien Pinckaers [Wed, 20 Aug 2014 17:38:59 +0000 (19:38 +0200)]
Merge branch '8.0' of github.com:odoo/odoo into 8.0

9 years ago[FIX] partner of order
Fabien Pinckaers [Wed, 20 Aug 2014 17:38:41 +0000 (19:38 +0200)]
[FIX] partner of order

9 years agoMerge pull request #1890 from odoo-dev/8.0-fixes-website-video-chm
Christophe Matthieu [Wed, 20 Aug 2014 16:59:58 +0000 (18:59 +0200)]
Merge pull request #1890 from odoo-dev/8.0-fixes-website-video-chm

[FIX] website: firefox video and layout; clean_for_save; link

9 years ago[FIX] website.editor: must display link information in linkdialox box. Remove /page...
Christophe Matthieu [Tue, 19 Aug 2014 16:26:12 +0000 (18:26 +0200)]
[FIX] website.editor: must display link information in linkdialox box. Remove /page/ and /page/website. from the needle to search page and apply real url as filter after the search

9 years ago[FIX] website.snippet: before the save of the view clean_for_save is called. The...
Christophe Matthieu [Tue, 19 Aug 2014 15:00:19 +0000 (17:00 +0200)]
[FIX] website.snippet: before the save of the view clean_for_save is called. The option marginAndResize (called by twitter) try to bind events on the overlay but the builder don't load the overlay (for time perf). The fix set a default jquery empty div to avoid the error.

9 years ago[FIX] tour: display username in log for point of sale module
Christophe Matthieu [Tue, 19 Aug 2014 14:20:26 +0000 (16:20 +0200)]
[FIX] tour: display username in log for point of sale module

9 years ago[FIX] website.snippet: can't edit website with firefox; remove firefox attr for media...
Christophe Matthieu [Tue, 19 Aug 2014 14:19:53 +0000 (16:19 +0200)]
[FIX] website.snippet: can't edit website with firefox; remove firefox attr for media video is edit mode

9 years ago[IMP] catch & warn about any TTFontFile exception
xmo-odoo [Wed, 20 Aug 2014 15:51:20 +0000 (03:51 +1200)]
[IMP] catch & warn about any TTFontFile exception

It turns out TTFontFile can throw not only TTFError (generic) and KeyError, but also ValueError (unknown cmap) and maybe others.

Just catch Exception, warn that the font couldn't be loaded and report why.

9 years ago[FIX] crm_partner_assign: allow employees to read the res_partner_activation model...
Thibault Delavallée [Wed, 20 Aug 2014 13:38:31 +0000 (15:38 +0200)]
[FIX] crm_partner_assign: allow employees to read the res_partner_activation model, fixing some access rights issues with the partner form view

9 years ago[FIX] mass_mailing: do not display templates void options menu when there are no...
Thibault Delavallée [Wed, 20 Aug 2014 13:37:23 +0000 (15:37 +0200)]
[FIX] mass_mailing: do not display templates void options menu when there are no option to display

9 years ago[ADD] stock: add new report for package that only show package barcode
Cedric Snauwaert [Wed, 20 Aug 2014 13:30:56 +0000 (15:30 +0200)]
[ADD] stock: add new report for package that only show package barcode

9 years ago[IMP] point_of_sale: track session logins
Antony Lesuisse [Wed, 20 Aug 2014 13:07:56 +0000 (15:07 +0200)]
[IMP] point_of_sale: track session logins

the pos session now keeps track of the session logins, and that number is
included in in the order reference. This prevents orders generated in parallely
created sessions from having the same reference, and also helps reduce fraud.

9 years ago[FIX] res_partner: fixed display of simplified partner form view (image and fields...
Thibault Delavallée [Wed, 20 Aug 2014 12:39:52 +0000 (14:39 +0200)]
[FIX] res_partner: fixed display of simplified partner form view (image and fields display was messy)

9 years ago[FIX] share: fixed crash when using the share wizard, linked to the new api.
Thibault Delavallée [Wed, 20 Aug 2014 10:51:01 +0000 (12:51 +0200)]
[FIX] share: fixed crash when using the share wizard, linked to the new api.

9 years ago[FIX] tools: mail: fixed read more link tha could be placed in a block to be removed...
Thibault Delavallée [Wed, 20 Aug 2014 10:01:50 +0000 (12:01 +0200)]
[FIX] tools: mail: fixed read more link tha could be placed in a block to be removed, being considered as a quote

9 years ago[FIX] fields: *2many related fields should not be read as superuser
Denis Ledoux [Wed, 20 Aug 2014 12:07:43 +0000 (14:07 +0200)]
[FIX] fields: *2many related fields should not be read as superuser

one2many and many2many fields depends on the security rules.
For instance, on products, with the taxes_id many2many fields, you only see the taxes of your own company, thanks to the multi company security rule
With related *2many fields, if you browse it with superuser, you will have all records of the one2many fields, even those you are not allowed to see, as superuser ignores security rules.

For instance, taxes_id of product.product is a related of taxes_id of product_template (through the inherits on product.template), and you should see the same taxes on the product template and on the product product (variant). This is not the case if the fields is read using the superuser

9 years agoMerge branch '8.0' of github.com:odoo/odoo into 8.0
Fabien Pinckaers [Wed, 20 Aug 2014 10:21:58 +0000 (12:21 +0200)]
Merge branch '8.0' of github.com:odoo/odoo into 8.0

9 years ago[FIX] missing row CSS
Fabien Pinckaers [Wed, 20 Aug 2014 10:21:38 +0000 (12:21 +0200)]
[FIX] missing row CSS

9 years ago[FIX] correct domain for autocomplete in many2one
Géry Debongnie [Wed, 20 Aug 2014 08:54:30 +0000 (10:54 +0200)]
[FIX] correct domain for autocomplete in many2one

The domain was using '=', which is correct when selecting a specific
element in autocompletion, but not when searching for all elements
matching a string.

9 years ago[FIX] project,project_issue: display order
Richard Mathot [Wed, 20 Aug 2014 09:11:20 +0000 (11:11 +0200)]
[FIX] project,project_issue: display order

Task/issues shuld be sorted on descending priority

9 years ago[FIX] bad link
Fabien Pinckaers [Wed, 20 Aug 2014 08:31:25 +0000 (10:31 +0200)]
[FIX] bad link

9 years ago[FIX] models: onchange return all subfields in cache when no subfields presents
Christophe Simonis [Tue, 19 Aug 2014 18:04:26 +0000 (20:04 +0200)]
[FIX] models: onchange return all subfields in cache when no subfields presents

9 years ago[FIX] point_of_sale: updated the tooltip for the to weight option to make it clearer...
Frederic van der Essen [Tue, 19 Aug 2014 16:02:17 +0000 (18:02 +0200)]
[FIX] point_of_sale: updated the tooltip for the to weight option to make it clearer that it is to be used with the hardware scale integration

9 years ago[FIX] project_issue: project issue user must be able to read resource calendar
Denis Ledoux [Tue, 19 Aug 2014 15:56:45 +0000 (17:56 +0200)]
[FIX] project_issue: project issue user must be able to read resource calendar

In order to be able to read the days_since_creation field

9 years ago[FIX] point_of_sale: prevent changing the customer after printing the receipt
Frederic van der Essen [Tue, 19 Aug 2014 15:55:46 +0000 (17:55 +0200)]
[FIX] point_of_sale: prevent changing the customer after printing the receipt

9 years ago[FIX] HTML row
Fabien Pinckaers [Tue, 19 Aug 2014 15:41:21 +0000 (17:41 +0200)]
[FIX] HTML row

9 years ago[FIX] point_of_sale: the receipt would not print correctly on first try
Frederic van der Essen [Tue, 19 Aug 2014 14:43:05 +0000 (16:43 +0200)]
[FIX] point_of_sale: the receipt would not print correctly on first try

9 years ago[FIX] base: show "application" in view view
Christophe Simonis [Tue, 19 Aug 2014 15:13:10 +0000 (17:13 +0200)]
[FIX] base: show "application" in view view

9 years ago[FIX] website: correct unslugify of routes
Christophe Simonis [Tue, 19 Aug 2014 14:43:23 +0000 (16:43 +0200)]
[FIX] website: correct unslugify of routes

9 years ago[FIX] HTML Questions
Fabien Pinckaers [Tue, 19 Aug 2014 14:33:25 +0000 (16:33 +0200)]
[FIX] HTML Questions

9 years ago[FIX] HTML Questions
Fabien Pinckaers [Tue, 19 Aug 2014 14:30:55 +0000 (16:30 +0200)]
[FIX] HTML Questions

9 years ago[FIX] mail: tell orm to rename column "read" to "is_read"
Christophe Simonis [Tue, 19 Aug 2014 13:35:25 +0000 (15:35 +0200)]
[FIX] mail: tell orm to rename column "read" to "is_read"

9 years agoMerge pull request #1800 from blaggacao/8.0-l10n_co
Fabien Pinckaers [Tue, 19 Aug 2014 11:09:33 +0000 (13:09 +0200)]
Merge pull request #1800 from blaggacao/8.0-l10n_co

8.0-l10n_co

9 years agoMerge pull request #1790 from thanhchatvn/patch-2
Fabien Pinckaers [Tue, 19 Aug 2014 11:05:28 +0000 (13:05 +0200)]
Merge pull request #1790 from thanhchatvn/patch-2

Update vi.po

9 years ago[FIX] purchase: purchase buttons on product form only for purchase users
Denis Ledoux [Tue, 19 Aug 2014 10:28:58 +0000 (12:28 +0200)]
[FIX] purchase: purchase buttons on product form only for purchase users

9 years ago[FIX] models: improve rationale for the management of flag 'recompute' in context
Raphael Collet [Mon, 18 Aug 2014 09:53:13 +0000 (11:53 +0200)]
[FIX] models: improve rationale for the management of flag 'recompute' in context

When the context contains 'recompute': False, the recomputation was not even
prepared. Now both create() and write() prepare the recomputation by invoking
method modified(). The flag only controls whether method recompute() is invoked.
In addintion, the former flag 'no_store_function' was converted to the flag
'recompute', so that both create() and write() use the same flag.

Fixes #1456

9 years ago[FIX] models: unexpected missing value when checking for a field in cache
Raphael Collet [Mon, 18 Aug 2014 09:50:24 +0000 (11:50 +0200)]
[FIX] models: unexpected missing value when checking for a field in cache

At the end of _prefetch_field(), a check is made to ensure that the cache
contains something for the field to prefetch. The check was incorrect because
the cache was checked for a regular value only.

9 years ago[FIX] sale_layout: store=True is causing trouble when generating invoices from a...
Raphael Collet [Tue, 19 Aug 2014 09:49:03 +0000 (11:49 +0200)]
[FIX] sale_layout: store=True is causing trouble when generating invoices from a pos order

9 years ago[IMP] website_quote: handle quote and website descriptions
Jeremy Kersten [Mon, 18 Aug 2014 15:53:50 +0000 (17:53 +0200)]
[IMP] website_quote: handle quote and website descriptions

Add field quote_description on product.template and turn website_description from sale.quote.line into a related.
Overwrite write and create methods to synchronise both fields when setting a product.
website_description on product.template is added by website_sale but there is no dependency relations between these modules so we need to define it in both modules.

9 years ago[IMP] Cache bundles in ir.attachments instead of LRU
Fabien Meghazi [Mon, 18 Aug 2014 13:57:51 +0000 (15:57 +0200)]
[IMP] Cache bundles in ir.attachments instead of LRU

9 years ago[FIX] point_of_sale: copy/paste error, super must use the apropriate class
Denis Ledoux [Mon, 18 Aug 2014 15:49:24 +0000 (17:49 +0200)]
[FIX] point_of_sale: copy/paste error, super must use the apropriate class

9 years agoMerge branch '8.0' of github.com:odoo/odoo into 8.0
Denis Ledoux [Mon, 18 Aug 2014 15:48:09 +0000 (17:48 +0200)]
Merge branch '8.0' of github.com:odoo/odoo into 8.0

9 years ago[FIX] website_forum_doc: fixed tree view impossible to use to create new chapters...
Thibault Delavallée [Mon, 18 Aug 2014 09:31:34 +0000 (11:31 +0200)]
[FIX] website_forum_doc: fixed tree view impossible to use to create new chapters (missing forum_id due to wrongly copy-pasted views) + fixed max width of images displayed in the doc.

9 years ago[FIX] mrp_operations: use list instead of record set for o2m
Quentin THEURET [Mon, 18 Aug 2014 09:45:45 +0000 (11:45 +0200)]
[FIX] mrp_operations: use list instead of record set for o2m

In v7, accessing a o2m returned a list of browse record while it returns a recordset in v8.
The method _move_pass expects a list so a manual conversion is required.
Fixes #1787

9 years ago[FIX] product, point_of_sale: add a display_default_code context option that can...
Frederic van der Essen [Mon, 18 Aug 2014 12:47:53 +0000 (14:47 +0200)]
[FIX] product, point_of_sale: add a display_default_code context option that can remove the internal reference (default code) from the displayed product name. Used in the point of sale to unclutter the receipt & GUI

9 years ago[IMP] models: improve code of _convert_to_write(), make it easier to read
Raphael Collet [Mon, 18 Aug 2014 12:19:24 +0000 (14:19 +0200)]
[IMP] models: improve code of _convert_to_write(), make it easier to read

9 years ago[FIX] point_of_sale: invoicing in the pos printed the wrong order due to a mismatch...
Frederic van der Essen [Mon, 18 Aug 2014 12:03:14 +0000 (14:03 +0200)]
[FIX] point_of_sale: invoicing in the pos printed the wrong order due to a mismatch between order ids and invoice ids

9 years ago[FIX] point_of_sale: the order uid were generated via timestamp, which were not seque...
Frederic van der Essen [Mon, 18 Aug 2014 10:19:56 +0000 (12:19 +0200)]
[FIX] point_of_sale: the order uid were generated via timestamp, which were not sequencial or easy to understand, they are now generated with the order id and order sequence number which are sequencial

9 years ago[FIX] point_of_sale: the product name field changed to display_name to include varian...
Frederic van der Essen [Mon, 18 Aug 2014 09:35:24 +0000 (11:35 +0200)]
[FIX] point_of_sale: the product name field changed to display_name to include variants information, this should be reflected in searches as well.

9 years agoImprint corrections - typo
blaggacao [Sat, 16 Aug 2014 04:41:47 +0000 (23:41 -0500)]
Imprint corrections - typo

9 years agoImprint corrections
blaggacao [Sat, 16 Aug 2014 04:40:23 +0000 (23:40 -0500)]
Imprint corrections

9 years ago[FIX] #1526 - Missing filename on binary fields download
blaggacao [Sat, 16 Aug 2014 04:17:28 +0000 (23:17 -0500)]
[FIX] #1526 - Missing filename on binary fields download

9 years agoThis is an updated colombian chart of accounts:
blaggacao [Sat, 16 Aug 2014 03:50:53 +0000 (22:50 -0500)]
This is an updated colombian chart of accounts:
- Accounts based on puc.com.co
- adatpations according to current law and last fiscal reform of 2013/14 incorporated (eg. INC, CREE)
- default: 6-numberd, 6th level are account, others views according to colombian PUC regulations
- default accounts predefined according to standard use case
- Most colombian taxes preloaded. Level of detail adjusted to present and future DIAN reporting requirements
- Complete Tax Code layout for generating all necesary transactional fiscal information, Taxes (INC, IVA, CREE), Retentions (ReteIVA, ReteRENTA), Autoretentions (AutoretentionRenta, CREE) - Including predefined cases for import/export, trade with free trade zones, and trade with Companies under the international trade regime
- EXCEPT: ICA Community tax not included, as differs greatly un per city level

9 years ago[FIX] #1526 - Missing filename on binary fields download
blaggacao [Sat, 16 Aug 2014 03:26:38 +0000 (22:26 -0500)]
[FIX] #1526 - Missing filename on binary fields download

9 years agoUpdate vi.po
Bruce Nguyen [Fri, 15 Aug 2014 02:18:24 +0000 (09:18 +0700)]
Update vi.po

Update translate vietnamese

9 years ago[FIX] models: `_convert_to_write()` shall not return `NewId`
Christophe Simonis [Thu, 14 Aug 2014 19:43:16 +0000 (21:43 +0200)]
[FIX] models: `_convert_to_write()` shall not return `NewId`

The result of _convert_to_write() is intended to be pass directly to
`write()` or returned to the client (`onchange()` and `default_get()`.
`NewId` is as special value that must not be stored into the database
or exposed to the client.

9 years ago[FIX] models: stored func fields computation on one2many write
Denis Ledoux [Thu, 14 Aug 2014 16:19:48 +0000 (18:19 +0200)]
[FIX] models: stored func fields computation on one2many write

On one2many fields writing in an existing record (not when creating new record), the computed stored fields of the one2many were not re-computed correctly
Computed stored fields were marked as modified only if no_store_function was not set to True in the context. no_store_function is set when writing one2many records on an existing record.
Now, these computed stored fields are marked as to be recomputed, but are recomputed later, at the end of the existing record write

9 years ago[FIX] models: onchange on new records do not nullify fields from _inherits records
Christophe Simonis [Thu, 14 Aug 2014 15:55:20 +0000 (17:55 +0200)]
[FIX] models: onchange on new records do not nullify fields from _inherits records

9 years ago[I18N] Update 8.0 translation with latest source code
Olivier Dony [Thu, 14 Aug 2014 15:01:54 +0000 (17:01 +0200)]
[I18N] Update 8.0 translation with latest source code

9 years ago[FIX] test_new_api: missing parent menu
Denis Ledoux [Thu, 14 Aug 2014 14:48:32 +0000 (16:48 +0200)]
[FIX] test_new_api: missing parent menu

9 years ago[FIX] base : context evaluation with active_id server side. It now keeps the active_i...
Jérome Maes [Thu, 14 Aug 2014 09:53:23 +0000 (11:53 +0200)]
[FIX] base : context evaluation with active_id server side. It now keeps the active_id in case of a refresh.

9 years ago[FIX] google_{account|calendar}: fix synchro
cod-odoo [Tue, 5 Aug 2014 08:59:02 +0000 (14:29 +0530)]
[FIX] google_{account|calendar}: fix synchro

- no more tracebacks when trying to sync more than once with Google Calendar
- no more context hacks, explicit return of `ask_time`.

(Closes #1588)

9 years ago[MERGE] Forward-port saas-5 up to acbdac4
Olivier Dony [Thu, 14 Aug 2014 12:56:41 +0000 (14:56 +0200)]
[MERGE] Forward-port saas-5 up to acbdac4

9 years ago[MERGE] Forward-port saas-4 up to 9a84d55
Olivier Dony [Thu, 14 Aug 2014 12:48:55 +0000 (14:48 +0200)]
[MERGE] Forward-port saas-4 up to 9a84d55

9 years ago[MERGE] Forward-port saas-3 up to 9b55532
Olivier Dony [Thu, 14 Aug 2014 12:37:42 +0000 (14:37 +0200)]
[MERGE] Forward-port saas-3 up to 9b55532

9 years ago[FIX] web: CharDomain form widget: fixed change selection
Thibault Delavallée [Thu, 14 Aug 2014 11:10:26 +0000 (13:10 +0200)]
[FIX] web: CharDomain form widget: fixed change selection
button not correctly displayed depending on the effective_readonly
parameter. It is now correctly computed.

Also added a link to see records when in view mode, instead of not
being able to see the selection if not in edit mode.

9 years ago[FIX] export: in saas-3, req becomes request.
Denis Ledoux [Thu, 14 Aug 2014 10:49:32 +0000 (12:49 +0200)]
[FIX] export: in saas-3, req becomes request.

Error during forward port b9275da8a52255d0fc3f914de9d406612e7dde50

9 years ago[FIX] mail, mass_mailing: do not add a link to access the document
Thibault Delavallée [Thu, 14 Aug 2014 09:29:00 +0000 (11:29 +0200)]
[FIX] mail, mass_mailing: do not add a link to access the document
when the email is not a notification, or not an email usign the automatic
threading. This means that when doing mass mailing with a fixed reply_to
there won't be any link to access the original document, which is what
we want. Otherwise when mailing partners, they have a link to access
their own partner profile, which does not make sense.

9 years ago[MERGE] Forward-port of 7.0 up to 85d2b45
Olivier Dony [Thu, 14 Aug 2014 02:11:33 +0000 (04:11 +0200)]
[MERGE] Forward-port of 7.0 up to 85d2b45

9 years ago[I18N] Update 7.0 translations with latest changes on Launchpad
Olivier Dony [Thu, 14 Aug 2014 01:38:58 +0000 (03:38 +0200)]
[I18N] Update 7.0 translations with latest changes on Launchpad

See also https://github.com/odoo/odoo/wiki/GitHub-Transition#translations

9 years ago[I18N] Update all 7.0 translation templates with latest terms and annotations
Olivier Dony [Thu, 14 Aug 2014 00:24:06 +0000 (02:24 +0200)]
[I18N] Update all 7.0 translation templates with latest terms and annotations

Total new terms: 168
Total deleted terms: 95
Total identical terms: 16329
(Some modules skipped, typically all l10n_* modules)

9 years ago[FIX] tools.translate: addons path resolution failed with duplicates
Olivier Dony [Thu, 14 Aug 2014 00:07:59 +0000 (02:07 +0200)]
[FIX] tools.translate: addons path resolution failed with duplicates

When the addons_path config contained the
default path, the system was working with
an empty addons_path in the middle of the
other paths. This empty one matched for all
files, making all files appear to belong to
the root path component, e.g. `home` if the
root path is in /home.
Refactored a bit to avoid duplicates and
redundant path calculations.

9 years ago[FIX] tools.translate: when loading entries from a PO file, use also the POT.
Vo Minh Thu [Wed, 13 Aug 2014 20:59:13 +0000 (22:59 +0200)]
[FIX] tools.translate: when loading entries from a PO file, use also the POT.

On Launchpad, as commented on bug 933496, PO entries (and their comments) are
shared between series. This mean that e.g. the 7.0 series can have the wrong
`reference` comments (those beginning with #:) as they would be copied from say
the trunk series. Those `reference` comments are used to import translations
and look them up.

This patch adds a few lines of code to tools.translate so that targets
defined in the POT `reference` comments are used in addition to those from the
PO file.

Also adds a test module to validate the new behavior.

This patch stems from:
 - the 6.1 branch by Vo Minh Thu:
    https://code.launchpad.net/+branch/~openerp-dev/openobject-server/6.1-fix-po-targets-933496-vmt
 - the 7.0 port by Numerigraphe:
    https://code.launchpad.net/~numerigraphe-team/openobject-server/7.0-fix-po-targets-933496-vmt

9 years ago[MERGE] Forward-port of saas-5 up to 6189c44
Olivier Dony [Wed, 13 Aug 2014 18:56:32 +0000 (20:56 +0200)]
[MERGE] Forward-port of saas-5 up to 6189c44

9 years ago[MERGE] Forward-port of saas-4 up to 65b6b81
Olivier Dony [Wed, 13 Aug 2014 18:55:53 +0000 (20:55 +0200)]
[MERGE] Forward-port of saas-4 up to 65b6b81

9 years ago[MERGE] Forward-port of saas-3 up to 303d2e0
Olivier Dony [Wed, 13 Aug 2014 18:54:49 +0000 (20:54 +0200)]
[MERGE] Forward-port of saas-3 up to 303d2e0

9 years ago[FIX] portal_sale: access rights: sale.shop was removed at cf6595b
Olivier Dony [Wed, 13 Aug 2014 18:54:27 +0000 (20:54 +0200)]
[FIX] portal_sale: access rights: sale.shop was removed at cf6595b

Fixes error in forward-port b9275da

9 years ago[MERGE] Forward-port of saas-5 up to 20cc18d
Olivier Dony [Wed, 13 Aug 2014 18:46:47 +0000 (20:46 +0200)]
[MERGE] Forward-port of saas-5 up to 20cc18d

9 years ago[MERGE] Forward-port saas-4 up to 847c7c8
Olivier Dony [Wed, 13 Aug 2014 15:51:17 +0000 (17:51 +0200)]
[MERGE] Forward-port saas-4 up to 847c7c8

9 years ago[MERGE] Forward-port saas-3 up to daaef17
Olivier Dony [Wed, 13 Aug 2014 15:50:03 +0000 (17:50 +0200)]
[MERGE] Forward-port saas-3 up to daaef17

9 years ago[FIX] portal_sale: missing closing tag in b9275da during forward-port
Olivier Dony [Wed, 13 Aug 2014 15:49:40 +0000 (17:49 +0200)]
[FIX] portal_sale: missing closing tag in b9275da during forward-port

9 years ago[MERGE] Forward-port saas-4 up to 2694ed1
Olivier Dony [Wed, 13 Aug 2014 15:33:34 +0000 (17:33 +0200)]
[MERGE] Forward-port saas-4 up to 2694ed1

9 years ago[MERGE] Forward-port saas-3 up to b9275da
Olivier Dony [Wed, 13 Aug 2014 15:33:12 +0000 (17:33 +0200)]
[MERGE] Forward-port saas-3 up to b9275da

9 years ago[MERGE] Forward-port 7.0 up to 23cffab
Olivier Dony [Wed, 13 Aug 2014 15:30:06 +0000 (17:30 +0200)]
[MERGE] Forward-port 7.0 up to 23cffab

9 years ago[FIX] portal_sale: remove more access rights, add pricelist access
Olivier Dony [Wed, 13 Aug 2014 15:20:49 +0000 (17:20 +0200)]
[FIX] portal_sale: remove more access rights, add pricelist access

Pricelist access is necessary for being able to read
the unit price of sale order lines, and does not
pose major security risks, as it does not permit
reading the actual pricelist definition.

9 years ago[FIX] portal_sale: remove un-necessary access rights, improve rules
Olivier Dony [Wed, 13 Aug 2014 13:15:29 +0000 (15:15 +0200)]
[FIX] portal_sale: remove un-necessary access rights, improve rules

Portal access rights need to be associated with
security rules, or not granted at all, as soon
as they grant access to non-trivial data.

9 years ago[CLEAN] mail_message: removed an unused import
Thibault Delavallée [Wed, 13 Aug 2014 14:45:52 +0000 (16:45 +0200)]
[CLEAN] mail_message: removed an unused import

9 years ago[FIX] mass_mailing: fixed label of ab testing not displayed in mailing
Thibault Delavallée [Wed, 13 Aug 2014 14:45:36 +0000 (16:45 +0200)]
[FIX] mass_mailing: fixed label of ab testing not displayed in mailing
form view when not using campaigns; however this option should be displayed.

9 years ago[FIX] mail: posting on the user should be redirect to its partner, not nowhere.
Thibault Delavallée [Wed, 13 Aug 2014 12:47:35 +0000 (14:47 +0200)]
[FIX] mail: posting on the user should be redirect to its partner, not nowhere.

9 years ago[FIX] mail: when having only mail installed, do not show any 'share with my followers...
Thibault Delavallée [Wed, 13 Aug 2014 12:35:25 +0000 (14:35 +0200)]
[FIX] mail: when having only mail installed, do not show any 'share with my followers' compose box. This comes only with hr, for the inbox. This was probably forgotten when updating the mailboxes hr-goal and hr-related gamification / chatter stuff.

9 years ago[FIX] purchase: add purchase_order_count in kanban for purchase users only
Denis Ledoux [Wed, 13 Aug 2014 14:14:56 +0000 (16:14 +0200)]
[FIX] purchase: add purchase_order_count in kanban for purchase users only

No need to set account.group_account_manager for the field supplier_invoice_count, as account.group_account_manager implies account.group_account_user

9 years ago[FIX] base: revert 19e401a for title on res.partner form
Martin Trigaux [Wed, 13 Aug 2014 12:59:37 +0000 (14:59 +0200)]
[FIX] base: revert 19e401a for title on res.partner form

The title of the partner is restricted with a context that will change in the onchange_type. Having twice the same field will not work well.
Remove the invisible attribute as the domain is handled by the domain.

9 years ago[IMP] calculating nextcall datetime of a cron SHOULD use the cron's user
Samus CTO [Wed, 13 Aug 2014 12:45:38 +0000 (14:45 +0200)]
[IMP] calculating nextcall datetime of a cron SHOULD use the cron's user

9 years ago[FIX] context_timestamp MUST return a "timezone aware" timestamp
Samus CTO [Wed, 13 Aug 2014 12:43:53 +0000 (14:43 +0200)]
[FIX] context_timestamp MUST return a "timezone aware" timestamp

9 years ago[FIX] export: add the context in the export
Denis Ledoux [Wed, 13 Aug 2014 12:52:01 +0000 (14:52 +0200)]
[FIX] export: add the context in the export

In some cases, the data dispalyed in a list depends on the context
This context needs to be passed to the export method, so the exported data reflects correctly the data from the list view

9 years ago[FIX] gamification: prohibitive record rule processing with many users/goals
Olivier Dony [Wed, 13 Aug 2014 11:26:22 +0000 (13:26 +0200)]
[FIX] gamification: prohibitive record rule processing with many users/goals

Due to the multi-company record rule on gamification.goal,
each access to the Goals menu and each opening of the
Messaging menu (thus calling get_serialised_gamification_summary())
is extremely slow (with several thousands goals/users).

Adding auto_join to the user_id FK on goals makes it much
faster. However it causes crashes when reading the table
because the _order of gamification.goal uses `create_date`,
which becomes ambiguous after the auto_join with res_users.

Solving this can be done by re-implementing _read_flat()
in the ORM using the internal Query object, as in search(),
which takes care of fully-qualifying all column names.

Until this is fixed, a simple workaround is to use
start_date in the _order instead of collision-prone `create_date`.

9 years ago[FIX] mail, email_template: prevent user from creating
Thibault Delavallée [Wed, 13 Aug 2014 10:22:51 +0000 (12:22 +0200)]
[FIX] mail, email_template: prevent user from creating
templates in the templat_idm2o field on the wizard; prevent users from
creating models in the model_id m2o field on the template form view.

9 years ago[FIX] account.invoice: payments can never be shown to portal users, but residual...
Olivier Dony [Wed, 13 Aug 2014 10:38:38 +0000 (12:38 +0200)]
[FIX] account.invoice: payments can never be shown to portal users, but residual might be needed

The residual amount is typically needed to render the
online payment forms (payment acquirers).

Payments on the other hand rely on account.move.line,
something that portal users should never be allowed to read.
Removing the field from the view by setting a model-level
group permission ensures they will not see an error.

9 years ago[FIX] procurement, stock: forward port of bug fix 3609ba10f2d00a608d8f32334ae1b9a25b3...
Denis Ledoux [Wed, 13 Aug 2014 10:00:38 +0000 (12:00 +0200)]
[FIX] procurement, stock: forward port of bug fix 3609ba10f2d00a608d8f32334ae1b9a25b34f037

9 years ago[FIX] portal_sale: browse data for payment acquirer form with superuser ID
Olivier Dony [Wed, 13 Aug 2014 09:50:04 +0000 (11:50 +0200)]
[FIX] portal_sale: browse data for payment acquirer form with superuser ID

The payment form needs to be rendered for non-employee
users, and may require accessing extra financial data
not available for those users.