Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.0 Latest updates #2

Merged
merged 199 commits into from
Aug 7, 2014
Merged

8.0 Latest updates #2

merged 199 commits into from
Aug 7, 2014

Conversation

rruebner
Copy link
Owner

@rruebner rruebner commented Aug 7, 2014

No description provided.

sebalix and others added 30 commits July 20, 2014 16:06
…price of delivery

The computation expects uom and it was wrongly passing uos qunatities.
Missing backport of commit f652402 for buffered dataset
Again, should not be forwardported
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
…to get some fields which will be already join in the description from values to custom the behavior from create_lead function
[FIX] account:  the 'Customer taxes' field on the product is readonly when my product doesn't have any variant
…iter/author to insert some tricky code like form or JS
…ton-css-chm

[FIX] website.snippet: display snippet editor button inline insead of 2 lines for the small boxes
Purchase orders created with invoice policy 'Based on incoming shipments' were not keeping the reference to the account analytic distribution when invoiced. opw 607577
replace ormcache_context by ormcache: use the context in the cache key is useless
set skiparg=3 (default skiparg=2) so the uid is not used in the cache key: the filestore path is the same for all database users
The state has been replaced by stage_id in the view, so the state is no longer used
Moreover, when doing an advanced search, the field state is visible and if used -> Traceback (because not available in the report sql table)
opw-609984
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.
…se the path and the id are not separated (e.g.: '/members42')
When searching on memberships, we use domain clauses in the format 'partner.x = y' where partner is a many2one to res.partner. The object res.partner has strict security rules for public users and this search will return zero result if not done with SUPERUSER_ID.
In addition, we need to access the list of products (membership_ids) in the domain to be sure we will retrieve only published membership (otherwise it would crash in the sort below).
If the selection label (not value) had accents, it wasn't possible to import it using the label having accents
Allowing UNPACK_SEQUENCE allows the use of the "multi" assignation:
a, b = [1,2]
for a,b in items
The `prepare_result` dict shouldn't keep a browse record of a survey, as it
is explicitely passed to the template by the controller
`survey_reporting`
A bit of commenting in order to help future debugging and unf**king of
the survey reporting tool.
Jay Patel and others added 28 commits August 5, 2014 10:05
…s not have a valid email address, redirect to the user's profile instead of crashing when trying to send notifications.
Changing .po files to avoid to retranslate existing terms.
Fixes #1328
[FIX] account: fix unexpected invalidation of field account_invoice.reconciled
…/join mode especially for XOR)

Makes ordering transitions easier and more deterministic.

(Rebase of #1564)
Mandatory since we changed the structure of the dom since 8.0.
- simplify the code by removing unused cases
- do not modify input argument 'value' of create/write
- do not call BaseModel.read() with reified group fields (this causes warnings)
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.
…thods

This makes the patching mechanism more flexible, and enables patching BaseModel,
for instance. This should fix #1501.
opw-611106, when clicking quickly Sales > Opportunities than Sales > Leads.
…t variant

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
…peruser_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.
…current value

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.
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.
Singleton object was required while access model properties, but search returns multiple results and hence caused traceback while accessing record.property
…all the module

Added a record of im_livechat.channel in website_livechat data
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.
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.
This avoids code duplication between methods, and keeps backward compatibility
with existing code overriding _name_search().
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.
…pen (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.
…e + be sure that date_open and date_closed fields are set)
… managing the received field_list + improved custom call to default_get to correctly manage its in and out values.
rruebner added a commit that referenced this pull request Aug 7, 2014
@rruebner rruebner merged commit 5dc7f07 into rruebner:8.0 Aug 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.