odoo/odoo.git
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[IMP] product: filter and group by category_id on product.template
Hardik Ansodariya [Tue, 12 Aug 2014 10:19:15 +0000 (15:49 +0530)]
[IMP] product: filter and group by category_id on product.template

Was removed (for unknown reason) during refactoring of product and template (opw 611699)

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] base: python 2.6 incompatibility for dictionary comprehension
Martin Ambroz [Wed, 20 Aug 2014 04:42:19 +0000 (08:42 +0400)]
[FIX] base: python 2.6 incompatibility for dictionary comprehension

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[IMP] auth_oauth: set default 'zocial' css_class
Sandy Carter [Mon, 11 Aug 2014 17:21:29 +0000 (13:21 -0400)]
[IMP] auth_oauth: set default 'zocial' css_class

The buttons for new providers needs at least the zocial css class to be seen as button. As the field css_class is not in the default form view, add it by default.

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] account_anglo_saxon: variable 'standard_price' referenced before assignment
Daniel Dico [Sat, 16 Aug 2014 04:59:27 +0000 (00:59 -0400)]
[FIX] account_anglo_saxon: variable 'standard_price' referenced before assignment

Due to forward-port, the variable standard_price was reintroduced instead of valuation_price_unit
Move the change of currency after the fifo/lifo computation.
Fixes #1801

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 ago[FIX] web: ignored readonly attribute on image widget
Sébastien BEAU [Sat, 16 Aug 2014 23:44:12 +0000 (01:44 +0200)]
[FIX] web: ignored readonly attribute on image widget

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] web: rendering issue in mail composer on Firefox
fka-odoo [Wed, 13 Aug 2014 07:13:34 +0000 (12:43 +0530)]
[FIX] web: rendering issue in mail composer on Firefox

The cleditor width does not include the margins. Setting 100% will make the editable area too large (104%) on Firefox (opw 611700).
Replaced by auto, the default value adviced by CLEditor.

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] product: specify a view for 'Variant Values' action
kevin wang [Tue, 19 Aug 2014 02:54:01 +0000 (10:54 +0800)]
[IMP] product: specify a view for 'Variant Values' action

9 years ago[FIX] account_voucher: wrong type in context
David Arnold [Tue, 19 Aug 2014 06:43:47 +0000 (01:43 -0500)]
[FIX] account_voucher: wrong type in context

The type 'general' no longer exists on a account.voucher. As in general context, removed the default value on this menu.
Fixes #1261, it produces a traceback in 8.0 where the selection fields are less fault-tolerant.

9 years ago[FIX] sale: define sale_note field before using it as a default value for sale.order
Denis Ledoux [Tue, 19 Aug 2014 07:48:05 +0000 (09:48 +0200)]
[FIX] sale: define sale_note field before using it as a default value for sale.order

When uninstalling/installing sale module, this can be problematic

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[IMP] account_voucher: make the field tax_amount always readonly
Martin Trigaux [Mon, 18 Aug 2014 15:59:17 +0000 (17:59 +0200)]
[IMP] account_voucher: make the field tax_amount always readonly

The field tax_amount is fieled with onchanges and the compute_tax method. Setting a different value than the one computed by the system may lead to unbalanced move (which is obviously wrong).
In the future, handeling these operations by setting the correct value to the tax accounts would be better.

9 years ago[FIX] account_voucher: avoid error if no partner
Martin Trigaux [Mon, 18 Aug 2014 15:50:32 +0000 (17:50 +0200)]
[FIX] account_voucher: avoid error if no partner

The field partner_id is not required on an account.voucher but the validation was failing if none was set (opw 611663).
This patch makes a fallback on the account of the voucher if neither a partner nor a writeoff account is specified.

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] account_analytic_analysis: quantity overdue on quantity exceeded, not reached
Denis Ledoux [Mon, 18 Aug 2014 12:05:41 +0000 (14:05 +0200)]
[FIX] account_analytic_analysis: quantity overdue on quantity exceeded, not reached

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] website_twitter: IE does not accept twitter date format
Denis Ledoux [Mon, 18 Aug 2014 11:13:56 +0000 (13:13 +0200)]
[FIX] website_twitter: IE does not accept twitter date format

Datetime like Tue Jul 13 23:18:36 +0000 2010 is not accepted by IE and return "Invalid date".
Therefore, We parse the date to a format known by IE (and other browsers)
Trick took from http://stackoverflow.com/questions/3243546/problem-with-javascript-date-function-in-ie-7-returns-nan

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] website_customer: the extra / for url pager is not need in saas-4
JKE-be [Mon, 18 Aug 2014 09:39:33 +0000 (11:39 +0200)]
[FIX] website_customer: the extra / for url pager is not need in saas-4

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 ago[FIX] product: make sure unlinked product still exists
Thomas Groutars [Thu, 14 Aug 2014 14:47:01 +0000 (16:47 +0200)]
[FIX] product: make sure unlinked product still exists

When uninstalling/updating a module, we may execute unlink method on product.template before product.product. In such cases, the product is already removed after removeing the template (_inherits) and the chained unlink of the product would fail (traceback when browsing).

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] point_of_sale: field date of report.pos.order should be a datetime
Denis Ledoux [Thu, 14 Aug 2014 16:01:37 +0000 (18:01 +0200)]
[FIX] point_of_sale: field date of report.pos.order should be a datetime

The date_order field of the pos.order is a datetime, not a date
As, in report.pos.order, the date field is related to date_order of the pos.order

We usually do not commit fixes altering the model fields structure in 7.0, but this one is retro-compatible, as the database structure won't change

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[FIX] web: do not focus if the focus_field is not a field
Denis Ledoux [Thu, 14 Aug 2014 15:33:59 +0000 (17:33 +0200)]
[FIX] web: do not focus if the focus_field is not a field

Sometimes, focus_field could be a button, and in such cases, we should not focus on it

opw-612045

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] stock: inventory lines with no production lot: compare with correct stock level
Rifakat [Thu, 7 Aug 2014 14:56:27 +0000 (16:56 +0200)]
[FIX] stock: inventory lines with no production lot: compare with correct stock level

Inventory lines without production lot number should
be compared with the stock level of products without
a production lot. Otherwise the final result of a
validated inventory is wrong as soon as there are
lines with and without production lot for the same
product.

Adds corresponding regression test.

Fixes https://bugs.launchpad.net/openobject-addons/+bug/1008099
Manual rebase of #1658, courtesy of Numerigraphe

9 years ago[FIX] account: reconcile: no useless revalidation
Olivier Dony [Thu, 14 Aug 2014 13:46:37 +0000 (15:46 +0200)]
[FIX] account: reconcile: no useless revalidation

Avoid revalidating the complete account moves
that contain the lines being reconciled.
The reconciliation does not change the validity
of those moves anyway.
This represents a very important speed up of
reconciliation when moves with several hundred
lines are involved.

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] Fixed the issue of calendar view reload events inconsistency, when the slow...
Mohammed Shekha [Wed, 13 Aug 2014 09:25:03 +0000 (14:55 +0530)]
[FIX] Fixed the issue of calendar view reload events inconsistency, when the slow create popup creates event through any form button which is kind of object, action or workflow at that time events are reloaded but still button action is not called like workflow is not triggered and hence state of the event is still not changed and due to domain newly created event is filtered, note that events are refetched when create_completed is triggered and create_completed is triggered right after creation of record, but there are case where some form button changes state of the record and it requires to refetched for example we have scenario in mrp order planning where Confirm Production creates event but before workflow is triggered and state of the event is changed, events are reloaded and newly created event will not returned because of domain.

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[IMP] base: no default domain for partner's title
Martin Trigaux [Thu, 14 Aug 2014 10:00:27 +0000 (12:00 +0200)]
[IMP] base: no default domain for partner's title

The title field should not have a domain by default.
When a new record is created or the 'is company' field is changed, the onchange_type is triggered to restrict the domain accordingly to is_company field.
When an existing record is modified, there will have no domain on title field. It's not ideal but at least companies will be able to change the title without the need to modify twice the field is_company.
Fixes #1713

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.