- Aug 08, 2014
-
-
watermelonjuice authored
-
- Aug 07, 2014
-
-
Olivier Dony authored
The extra parsing check is not necessary when we're not validating inputs, because in that case the values come from the database and are valid. The validation is quite expensive due to calls to strptime() + strftime().
-
Olivier Dony authored
This can give a performance boost on large databases and should not be a concern in terms of access control as the inheritance already grants access to the parent records.
-
Olivier Dony authored
-
Olivier Dony authored
-
Olivier Dony authored
-
Olivier Dony authored
Avoid reading one record at a time, leading to multiple calls to read() which is special-cased and even slower than a normal one.
-
Olivier Dony authored
-
Thibault Delavallée authored
management to access documents in notification emails, as well as for the 'view quotation' link in portal_sale module. models: added a get_access_action method: basically, returns the action to access a document. It uses the get_formview_action by default (form view of the document). However for some documents we want to directly go to the website, leading to an act_url action for some documents. This method allows this behavior. portal_sale: get_signup_url now uses the mail.action_mail_redirect method instead of directly redirecting towards a portal menu. This allows to fall back on a standard behavior. portal_sale: get_formview_action updated, to match actions tailored for portal users. website_quote: get_access_action of sale order updated. If the sale order has a template defined, the returned action is an act_url (website view of the quotation), not the form action anymore. mail: fixed signature + company signature in notification emails. Even without user signature, the company signature + access link should be correct. portal: signup url in notification emali was not using the mail redirection as action. It is now the case.
-
Thibault Delavallée authored
[FIX] email_template: when generating body containing the user's signature, add it as html as it is now pure html, not plaintext anymore.
-
Thibault Delavallée authored
[FIX] tools: html_sanitize: keep mako tags (<% ... %>), required for example in the portal sale quotation email.
-
Christophe Simonis authored
manual fix of fp-style merge
-
Frédéric van der Essen authored
-
Frédéric van der Essen authored
-
Christophe Simonis authored
-
Frédéric van der Essen authored
-
Christophe Simonis authored
-
Christophe Simonis authored
-
Richard Mathot authored
-
Thibault Delavallée authored
[FIX] mail: compose wizard: fixed default_get overrides not correctly managing the received field_list + improved custom call to default_get to correctly manage its in and out values.
-
Thibault Delavallée authored
[FIX] crm: fixed day_open and day_close computation (conditional store + be sure that date_open and date_closed fields are set)
-
Thibault Delavallée authored
[FIX] project_issue, resource: fixed computation of hours / days to open (assign) or close an issue. Those fields now have a conditional store, because they were not recomputed even when changing date_open and date_closed. Changing the stage now correctly changes the date_closed. Also added some fixes in resource module, the date was not correctly taken into account when computing the number of working hours between two dates.
-
- Aug 06, 2014
-
-
Olivier Dony authored
Due to the use of a sudo env, the records were being added to the sudo cache one by one instead of all at once. This meant the prefetching was not able to load all records at once, leading to prohibitive times when processing thousands of records.
-
Christophe Simonis authored
+ correct tests
-
Raphael Collet authored
This avoids code duplication between methods, and keeps backward compatibility with existing code overriding _name_search().
-
Raphael Collet authored
If a selection field is defined by a list as selection, such as: state = fields.Selection([('a', 'A'), ('b', 'B')]) one can extend it by inheritance by redefining the field, as: state = fields.Selection(selection_add=[('c', 'C')]) The result is that the selection field will have the list [('a', 'A'), ('b', 'B'), ('c', 'C')] as selection.
-
Christophe Simonis authored
As `_inherits` fields are now handled via `related` fields (not stored, obviously), a new descriptor `searchable` has been added to `fields_get()` result to indicated if the field is searchable or not.
-
Daniel Dico authored
Added a record of im_livechat.channel in website_livechat data
-
Mohammed Shekha authored
Singleton object was required while access model properties, but search returns multiple results and hence caused traceback while accessing record.property
-
Fekete Mihai authored
-
Raphael Collet authored
The one2many field 'user_ids' was initialized with an incorrect value for the inverse field 'wizard_id', using a res.users id. The latter was causing a MissingError exception. The fix is simply to not define explicitly the inverse field in the one2many. Also did a small cleanup of the code of the wizard.
-
Richard Mathot authored
(partial revert of 44a5268c)
-
Raphael Collet authored
The existing code was buggy when writing on *2many fields with a list of commands: the value was converted for the cache, but taking an empty recordset as the current value of the field.
-
Thibault Delavallée authored
[FIX] hr_contract: count the number of contracts of an employee as superuser_id as this field is required in the form view. However no data is displayed, and no data about the contracts are leaked, so no security holes.
-
- Aug 05, 2014
-
-
Denis Ledoux authored
-
Denis Ledoux authored
Before, the field purchase_ok was set as readonly on the product form if the product wasn't a variant, to avoid users to set all the products variants associated to the product template to be set as purchase able in one action. We now consider that this can be done by the end user
-
Denis Ledoux authored
opw-611106, when clicking quickly Sales > Opportunities than Sales > Leads.
-
Raphael Collet authored
This makes the patching mechanism more flexible, and enables patching BaseModel, for instance. This should fix #1501.
-
Chirag Dodiya authored
(rebase of #1534)
-
Cecile Tonglet authored
It is not useful to try to create foreign keys when the destination model is a PostgreSQL view for example. We already do this kind of verifications but ir.actions and transient models but did not for _auto.
-