odoo/odoo.git
9 years ago[FIX] account: unit arg of on_change_unit_amount can be False
Denis Ledoux [Thu, 31 Jul 2014 16:15:41 +0000 (18:15 +0200)]
[FIX] account: unit arg of on_change_unit_amount can be False

9 years ago[FIX] account: on_change_unit_amount do not reset uom to default
Denis Ledoux [Thu, 31 Jul 2014 16:05:17 +0000 (18:05 +0200)]
[FIX] account: on_change_unit_amount do not reset uom to default

9 years ago[FIX] sale: copy_quotation must propagate the context
Guewen Baconnier [Wed, 9 Jul 2014 09:39:58 +0000 (11:39 +0200)]
[FIX] sale: copy_quotation must propagate the context

9 years agoPassed default type while creating document page category from document page
dhr-odoo [Mon, 7 Jul 2014 12:38:12 +0000 (18:08 +0530)]
Passed default type while creating document page category from document page

9 years ago[FIX] project_long_term: avoid bad duplication of phases
Martin Trigaux [Wed, 30 Jul 2014 13:27:58 +0000 (15:27 +0200)]
[FIX] project_long_term: avoid bad duplication of phases

When we duplicate a project, the related phases need to be duplicated as well but keeping references between each other.
e.g. 'project 1' with 'phase A' follwed by 'phase B' should become 'project 1 (copy)' with 'phase A (copy)' followed by 'phase B (copy)'.
Fixing bug lp:1212860, opw 607062

9 years ago[FIX] account_voucher: avoid trying unreconcile a move twice
Ravi Gohil [Thu, 10 Jul 2014 11:39:15 +0000 (17:09 +0530)]
[FIX] account_voucher: avoid trying unreconcile a move twice

When we cancel a voucher, we may be trying to unlink a reconciliation that was already removed on another move (just looking at the version in cache). In such cases, the unlink would fail with traceback. opw 610287

9 years ago[FIX] sale: config, timesheet if module account_analytic_analysis
Denis Ledoux [Wed, 30 Jul 2014 13:26:43 +0000 (15:26 +0200)]
[FIX] sale: config, timesheet if module account_analytic_analysis

In Settings > Sales, the onchange_timesheet ensure that if you check timesheet, it checks module_account_analytic_analysis.

Therefore, if module_account_analytic_analysis is installed, timesheet should be checked by default
Until now, it worked "luckily", because the onchange_timesheet of the field module_account_analytic_analysis was triggered before the onchange_timesheet of the timesheet field. Nevertheless, we shouldn't trust the onchange calls order.

9 years ago[FIX] stock: partial deliveries switch on delivered picking
Lionel Sausin (Numérigraphe) [Fri, 25 Jul 2014 09:54:36 +0000 (11:54 +0200)]
[FIX] stock: partial deliveries switch on delivered picking

Users don't care for the backorder picking precisely because they can't process it, whereas they may have to do some more things on the picking they processed: invoice it, print delivery orders or transportation stickers..
Refresh the browse record after changing the name to avoid the need to rebrowse.
Fixes #1372

9 years ago[FIX] mail: reset of default_type in context
StefanRijnhart [Tue, 29 Jul 2014 10:17:38 +0000 (12:17 +0200)]
[FIX] mail: reset of default_type in context

When creating a new message, we need to reset the default_type key to avoid context propagation (e.g. invoice menu).
However we used to compare the key in context (char) with the list of selections (tuple) so it was never matching and always reset.

9 years agoMerge pull request #1391 from savoirfairelinux/7.0-translate-trans_generate_debug_print
xmo-odoo [Tue, 29 Jul 2014 11:51:48 +0000 (13:51 +0200)]
Merge pull request #1391 from savoirfairelinux/7.0-translate-trans_generate_debug_print

[FIX] translate: Fix debug print when parse path list to translate.

9 years ago[FIX] web: on refresh, do search_read with fields passed
Denis Ledoux [Mon, 28 Jul 2014 17:02:11 +0000 (19:02 +0200)]
[FIX] web: on refresh, do search_read with fields passed

9 years ago[IMP] base_vat: differenciate VIES and classical VAT error
Ravi Gohil [Fri, 25 Jul 2014 07:15:40 +0000 (12:45 +0530)]
[IMP] base_vat: differenciate VIES and classical VAT error

Display a different error message so that users are aware if the test failed with VIES enabled or not (opw 609823)

9 years agoRevert 3dec090 "[FIX] ir_values: fallback when no condition"
Martin Trigaux [Mon, 28 Jul 2014 12:35:44 +0000 (14:35 +0200)]
Revert 3dec090 "[FIX] ir_values: fallback when no condition"

An ir.value without condition should not match when searching with a condition.
When a field with change_default on it is modified, the method get_defaults is called with the new value. This means that manually modifying a field with this trigger would put back the default value (opw 611193).

9 years ago[FIX] account: no journal items on consolidation accounts
Humberto Arocha [Thu, 10 Jul 2014 19:55:01 +0000 (15:25 -0430)]
[FIX] account: no journal items on consolidation accounts

As for the view accounts, the consolidation accounts should not allow to create journal items.
Fixes #1090

9 years ago[FIX] translate: Fix debug print when parse path list to translate.
Mathieu Benoit [Fri, 25 Jul 2014 20:17:29 +0000 (16:17 -0400)]
[FIX] translate: Fix debug print when parse path list to translate.

9 years ago[FIX] hr_holidays: do not allow reduce remaining leaves
Denis Ledoux [Fri, 25 Jul 2014 12:45:48 +0000 (14:45 +0200)]
[FIX] hr_holidays: do not allow reduce remaining leaves

In the Employee form, a remaining legal leaves field is available, which shows remaining validated leaves from allocation requests
As this is not allowed to delete a validated allocation requets, it shouldn't be possible to reduce the validated remaining leaves of an employee.
To reduce the remaining leaves of an employee, the user should cancel and remove the allocation request

9 years ago[ADD] safe_eval: UNPACK_SEQUENCE and Exception
Denis Ledoux [Fri, 25 Jul 2014 11:00:17 +0000 (13:00 +0200)]
[ADD] safe_eval: UNPACK_SEQUENCE and Exception

Allowing UNPACK_SEQUENCE allows the use of the "multi" assignation:
a, b = [1,2]
for a,b in items

9 years ago[FIX] ir_fields: allow accent on selection import
Denis Ledoux [Fri, 25 Jul 2014 09:53:30 +0000 (11:53 +0200)]
[FIX] ir_fields: allow accent on selection import

If the selection label (not value) had accents, it wasn't possible to import it using the label having accents

9 years ago[ADD] base_vat: add VAT validation for Peruvian localization.
dsabrinarg [Fri, 25 Jul 2014 03:31:12 +0000 (22:31 -0500)]
[ADD] base_vat: add VAT validation for Peruvian localization.

9 years ago[FIX] stock: do not set user_id on prepare_invoice_group
Denis Ledoux [Thu, 24 Jul 2014 18:42:21 +0000 (20:42 +0200)]
[FIX] stock: do not set user_id on prepare_invoice_group

The user_id is already set by the prepare_invoice method, which is called before the prepare_invoice_group (the user_id is already set, thus)
Besides, _prepare_invoice is overriden in sale_stock, to set the picking sale order salesman as user_id, and, without this correct, grouping invoicse by partner re-set the user_id to uid, which is wrong.

9 years ago[IMP] account: do not offer closed analytic accounts on invoices
Yannick Vaucher [Thu, 24 Jul 2014 10:21:34 +0000 (12:21 +0200)]
[IMP] account: do not offer closed analytic accounts on invoices

lp:1223922, opw 609656

9 years ago[FIX] purchase_analytic_plans: keep reference to analytic distribution
Ravi Gohil [Mon, 9 Jun 2014 07:17:54 +0000 (12:47 +0530)]
[FIX] purchase_analytic_plans: keep reference to analytic distribution

Purchase orders created with invoice policy 'Based on incoming shipments' were not keeping the reference to the account analytic distribution when invoiced. opw 607577

9 years ago[FIX] mail: display translated model name at record creation
Sandy Carter [Tue, 15 Jul 2014 20:17:36 +0000 (16:17 -0400)]
[FIX] mail: display translated model name at record creation

When a record is created, if it inherits from mail.thread, a message 'OBJECT created' is posted. 'created' is translated but the name of the model wasn't.
This fix uses the name of the linked ir.model which is already a translatable field.
lp:1262000, opw 611043

9 years ago[FIX] web: correct rev 680f955
Martin Trigaux [Wed, 23 Jul 2014 10:19:51 +0000 (12:19 +0200)]
[FIX] web: correct rev 680f955

Missing backport of commit f652402 for buffered dataset
Again, should not be forwardported

9 years ago[FIX] stock: allow same serial number for different products
Hardik Ansodariya [Wed, 23 Jul 2014 08:03:40 +0000 (10:03 +0200)]
[FIX] stock: allow same serial number for different products

Bug lp:1222289, opw 597639

9 years ago[FIX] delivery: use unit of measure and not unit of stock to compute price of delivery
Martin Trigaux [Tue, 22 Jul 2014 14:38:52 +0000 (16:38 +0200)]
[FIX] delivery: use unit of measure and not unit of stock to compute price of delivery

The computation expects uom and it was wrongly passing uos qunatities.

9 years ago[FIX] web: reload after wizard when record has been removed cause exception
Anaël Closson [Wed, 28 May 2014 14:01:47 +0000 (16:01 +0200)]
[FIX] web: reload after wizard when record has been removed cause exception

If an action unlink the current records (e.g. unreconcile on account.move.reconcile), trigger history_back to avoid errors when trying to reload inexistant record (opw 607883)
This is a partial backport of saas-4 code (rev c0db6ae, 162ad1c) and should not be forward ported.

9 years ago[FIX] project : do not show canceled projects in task
Dhs-odoo [Mon, 14 Jul 2014 09:53:39 +0000 (15:23 +0530)]
[FIX] project : do not show canceled projects in task

fixes #938, opw 610318

9 years ago[FIX] sale: only propose services for pay advances
Denis Ledoux [Fri, 18 Jul 2014 15:26:48 +0000 (17:26 +0200)]
[FIX] sale: only propose services for pay advances

When creating an invoice from a sale order, if the user choose to invoice a fixed price (deposit), he has the possibility to choose an advance product. As described in the help message, this product should be a service product. Therefore, we add a domain so only services are displayed in the dropdown list

9 years ago[FIX] account: better error message when regenarating opening entries (opw 606923)
Martin Trigaux [Wed, 4 Jun 2014 14:33:58 +0000 (16:33 +0200)]
[FIX] account: better error message when regenarating opening entries (opw 606923)

If we try to generate twice entries on the same fiscal year, we can get completly unrelated errors ("You can only reconcile journal items with the same partner").
With this, we make sure people will first cancel the entries before regeneraing the entries.

9 years ago[FIX] procurement: avoid to run multiple scheduler
Denis Ledoux [Fri, 18 Jul 2014 11:56:42 +0000 (13:56 +0200)]
[FIX] procurement: avoid to run multiple scheduler

Avoid to run the procurement scheduler multiple times in the same time, otherwise, they tend to interfere with each others

9 years ago[FIX] crm : propagate the lead_id when scheldule other phone calls
Jérome Maes [Fri, 18 Jul 2014 11:02:07 +0000 (13:02 +0200)]
[FIX] crm : propagate the lead_id when scheldule other phone calls

9 years ago[FIX] hr_timesheet: missing '&' in domain clause
TheCloneMaster [Fri, 18 Jul 2014 05:58:44 +0000 (23:58 -0600)]
[FIX] hr_timesheet: missing '&' in domain clause

To search the contracts for payroll, the domain is constructed with three clauses. Each of these clauses needs to start with a '&' to make sure they are correctly combined with the OR clause'

9 years ago[FIX] ir_values: fallback when no condition
Martin Trigaux [Thu, 17 Jul 2014 12:22:20 +0000 (14:22 +0200)]
[FIX] ir_values: fallback when no condition

When searching for default values, if we set a condition (e.g. 'type=out_invoice'), fetch also the default values without any condition set. Thanks to the order by clause, the one with a condition have an higher priority than the one without and will not affect existing result.
This fixes default journal/currency on an invoice where the journal is retrieved in the onchange_company_id method (domain is forced). Without this patch only ir.values with a domain set will match, opw 610645

9 years ago[FIX] tools: mail: fixed last commit, solving an issue with the html2plaintext introd...
Thibault Delavallée [Fri, 11 Jul 2014 13:31:44 +0000 (15:31 +0200)]
[FIX] tools: mail: fixed last commit, solving an issue with the html2plaintext introduced another issue with notes. Reverting to the first version.

9 years ago[FIX] l10n_lu: wrong mapping of accounts to P&L financial report
Stéphane Bidoul [Mon, 23 Jun 2014 14:54:45 +0000 (16:54 +0200)]
[FIX] l10n_lu: wrong mapping of accounts to P&L financial report

Account 655 and its child 6554 were both mapped.
Fixed by unmapping 655 and mapping all its direct children.

(Manual rebase of PR #733)

9 years ago[FIX] l10n_lu: taxes (amont/aval)
Stéphane Bidoul [Mon, 23 Jun 2014 15:01:19 +0000 (17:01 +0200)]
[FIX] l10n_lu: taxes (amont/aval)

The accounts "TVA en amont" were not used by the l10n_lu chart of accounts.

Instead the accounts "TVA en aval" were used for all taxes both sale and purchase taxes.

(Manual rebase of PR #735)

9 years ago[FIX] event_sale: reset event-related fields on SO line when switching products
Olivier Dony [Fri, 11 Jul 2014 08:49:48 +0000 (10:49 +0200)]
[FIX] event_sale: reset event-related fields on SO line when switching products

9 years ago[FIX] hr: call hr_employee super's when unlinking
Richard Mathot [Fri, 11 Jul 2014 09:30:29 +0000 (11:30 +0200)]
[FIX] hr: call hr_employee super's when unlinking

Also fixes some weird inheritance bugs in upper versions

9 years ago[FIX] orm: custom m2m with different label
Martin Trigaux [Fri, 11 Jul 2014 09:39:32 +0000 (11:39 +0200)]
[FIX] orm: custom m2m with different label

At rev 84e9a67cdf78db94cb7a09543c1b7ac4ad19d8b4 a check to avoid the creation of ir.model.relation for custom modules was added. The condition is not correct as based on the string instead of the field name. We do not have access to column name at this level but the the m2m relation table do start with x_ for custom fields (see __init__ method).

9 years agoMerge pull request #724 from odoo-dev/7.0-mail_issues-fix-adh
Thibault Delavallée [Thu, 10 Jul 2014 20:50:53 +0000 (22:50 +0200)]
Merge pull request #724 from odoo-dev/7.0-mail_issues-fix-adh

[FIX] mail: misc bug fixing
- avoid deleting the Whole Company mail group if still present, because it is required for some module installation. In 7.0 installing some modules may crash if this group is not present.
- fixed an issue when computing possible recipients in the Chatter
- small fix in html2plaintext about blank lines

9 years ago[FIX] stock: remove permission to create locations for partner managers
Loïc Bellier [Thu, 10 Jul 2014 11:20:00 +0000 (13:20 +0200)]
[FIX] stock: remove permission to create locations for partner managers

There's a big risk of mistake with the fast-create
feature and they don't need it

(Rebase of PR #1073)

9 years ago[FIX] Solve some mail issues which are currently present in 7.0
Anand-Dharampuriya [Tue, 1 Jul 2014 10:24:23 +0000 (15:54 +0530)]
[FIX] Solve some mail issues which are currently present in 7.0

9 years agoFIX email_template: Update help from lang field leading to confusion while creating...
FalcoBolger [Wed, 9 Jul 2014 08:33:01 +0000 (10:33 +0200)]
FIX email_template: Update help from lang field leading to confusion while creating a template

9 years ago[FIX] orm: better removal of custom m2m fields
Martin Trigaux [Tue, 8 Jul 2014 13:56:24 +0000 (15:56 +0200)]
[FIX] orm: better removal of custom m2m fields

orm: do not try to create ir.model.relation for custom m2m as self._module is either empty (for custom models), either the one of the last inheriting module (which is wrong). The field should be removed manually and should not be impacted by the uninstallation of modules. The removal of the relation table can be done when removing manually the custom field (see rev 6af3193).

ir.model: when removing a model, drop the table with the CASCADE instruction. This will remove left constraints from remaining m2m tables.
This means that dropping a table (either manually removing a custom model or uninstalling a module) will not drop the relation table for a custom m2m field. This is not ideal but better than the previous behaviour (which was to fail the DROP TABLE instruction and keep the table with a few columns and unconsistent data).

9 years ago[FIX] ir.model.fields: better unlink
Martin Trigaux [Tue, 8 Jul 2014 11:55:48 +0000 (13:55 +0200)]
[FIX] ir.model.fields: better unlink

When droping a column, remove also the relation table in case of custom m2m field.
The relation table needs to be dropped otherwise an unremovable constraint to the targetted table is kept (and anyway is not needed anymore).

9 years agoMerge pull request #946 from joshuajan/7.0_hr_holidays_report_fix
antonylesuisse [Mon, 7 Jul 2014 18:48:19 +0000 (20:48 +0200)]
Merge pull request #946 from joshuajan/7.0_hr_holidays_report_fix

skip the inactivate employee in leaves summary

9 years ago[FIX] configuration file dbfilter's option has no effect
Fabien Meghazi [Thu, 8 May 2014 07:50:25 +0000 (09:50 +0200)]
[FIX] configuration file dbfilter's option has no effect

lp bug: https://launchpad.net/bugs/940439 fixed

bzr revid: fme@openerp.com-20140508075025-yszqmzie1z4n7l4j

9 years ago[FIX] portal: avoid errors during autovacuum
Martin Trigaux [Mon, 7 Jul 2014 15:12:27 +0000 (17:12 +0200)]
[FIX] portal: avoid errors during autovacuum

When the cron for autovacuum runs, the osv_memory objects are deleted. The portal.wizard.user object has a required field (wizard_id) linked to another osv_memory object (portal.user) which causes a traceback when the cron tries to delete portal.user object before the portal.wizard.user. opw 609918

9 years agoUpdate holidays_summary_report.py
JoshuaJan [Mon, 7 Jul 2014 10:17:20 +0000 (18:17 +0800)]
Update holidays_summary_report.py

9 years agoUpdate holidays_summary_report.py
JoshuaJan [Mon, 7 Jul 2014 09:30:25 +0000 (17:30 +0800)]
Update holidays_summary_report.py

Add context to search method

9 years agoskip the inactivate employee in leaves summary
JoshuaJan [Sun, 6 Jul 2014 09:41:07 +0000 (17:41 +0800)]
skip the inactivate employee in leaves summary

9 years ago[FIX] document: replace raw SQL constraint with bad parameter passing with builtin...
Olivier Dony [Fri, 4 Jul 2014 14:53:26 +0000 (16:53 +0200)]
[FIX] document: replace raw SQL constraint with bad parameter passing with builtin check_recursion

This instance was not actually exploitable for
SQL injection as it is not callable directly
via RPC and guarded by other queries when indirectly
called. Still plain awful.

9 years ago[FIX] hr_holidays: proper parameter passing syntax for raw SQL
Olivier Dony [Fri, 4 Jul 2014 14:45:41 +0000 (16:45 +0200)]
[FIX] hr_holidays: proper parameter passing syntax for raw SQL

This instance was not actually exploitable for
SQL injection as it is not callable directly
via RPC and guarded by other queries when indirectly
called. Still plain awful.

9 years ago[FIX] res_partner: backport of rev 37bf72a
Martin Trigaux [Thu, 3 Jul 2014 10:30:48 +0000 (12:30 +0200)]
[FIX] res_partner: backport of rev 37bf72a

Correctly take the 'use parent address' into account in the onchange. Slightly updated the view that was weird with this parameter. opw 609344

9 years ago[TYPO] Stupid typo...
Richard Mathot [Thu, 3 Jul 2014 07:36:46 +0000 (09:36 +0200)]
[TYPO] Stupid typo...

9 years ago[FIX] RML reporting: understandable crash message
Richard Mathot [Wed, 2 Jul 2014 15:29:13 +0000 (17:29 +0200)]
[FIX] RML reporting: understandable crash message

When tag <drawString> is misused in an RML report, logs a more explicit
error

9 years ago[FIX] Fixes #273: avoid double-warning when changing the quantity of a stock move
Lionel Sausin (Numérigraphe) [Sat, 31 May 2014 17:00:34 +0000 (19:00 +0200)]
[FIX] Fixes #273: avoid double-warning when changing the quantity of a stock move

9 years ago[FIX] auth_oauth: hide invalid providers from login screen
Richard Mathot [Wed, 2 Jul 2014 12:07:52 +0000 (14:07 +0200)]
[FIX] auth_oauth: hide invalid providers from login screen

9 years ago[FIX] project_issue_sheet: make invoiceable field autofield for worklogs
Martin Trigaux [Tue, 1 Jul 2014 13:48:53 +0000 (15:48 +0200)]
[FIX] project_issue_sheet: make invoiceable field autofield for worklogs

When setting a worklog on a project_issue, the field to_invoice is prefilled with on_change_account_id based on the contract settings. As the field was not present on the list view, the information was lost and every worklog was not written as invoiceable, even if enabled on the contract. opw 609082.

9 years ago[FIX] web_linkedin: update master img CDN domain, recently changed
Olivier Dony [Tue, 1 Jul 2014 10:22:28 +0000 (12:22 +0200)]
[FIX] web_linkedin: update master img CDN domain, recently changed

9 years ago[FIX] rml: avoid reports ending by zero (opw 608073)
Martin Trigaux [Tue, 1 Jul 2014 09:29:22 +0000 (11:29 +0200)]
[FIX] rml: avoid reports ending by zero (opw 608073)

Commit b6a7402 (reverted at f8671cb) was almost correct, the PageReset should be added at the end of each stories but only if we have one more stories.
The PageReset will force the page count to be reseted at zero which means that last page of report would have been at zero.

9 years agoMerge pull request #806 from nbessi/fix_hr_payroll_import
antonylesuisse [Sun, 29 Jun 2014 02:46:05 +0000 (04:46 +0200)]
Merge pull request #806 from nbessi/fix_hr_payroll_import

Fix wrong relative import of hr_payroll

9 years ago[IMP] res_partner: more fault tolerant name_create
Jacques-Etienne Baudoux [Fri, 27 Jun 2014 14:47:20 +0000 (16:47 +0200)]
[IMP] res_partner: more fault tolerant name_create

In case of invalid format such as 'name email@server' (missing chevrons), the parsing would be failing due to a strict behaviour of getaddresses (returns nameemail@server).
With the patch this format is accepted.
opw 607312

9 years ago[FIX] view_form: backport of commit 180212b9996c049eacf06fd15b00087944fca869 (opw...
Martin Trigaux [Fri, 27 Jun 2014 13:43:11 +0000 (15:43 +0200)]
[FIX] view_form: backport of commit 180212b9996c049eacf06fd15b00087944fca869 (opw 609787)

9 years ago[FIX] view_list: hide pager in view group
Martin Trigaux [Fri, 27 Jun 2014 13:28:34 +0000 (15:28 +0200)]
[FIX] view_list: hide pager in view group

Displaying the pagert in view group does not make sense as it's not updated when changing filter and every group (even if more than 80) is displayed in view group

9 years agoFix wrong relative import of hr_payroll
Nicolas Bessi [Fri, 27 Jun 2014 12:19:34 +0000 (14:19 +0200)]
Fix wrong relative import of hr_payroll

9 years ago[FIX] web: no switch_mode trigger if not switched
Denis Ledoux [Fri, 27 Jun 2014 11:03:52 +0000 (13:03 +0200)]
[FIX] web: no switch_mode trigger if not switched

The switch mode event was triggered even if the view was not actually switched
This leaded to inconsistencies, like adding the view in the breadcrumb history, while the switch did not happen

9 years agoMerge pull request #673 from guewen/lp-1319285-translation-overwrite-module-update
Martin Trigaux [Thu, 26 Jun 2014 14:09:34 +0000 (16:09 +0200)]
Merge pull request #673 from guewen/lp-1319285-translation-overwrite-module-update

[FIX] loading: overwrite translation on module update if option --i18n-overwrite is set

9 years ago[FIX] hr_timesheet_sheet: accept custom fields in timesheets
Martin Trigaux [Thu, 26 Jun 2014 13:31:55 +0000 (15:31 +0200)]
[FIX] hr_timesheet_sheet: accept custom fields in timesheets

When creating hr.analytic.timesheet do not filter the list of fields to accept but set the list of fields to remove.

9 years agoMerge pull request #783 from acsone/7.0-bugfix-l10n_be_coda_lga
Martin Trigaux [Thu, 26 Jun 2014 10:19:42 +0000 (12:19 +0200)]
Merge pull request #783 from acsone/7.0-bugfix-l10n_be_coda_lga

[fIX] l10n_be_coda : do not try to create res.partner.bank without partner_id (required field)

9 years agol10n_be_coda : do not try to create res.partner.bank when set no partner in an accoun...
Laetitia Gangloff [Thu, 26 Jun 2014 10:14:26 +0000 (12:14 +0200)]
l10n_be_coda : do not try to create res.partner.bank when set no partner in an account.bank.statement.line

9 years agoMerge pull request #572 from odoo-dev/7.0-opw-609069-fka
Martin Trigaux [Thu, 26 Jun 2014 09:49:39 +0000 (11:49 +0200)]
Merge pull request #572 from odoo-dev/7.0-opw-609069-fka

[IMP] l10n_fr_hr_payroll: make sure the date format of Fiche de paie report is in french

report_sxw: make sure we have a fallback on en_US if trying to load an format in unknown language

9 years ago[FIX] improved date format in fiche de paie report
fka-odoo [Thu, 26 Jun 2014 09:14:11 +0000 (14:44 +0530)]
[FIX] improved date format in fiche de paie report

9 years agol10n_be_coda : do not try to create res.partner.bank when set no partner in an accoun...
Laetitia Gangloff [Thu, 26 Jun 2014 09:00:20 +0000 (11:00 +0200)]
l10n_be_coda : do not try to create res.partner.bank when set no partner in an account.bank.statement.line

9 years ago[REM] Bazaar leftovers...
Richard Mathot [Wed, 25 Jun 2014 13:34:39 +0000 (15:34 +0200)]
[REM] Bazaar leftovers...

9 years ago[FIX] base_action_rule: more flexible wrapper signature
Martin Trigaux [Wed, 25 Jun 2014 12:42:55 +0000 (14:42 +0200)]
[FIX] base_action_rule: more flexible wrapper signature

Some objects (e.g. account.move.line) have a different signature than the classical 'cr, uid, ids, vals, context=None' and may add extra arguments.
This fix allows to create rules on these objects and still pass the valid arguments.
(opw 609204)

9 years ago[FIX] account: add multicompany rule to account.subscription.line
dhr-odoo [Wed, 25 Jun 2014 10:07:02 +0000 (12:07 +0200)]
[FIX] account: add multicompany rule to account.subscription.line

The wizard to generate recurring entries did not respect multicompany rules as the request was done in plain sql.
Add ir.rule and use the orm (opw 607782)

9 years ago[FIX] purchase_requisition: duplicated stock moves
Denis Ledoux [Wed, 25 Jun 2014 10:00:14 +0000 (12:00 +0200)]
[FIX] purchase_requisition: duplicated stock moves

When a purchase requisition is created from a procurement order, a first stock move is created, not associated to any purchase orders
Then, on purchase order creation and confirmation, in the purchase requisition, new stock moves are created, associated to the purchase order.
The existing stock move issued from the procurement order which created the purchase requisition remained untouched, leading to wrong inventory values
To fix this, the destination location of the stock move of the procurement order is written on the source location
A proper fix should be to use a dedicated workflow for puchase requisition, but this can't be done in 7.0, it has to be done in master/trunk

9 years ago[FIX] fields property: do not create empty properties
Alexandre Fayolle [Wed, 25 Jun 2014 08:57:10 +0000 (10:57 +0200)]
[FIX] fields property: do not create empty properties

fixes #595
In the case where a property for the company exists but has no related record (e.g. in case of type m2o with no defined value), not setting a value to this field for a new record would create a new property (as browse_null is not an instance of browse_record)

9 years agoMerge pull request #725 from odoo-dev/7.0-bug-1235237-ypa
Thibault Delavallée [Wed, 25 Jun 2014 07:15:11 +0000 (09:15 +0200)]
Merge pull request #725 from odoo-dev/7.0-bug-1235237-ypa

[FIX] crm_claim: copy: reset stage + add a copy marker to the name

9 years ago[IMP]: Improve copy method to set stage_id in draft stage
Yogesh Parekh [Tue, 24 Jun 2014 05:56:49 +0000 (11:26 +0530)]
[IMP]: Improve copy method to set stage_id in draft stage

9 years agoMerge pull request #622 from odoo-dev/7.0-opw-592890-msh
Christophe Simonis [Tue, 24 Jun 2014 13:05:53 +0000 (15:05 +0200)]
Merge pull request #622 from odoo-dev/7.0-opw-592890-msh

[FIX] search on translated field: Only search on source field if not translated.

9 years agoServer Translation: Fixed the issue search on translated field do not return true...
Mohammed Shekha [Tue, 24 Jun 2014 12:12:48 +0000 (17:42 +0530)]
Server Translation: Fixed the issue search on translated field do not return true result, search on tranlsated field fails due to expression parsing which fetches ids from ir_translation as well as working table and UNION of this makes search fruitless, also search fails for in language other then english when you enter part of a string for the field to search.

9 years ago[FIX] web: format.js, toString while parsing date
Denis Ledoux [Tue, 24 Jun 2014 11:53:02 +0000 (13:53 +0200)]
[FIX] web: format.js, toString while parsing date

When attempting to parse client date, value is not always a string.
We force the toString when adding the leading 0, as the replace method is for string

9 years agoMerge pull request #650 from yvaucher/patch-1
Martin Trigaux [Tue, 24 Jun 2014 11:49:50 +0000 (13:49 +0200)]
Merge pull request #650 from yvaucher/patch-1

[7.0] sale_stock: field sale_id should be on stock.picking.out view

9 years ago[FIX] purchase_requisition: broken procurement wkf
Denis Ledoux [Tue, 24 Jun 2014 10:12:27 +0000 (12:12 +0200)]
[FIX] purchase_requisition: broken procurement wkf

If a purchase requisition is created instead of a purchase order for a procurement order, the method make_po should not return the id of this requisition, as methods calling the make_po method expects ids of purchase orders, not purchase requisition ids.

Besides, on purchase requisition done or cancel, we set the procurement order accordingly, without the use of the workflow. We consider this as crappy, the proper fix should be the use of a dedicated workflow for purchase requisition, but I cannot be done in stable branches. This aims trunk/master.

9 years agoMerge pull request #739 from apertoso/7.0-bug-vat_intra
Martin Trigaux [Tue, 24 Jun 2014 07:27:16 +0000 (09:27 +0200)]
Merge pull request #739 from apertoso/7.0-bug-vat_intra

[FIX] l10n_be: VAT number for Intra XML declaration should not contain county code

9 years ago[FIX] Partner VAT Intra XML delaration: Vat number format correction
Jos De Graeve [Mon, 23 Jun 2014 16:18:42 +0000 (18:18 +0200)]
[FIX] Partner VAT Intra XML delaration: Vat number format correction

The Partner VAT Intra XML delaration needs to have the VAT number
in the format without the country code prefix.

The current behaviour was to include the country code prefix in the
report which causes an SQLException error on uploading the XML file
to the Federal goverment's website.  While the error is non-descriptive
fixing the VAT number format fixes the error.

9 years agoMerge pull request #17 from savoirfairelinux/7.0-m2m-context
Martin Trigaux [Mon, 23 Jun 2014 15:41:03 +0000 (17:41 +0200)]
Merge pull request #17 from savoirfairelinux/7.0-m2m-context

[FIX] view_list: Add context propagation for m2m list view

If the _rec_name field of a model is translatable, the value was not translated when displayed in a list view through a many2many field (e.g. server_action_ids on base.action.rule).

9 years ago[IMP] module: when uninstalling a module, do not redirect to a useless screen
Martin Trigaux [Mon, 23 Jun 2014 11:09:36 +0000 (13:09 +0200)]
[IMP] module: when uninstalling a module, do not redirect to a useless screen

9 years ago[FIX] orm: allow unicode in inherit views with attribute
kevin wang [Mon, 23 Jun 2014 10:48:27 +0000 (12:48 +0200)]
[FIX] orm: allow unicode in inherit views with attribute

When extending a view with position='attributes', prevent crash if view contains unicode char
Fixes #706

9 years agoweb: do not select the first result if click on search more
Jacques-Etienne Baudoux [Fri, 20 Jun 2014 14:10:02 +0000 (16:10 +0200)]
web: do not select the first result if click on search more

When searching for a record in a m2o field, if we click on 'search more' we loose the focus on the field and select the first suggestion (which triggers potential on_change). This prevents the selection for this case.

9 years ago[IMP] module: warning when uninstalling modules
Ruchir Shukla [Fri, 20 Jun 2014 15:36:26 +0000 (17:36 +0200)]
[IMP] module: warning when uninstalling modules

When a module is uninstalled, this will also uninstall modules depending of it. To avoid unexpected loss of data, this patch list the modules that will get impacted during the installation.
This also affects the configuration pages with on change warnings.

9 years ago[REM] Old .bzrignore file
Richard Mathot [Fri, 20 Jun 2014 12:21:05 +0000 (14:21 +0200)]
[REM] Old .bzrignore file

9 years ago[IMP] web: allow fields in list view to use the attrs readonly to dynamically show...
Martin Trigaux [Fri, 20 Jun 2014 12:04:52 +0000 (14:04 +0200)]
[IMP] web: allow fields in list view to use the attrs readonly to dynamically show and hide the fields

9 years agoOverwrite translation on module update if option is set
Yann Papouin [Fri, 20 Jun 2014 09:48:18 +0000 (11:48 +0200)]
Overwrite translation on module update if option is set

Launchpad bug: https://bugs.launchpad.net/ocb-server/+bug/1319285

9 years agoMerge pull request #654 from nel-odoo/patch-3
Martin Trigaux [Thu, 19 Jun 2014 13:16:01 +0000 (15:16 +0200)]
Merge pull request #654 from nel-odoo/patch-3

Production : Use the source location of the MO instead of the one of the BOM

9 years ago[FIX] web: focused field in view editable list
Denis Ledoux [Thu, 19 Jun 2014 12:58:44 +0000 (14:58 +0200)]
[FIX] web: focused field in view editable list

When adding an item to the editable list, the focused field was no longer the first visible field
This is related to revision 4a508885ac043b25465aa5741955082aa66ce949
visible_columns list is not ordered

9 years agoProduction : Source location of the BOM
Najlaâ El Khayat [Thu, 19 Jun 2014 12:51:32 +0000 (14:51 +0200)]
Production : Source location of the BOM

Use the source location defined on the current MO's routing not directly on the BOM