Sébastien CHAZALLET [Wed, 26 Nov 2014 10:17:05 +0000 (11:17 +0100)]
Fix WSGI custom addons path
Sébastien CHAZALLET [Mon, 17 Nov 2014 21:56:56 +0000 (22:56 +0100)]
MAJ WSGI for VM
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.
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)
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)
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
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
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).
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
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)
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
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
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).
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).
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
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
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
JoshuaJan [Mon, 7 Jul 2014 10:17:20 +0000 (18:17 +0800)]
Update 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
JoshuaJan [Sun, 6 Jul 2014 09:41:07 +0000 (17:41 +0800)]
skip the inactivate employee in leaves summary
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.
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.
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
Richard Mathot [Thu, 3 Jul 2014 07:36:46 +0000 (09:36 +0200)]
[TYPO] Stupid typo...
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
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
Richard Mathot [Wed, 2 Jul 2014 12:07:52 +0000 (14:07 +0200)]
[FIX] auth_oauth: hide invalid providers from login screen
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.
Olivier Dony [Tue, 1 Jul 2014 10:22:28 +0000 (12:22 +0200)]
[FIX] web_linkedin: update master img CDN domain, recently changed
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.
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
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
Martin Trigaux [Fri, 27 Jun 2014 13:43:11 +0000 (15:43 +0200)]
[FIX] view_form: backport of commit
180212b9996c049eacf06fd15b00087944fca869 (opw 609787)
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
Nicolas Bessi [Fri, 27 Jun 2014 12:19:34 +0000 (14:19 +0200)]
Fix wrong relative import of hr_payroll
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
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
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.
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)
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
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
fka-odoo [Thu, 26 Jun 2014 09:14:11 +0000 (14:44 +0530)]
[FIX] improved date format in fiche de paie report
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
Richard Mathot [Wed, 25 Jun 2014 13:34:39 +0000 (15:34 +0200)]
[REM] Bazaar leftovers...
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)
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)
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
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)
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
Yogesh Parekh [Tue, 24 Jun 2014 05:56:49 +0000 (11:26 +0530)]
[IMP]: Improve copy method to set stage_id in draft stage
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.
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.
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
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
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.
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
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.
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).
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
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
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.
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.
Richard Mathot [Fri, 20 Jun 2014 12:21:05 +0000 (14:21 +0200)]
[REM] Old .bzrignore file
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
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
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
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
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
Yannick Vaucher [Thu, 19 Jun 2014 12:10:24 +0000 (14:10 +0200)]
Fix sale_id on stock.picking.out view
View inheritance is on the wrong model after model change of stock.picking.
Here we just fix the model.
xmo-odoo [Thu, 19 Jun 2014 11:31:41 +0000 (13:31 +0200)]
Merge pull request #648 from odoo-dev/7.0-fix-searchbar-navigation-ged
[FIX] fixes searchbar navigation (web client)
Géry Debongnie [Thu, 19 Jun 2014 10:43:25 +0000 (12:43 +0200)]
[FIX] fixes searchbar navigation (web client)
the code handling the keydown events was moved, but the variable this
was not adjusted accordingly, resulting in a broken navigation.
It is now possible to press LEFT and RIGHT again to move the focus
between facets.
dhr-odoo [Fri, 13 Jun 2014 10:38:12 +0000 (16:08 +0530)]
Removed widge=selection from account_id field in line in Purchase Receipt, as it only displays limited records(100) from the limit set in the name_search
Martin Trigaux [Wed, 18 Jun 2014 15:45:19 +0000 (17:45 +0200)]
Merge pull request #616 from odoo-dev/7.0-opw-608485-rgo
[FIX] l10n_be_invoice_bba: random generation do not use sequence, so should be 10 char long during padding
Olivier Dony [Wed, 18 Jun 2014 13:22:44 +0000 (15:22 +0200)]
[FIX] auth_crypt: encrypt all passwords at installation
When `base_crypt` was updated for v7, the auto-encryption
at installation was dropped, with user passwords only
encrypted on-demand whenever the user would connect.
It is important to encrypt all passwords immediately to
prevent password compromission for user who do not
login often or even for deactivated users who are not
allowed to login anymore.
Fixes https://bugs.launchpad.net/openobject-addons/+bug/1280152
Based on LP merge proposal by Nicolas Bessi (Camptocamp):
https://code.launchpad.net/~camptocamp/openobject-addons/improve_auth_crypt_3_please_launchpad_work-nbi/+merge/206476
Ravi Gohil [Wed, 18 Jun 2014 10:19:38 +0000 (15:49 +0530)]
[FIX] l10n_be_invoice_bba: Fixed the length of random generated code to ensure it generates 10 digit code so that it allows validation of invoice. (Maintenance Case: 608485)
Denis Ledoux [Wed, 18 Jun 2014 09:12:27 +0000 (11:12 +0200)]
[FIX] web: allow using dates and datetimes without leading zeros
Denis Ledoux [Tue, 17 Jun 2014 10:56:13 +0000 (12:56 +0200)]
[FIX] web: save date(time) field value on key enter in editable list
In editable list, on keypress enter, the _next method is called, saving the current line and starting the edition of the next one
The _next is triggered before the date(time) field change event, and, therefore, the saved value of the date(time) field is the old one
Denis Ledoux [Mon, 16 Jun 2014 14:55:58 +0000 (16:55 +0200)]
[FIX] account: default domain on journal_id field for invoices
Prior to this fix, the domain was set in the onchange methods onchange_company_id. Therefore, if the onchange was not triggered, the domain wasnt apply (e.g. while editing an existing invoice).
Martin Trigaux [Fri, 13 Jun 2014 10:03:48 +0000 (12:03 +0200)]
[FIX] event: improve name from previous merge
Martin Trigaux [Fri, 13 Jun 2014 09:33:13 +0000 (11:33 +0200)]
Merge pull request #111 from odoo-dev/7.0-bug_1287200-ptr
[FIX] event: change the field nbevent to make sense
The field nbevent was representing the number of registration with value of 1 for events without registrations (which makes no business sense). Fix to actually represent the number of registrations and display a better field name.
Martin Trigaux [Fri, 13 Jun 2014 09:09:26 +0000 (11:09 +0200)]
Merge pull request #336 from odoo-dev/7.0-opw-608606-fka
[FIX] account_report_company: display_name field is not computed for non-active partners
Martin Trigaux [Fri, 13 Jun 2014 08:19:22 +0000 (10:19 +0200)]
Merge pull request #471 from odoo-dev/7.0-opw-606994-rgo
[MERGE] mail: Speed improvement, backport of rev
ed116d6b6b5ab5e4436cce5b6da078417e0a9efc
Thibault Delavallée [Fri, 13 Jun 2014 07:25:48 +0000 (09:25 +0200)]
[FIX] hr_holidays: date_from, date_to required in form view only for leave requests, not for allocation requests
Thibault Delavallée [Fri, 13 Jun 2014 07:07:28 +0000 (09:07 +0200)]
[FIX] hr: working and home adresses should not be customers by default, only 'normal' adresses.
Thibault Delavallée [Thu, 12 Jun 2014 15:50:19 +0000 (17:50 +0200)]
[FIX] hr_holidays: display float for leaves remaining / leaves taken in holiday type name get
Denis Ledoux [Thu, 12 Jun 2014 18:03:50 +0000 (20:03 +0200)]
[FIX] web: view_list_editable, on add an item, focus on the first cell of new row
Before, the focus was set on the first row, and, thererefore, if the list was enough long, it jumped out and the actual new row was hidden
Thibault Delavallée [Thu, 12 Jun 2014 15:35:41 +0000 (17:35 +0200)]
[FIX] portal: typos in portal wall actions.
Thibault Delavallée [Thu, 12 Jun 2014 15:32:32 +0000 (17:32 +0200)]
[FIX] hr: typo in a field definition
Martin Trigaux [Thu, 12 Jun 2014 15:17:42 +0000 (17:17 +0200)]
Merge pull request #506 from odoo-dev/7.0-read-duplicate-fields-mat
[MERGE] orm: avoids error when reading twice a field
Martin Trigaux [Thu, 12 Jun 2014 14:14:41 +0000 (16:14 +0200)]
[FIX] orm: avoir errors reading twice a field
_read_flat: remove duplicated fields in read call
get many2one: as False is instance of int, check the value of x first to avoid calling a name_get with a list of False
When we were reading twice a m2o field where at least one result is null, the first call to name_get would set the value to False instead of None and then accepted by the filter 'isinstance(x, (int,long))'
Martin Trigaux [Thu, 12 Jun 2014 10:24:48 +0000 (12:24 +0200)]
parse_value: interger != float
Wwhen parsing a integer field, do not accept float values. '1' or '1.0' is ok but not '1.1'. (opw 608544)
Denis Ledoux [Thu, 12 Jun 2014 10:37:11 +0000 (12:37 +0200)]
[FIX] sale_order: set state field track_visibility
sale_order module override state field of sale.oder (sale.sale.py) and forgot to reset the track_visibility, therefore sale orders state changes are no longer tracked once this module installed.
Olivier Dony [Wed, 11 Jun 2014 09:52:29 +0000 (11:52 +0200)]
[FIX] base_action_rule: automatic commit during background processing of rules
This will make sure already processed rules are persisted
in case a timeout occurs while processing the next ones,
ensuring that *some* progress can be made in most cases.
Olivier Dony [Wed, 11 Jun 2014 09:50:38 +0000 (11:50 +0200)]
[FIX] base_action_rule: prevent recursive rule trigger also when processing time-based rules
A safety guard already in place prevents the recursive
trigger of rules while another rule is being executed,
as a simple measure to prevent endless loops.
This guard was missing when processing time-based rules.
Olivier Dony [Wed, 11 Jun 2014 09:46:00 +0000 (11:46 +0200)]
[FIX] base_action_rule: do not repeatedly trigger already-executed rules based on time condition
A programming error introduced at rco@openerp.com-
20121220142445-emzzvhlw400q37c9
fails to properly check when a rule has already been executed in the past.
Time-based rules should only be executed if the trigger date is in the past and:
- either they never executed before
- or the last execution date is older than the trigger date
Olivier Dony [Wed, 11 Jun 2014 09:41:48 +0000 (11:41 +0200)]
[FIX] base_action_rule: do not force registry reload when writing on a rule unless really needed
Executing a rule always updates the `last_run` value, which would
always force a useless registry reload to occur. Only signal the
change if the rule applies to a model that was not previoulsy
monitored for base action rules.
odony [Wed, 11 Jun 2014 14:41:29 +0000 (16:41 +0200)]
Merge pull request #417 from gurneyalex/7.0-fix_1311004_account_move_line_index-afe
[IMP] account.move.line: extra index on (date, id) corresponding to the default _order, courtesy of @gurneyalex.
Fixes https://bugs.launchpad.net/openobject-addons/+bug/1311004
Martin Trigaux [Wed, 11 Jun 2014 13:22:47 +0000 (15:22 +0200)]
Merge pull request #413 from gurneyalex/7.0-fix_lp1025703-afe
[FIX] delivery: add missing information in chained pickings
Martin Trigaux [Wed, 11 Jun 2014 13:13:06 +0000 (15:13 +0200)]
Merge pull request #411 from acsone/lp-1200611_lga
[FIX] hr_timesheet_sheet: correctly set the employee on the attendance
Martin Trigaux [Wed, 11 Jun 2014 12:53:59 +0000 (14:53 +0200)]
[FIX] account: move translatable tag
The field note on account.fiscal.position and account.fiscal.position.template should not be translatable in classic modules.
The l10n_multilang module is intendend to make chart of accounts multilang and is the place to set translate=True