Commit Graph

71958 Commits

Author SHA1 Message Date
Denis Ledoux a5531c1d29 [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.
2014-07-24 20:42:21 +02:00
Yannick Vaucher 951a51df3f [IMP] account: do not offer closed analytic accounts on invoices
lp:1223922, opw 609656
2014-07-24 16:23:49 +02:00
Ravi Gohil 1acf76bfc2 [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
2014-07-24 11:04:02 +02:00
Sandy Carter 67cca3f1e5 [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
2014-07-23 15:35:41 +02:00
Martin Trigaux f9d43e83c6 [FIX] web: correct rev 680f955
Missing backport of commit f652402 for buffered dataset
Again, should not be forwardported
2014-07-23 12:31:25 +02:00
Hardik Ansodariya 9a20018166 [FIX] stock: allow same serial number for different products
Bug lp:1222289, opw 597639
2014-07-23 10:03:40 +02:00
Martin Trigaux f7dfcd5d98 [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.
2014-07-22 16:38:52 +02:00
Anaël Closson 680f9554b4 [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.
2014-07-22 13:18:00 +02:00
Dhs-odoo 8320f01fef [FIX] project : do not show canceled projects in task
fixes #938, opw 610318
2014-07-22 11:29:33 +02:00
Denis Ledoux ae678d9e05 [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
2014-07-18 17:26:48 +02:00
Martin Trigaux c58bf1e3bc [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.
2014-07-18 16:53:01 +02:00
Denis Ledoux 22bbfdaab1 [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
2014-07-18 13:56:42 +02:00
Jérome Maes 738270557f [FIX] crm : propagate the lead_id when scheldule other phone calls 2014-07-18 13:02:07 +02:00
TheCloneMaster ed58bcf26b [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'
2014-07-18 10:56:56 +02:00
Martin Trigaux 3dec09079e [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
2014-07-17 15:07:58 +02:00
Thibault Delavallée 7a928b151a [FIX] tools: mail: fixed last commit, solving an issue with the html2plaintext introduced another issue with notes. Reverting to the first version. 2014-07-11 16:21:01 +02:00
Stéphane Bidoul 50b48e0d13 [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)
2014-07-11 15:50:10 +02:00
Stéphane Bidoul be82c99b23 [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)
2014-07-11 15:47:45 +02:00
Olivier Dony 783b9e1c89 [FIX] event_sale: reset event-related fields on SO line when switching products 2014-07-11 11:45:38 +02:00
Richard Mathot 117a26babe [FIX] hr: call hr_employee super's when unlinking
Also fixes some weird inheritance bugs in upper versions
2014-07-11 11:41:17 +02:00
Martin Trigaux 437116f3c4 [FIX] orm: custom m2m with different label
At rev 84e9a67cdf 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).
2014-07-11 11:39:32 +02:00
Thibault Delavallée 67f1fd8a53 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
2014-07-10 22:50:53 +02:00
Loïc Bellier 6e96ffd44c [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)
2014-07-10 19:16:41 +02:00
Anand-Dharampuriya 5cbc611361 [FIX] Solve some mail issues which are currently present in 7.0 2014-07-10 16:29:54 +02:00
FalcoBolger e6b6392f3a FIX email_template: Update help from lang field leading to confusion while creating a template 2014-07-10 11:28:33 +02:00
Martin Trigaux 84e9a67cdf [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).
2014-07-08 15:56:24 +02:00
Martin Trigaux 6af3193d17 [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).
2014-07-08 13:55:48 +02:00
antonylesuisse 6b274e4451 Merge pull request #946 from joshuajan/7.0_hr_holidays_report_fix
skip the inactivate employee in leaves summary
2014-07-07 20:48:19 +02:00
Fabien Meghazi c0aa86b9ab [FIX] configuration file dbfilter's option has no effect
lp bug: https://launchpad.net/bugs/940439 fixed

bzr revid: fme@openerp.com-20140508075025-yszqmzie1z4n7l4j
2014-07-07 18:08:31 +02:00
Martin Trigaux 90f7eaa094 [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
2014-07-07 17:12:27 +02:00
JoshuaJan 6c776d5406 Update holidays_summary_report.py 2014-07-07 18:17:20 +08:00
JoshuaJan 9da1214de3 Update holidays_summary_report.py
Add context to search method
2014-07-07 17:30:25 +08:00
JoshuaJan 6c623b59b5 skip the inactivate employee in leaves summary 2014-07-06 17:41:07 +08:00
Olivier Dony 64ac1b0f46 [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.
2014-07-04 16:53:26 +02:00
Olivier Dony 1279ca0334 [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.
2014-07-04 16:45:41 +02:00
Martin Trigaux bf353998f2 [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
2014-07-03 12:30:48 +02:00
Richard Mathot 04eff4fe3d [TYPO] Stupid typo... 2014-07-03 09:36:46 +02:00
Richard Mathot fbbc3a54e9 [FIX] RML reporting: understandable crash message
When tag <drawString> is misused in an RML report, logs a more explicit
error
2014-07-02 17:30:32 +02:00
Lionel Sausin (Numérigraphe) e80014eae3 [FIX] Fixes #273: avoid double-warning when changing the quantity of a stock move 2014-07-02 15:28:50 +02:00
Richard Mathot 1c5058c931 [FIX] auth_oauth: hide invalid providers from login screen 2014-07-02 14:07:52 +02:00
Martin Trigaux 451b6b9f3a [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.
2014-07-01 15:48:53 +02:00
Olivier Dony 3d3134108d [FIX] web_linkedin: update master img CDN domain, recently changed 2014-07-01 12:22:28 +02:00
Martin Trigaux f825b6043b [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.
2014-07-01 11:29:22 +02:00
antonylesuisse 020f23a9d3 Merge pull request #806 from nbessi/fix_hr_payroll_import
Fix wrong relative import of hr_payroll
2014-06-29 04:46:05 +02:00
Jacques-Etienne Baudoux df40926d2a [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
2014-06-27 16:48:40 +02:00
Martin Trigaux 95cff0ba34 [FIX] view_form: backport of commit 180212b999 (opw 609787) 2014-06-27 15:43:11 +02:00
Martin Trigaux 30ac7248d6 [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
2014-06-27 15:28:34 +02:00
Nicolas Bessi d8a0e3d29a Fix wrong relative import of hr_payroll 2014-06-27 14:19:34 +02:00
Denis Ledoux f55e4a5e14 [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
2014-06-27 13:03:52 +02:00
Martin Trigaux 55b121ae9f 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
2014-06-26 16:09:34 +02:00