Commit Graph

92559 Commits

Author SHA1 Message Date
Denis Ledoux ca7036776d [FIX] web: do not apply default_order if list grouped
If the list view is grouped (with a groubpy filter),
the default order must always be the order of the groupby
2015-02-09 14:44:45 +01:00
Josse Colpaert 05e1b3d5ea [FIX] Simplify destination package and don't write package info on quant when moving entire packages Closes #5125 2015-02-09 14:19:59 +01:00
Nicolas Piganeau 233cc8c484 Added cla 2015-02-09 14:19:59 +01:00
Nicolas Piganeau 7f8b12619b [FIX] Quants in a pack added to a parent pack remain in their child pack 2015-02-09 14:19:59 +01:00
Julien Legros 318f254761 [IMP] fetchmail: process pop messages in subsets
Most pop servers don't perform deletions until QUIT. If for some reason
the process is killed while fetching a large quantity of messages, the
quit method isn't invoked, while the commit method has been. We may thus
end up with duplicated messages the next time we try to fetch. It therefore
helps to fetch the messages in small subsets and call the quit method between
those subsets.
2015-02-09 13:21:06 +01:00
Denis Ledoux 1d7120a978 [FIX] hr_timesheet_sheet: prevent modify activities of confirmed sheets
In 7.0, prevent changes in activities of validated sheets was done thanks to the constraint
_check_sheet_state.
In 7.0, python constraints were checked at each write operations
whatever if the fields on which the constraint is were altered or not

This is no longer the case in Odoo 8.0: The constraint is checked
only if the fields on which the constraint is are altered.

As this specific constraint must be applied anytime, whatever the altered fields,
we now do this constraint check in the "write" method.
Besides, it was already the case for the unlink method.

opw-627415
2015-02-09 12:30:28 +01:00
buke d0518d2da3 Sign the Odoo CLA 2015-02-09 16:58:18 +05:30
buke 9d4bea10eb [IMP] hr_attendance: performance improvement
has_group is cached and do not fetch all the users with a slow `group.users`
2015-02-09 16:53:38 +05:30
Denis Ledoux eaa32e51dd [MERGE] forward port of branch saas-3 up to 9003537 2015-02-09 12:19:36 +01:00
Denis Ledoux 9003537222 [MERGE] forward port of branch 7.0 up to dd9d8b0 2015-02-09 12:14:09 +01:00
Denis Ledoux dd9d8b0c84 [FIX] hr_timesheet_sheet: prevent new activity on confirmed sheets
Once a timesheet confirmed, the activity hours should not be modified,
for any reasons.

The constraint _check_sheet_state prevents to modify activities
for confirmed timesheets, but does not prevent the addition
of new activities within the current, but confirmed, timesheet.

opw-627415
fixes #5128
2015-02-09 12:13:17 +01:00
David Monjoie 3babbbe393 [FIX] l10n_fr_hr_payroll: fixed design of payslip report
Improvements were requested in Issue 626112 like splitting columns, and the second table was broken so I also fixed it
2015-02-09 11:48:57 +01:00
Raphael Collet 4fd8e40ff7 [FIX] fields: add a flag "compute_sudo" to recompute fields as user admin
This reverts commit 8cd2cc8910.

It turned out that forcing recomputing fields as user admin breaks some
existing behavior.  Instead, we make the recomputation as user admin explicit
by adding compute_sudo=True in the field's definition.
2015-02-09 09:57:34 +01:00
Mario Arias Badila 1553ac99e1 [CLA] Mario Arias - TheCloneMaster
Closes #5157
2015-02-09 04:46:39 +01:00
Stefan Rijnhart 0fc5860fca [IMP] api decorator allow both res_id as well as id
As in python id is a builtin function name.

Closes: #5027
2015-02-09 01:10:36 +01:00
Maxime Chambreuil 7831dac1f1 [CLA] Savoir-faire Linux 2015-02-08 23:51:10 +01:00
Antony Lesuisse beb5c24adb [ADD] git mailmap and CLA stats
Try a "git blame" or "git shortlog -nse"

Still around 10 commit remaining to be indentified.
2015-02-08 23:00:10 +01:00
nafex 919ac5289d [CLA] Stefan Reisich 2015-02-08 15:38:24 +01:00
Erwin van der Ploeg 6ea1dc67a7 [CLA] CLA BAS Solutions 2015-02-08 15:27:23 +01:00
Olivier Dony c66a48a455 [FIX] doc/cla/sign-cla.md: emphasize the option to modify existing PR + spellcheck 2015-02-08 02:00:14 +01:00
Christophe Combelles 64c8437bce [CLA] Christophe Combelles
Closes #5138
2015-02-07 23:52:42 +01:00
Adrien Peiffer (ACSONE) 23e611c493 [CLA] Adrien Peiffer
Closes #5136
2015-02-07 23:50:35 +01:00
Olivier 523c640afc [FIX] doc/cla/sign-cla.md: typos 2015-02-07 23:42:38 +01:00
Mohammad Alhashash ffc8af1f8d [CLA] Mohammad Alhashash 2015-02-07 18:55:47 +01:00
Antony Lesuisse af901f51fc [ADD] Odoo Contributor License Agreement 2015-02-07 13:47:08 +01:00
Humberto Arocha d89fa3281a [FIX] account_anglo_saxon: Missing Fiscal Position
when creating Cost of Goods Sold Journal Entry
2015-02-06 15:27:05 +01:00
Denis Ledoux 769c62ef27 [MERGE] forward port of branch saas-3 up to f92b2f8 2015-02-06 14:19:30 +01:00
Denis Ledoux bdd4d58b35 [FIX] share: create group before creating a model access with this group 2015-02-06 14:12:18 +01:00
Denis Ledoux f92b2f8d4d [MERGE] forward port of branch 7.0 up to 0b7db55 2015-02-06 14:02:43 +01:00
Jeremy Kersten e0c17258bd [FIX] calendar: allow to force the sending of email in function _send_mail_to_attendees (even if email are himself) and use it for reminder. 2015-02-06 14:02:36 +01:00
Denis Ledoux a6eac0f08e [FIX] share: share feature compatibility with Odoo 8.0
Since rev. 1ce0b70a02, ir.ui.menu
was readable for employees and portal users only

Since rev. 74aa7406bf, the navigation menus
were displayed for employees and portal users only.

Therefore, when sharing a record with the share feature, nothing was
displayed when following the link.

This rev. introduces a new group "Shared group", implied for all shared groups
created through the share feature.
Read access to menus is given to this group
The possibility to display the webclient navigation menus as well.
2015-02-06 14:01:59 +01:00
Denis Ledoux 0b7db5583f [FIX] share: action params in url is action, not action_id
When sharing a record to a share user (for instance, the quotation),
the action in the url was set to "action_id=" instead of "action=",
therefore, the link sent just leaded to nowhere.
2015-02-06 12:59:07 +01:00
Denis Ledoux 8bee3bbfad [FIX] share: mail.notification is also transversal
mail.message and mail.notification are transversal: they should not received directly the access rights
2015-02-06 12:52:47 +01:00
Jeremy Kersten 0cbf8d5386 [FIX] website_customer: check that customer has a country_id
Add country != False in main domain will be not the right fix, because if people doesn't activate the sort by country in customize, they are no reason to hide customer without country_id.
2015-02-06 10:53:15 +01:00
Denis Ledoux 0c9b8cd7af [FIX] survey: write expects a list of integers for ids arg
This is related to rev. 972b02397a
The reason is the same than in the above related rev.
2015-02-06 09:46:46 +01:00
David Monjoie 9bae596693 [FIX] website_sale: shop tutorial doesn't explicitly look for an ipad picture anymore
Previously, if you registered enough images to push the ipad one on page two, the test would fail to find it. Now it chooses the image with index 4, whatever it is.
2015-02-06 09:43:56 +01:00
Denis Ledoux 972b02397a [FIX] survey: write expects a list of integers for ids arg
In saas-3, at rev. c7afc04be3
an assert has been introduced, asserting the record_id of the record class
is an integer.

Therefore, write operations using a string as id lead to a crash
if they trigger a workflow
2015-02-05 17:34:34 +01:00
Denis Ledoux 859979e949 [FIX] web: reset dataset orderby on groupby filter.
If the list view had a default order,
for instance, default_order="create_date desc",
setting a groupby filter kept this default order
and the groupby list was therefore not ordered on the groupby field

In general, when setting a groupby filter on a list
we expect the list to be grouped by the groupby field

The reset of the orderby is done only when the list is not grouped
and a first groupby filter is applied.
The orderby is not reset when adding a new groupby,
when one was already applied.
It doesn't reset either when passing from 2 groupby clause to 1.
It doesn't reset either when passing from 1 groupby clause to none.

opw-627233
2015-02-05 16:39:22 +01:00
David Monjoie 5fe71a3c21 [FIX] website_event_sale: fixed test to allow structural dom changes
It's not like it's the third time I change this test file, right ?
2015-02-05 15:50:06 +01:00
Denis Ledoux 764be06f44 [FIX] stock: obvious distraction error of previous rev. 8ff7d299f5 2015-02-05 15:09:06 +01:00
Denis Ledoux 8ff7d299f5 [FIX] stock: picking, Set date of reception if not set by user previously
If the date_done field of the model stock.picking is already filled in
it means the user do wanted to have this date of reception date
instead of the moment when the user clicked the receive button.

opw-627219
2015-02-05 15:04:58 +01:00
Xavier Morel 93fa43f900 [REV] 54e75b02: excessive breadth makes all falsy values disappear from lists
Empty checkboxes are supposed to be displayed.

Fix specifically and only in the binary field.
2015-02-05 14:39:40 +01:00
Jeremy Kersten 5a26c2d3ec [FIX] crm,hr,base: disable the quick create for country field
The creation of a country is not something to create at flight !
The impact could be bigger that what people was expected (no accounting configured, ...).

The bad manipulation is more often the responsible, eg 'Belgium ' was creating a new country with a trailing whitespace, while the user didn't see the difference and use both country withtout making the diff.
2015-02-05 14:14:59 +01:00
Denis Ledoux e1a1b56205 [FIX] website_sale: handle partner_ids for order email confirmation
This rev. is related to b36908b6f8

partner_ids is another *2many fields of email.template
spotted thanks to ba9bc1e86d
2015-02-05 14:14:30 +01:00
Thibault Delavallée ba9bc1e86d [FIX] email_template: updated onchange_template_id when not having
a template defined: some values were missing leadins to wrong partners and
subject pre computation.
2015-02-05 12:01:56 +01:00
Goffin Simon d5a50fd346 [FIX] sale: fiscal position wrongly taken based on country group.
An automatic fiscal position with a country group can only match with a sale order from a customer who has a country defined.
opw:627087
2015-02-05 11:15:28 +01:00
Jeremy Kersten 8be29c33fa [IMP] website_crm: allow medium_id and section_id field to be overwrited by form 2015-02-05 09:50:36 +01:00
Denis Ledoux c331e963cd [FIX] account: invoice analysis product quantity
This rev. is related to 6641c61ce6

During the above revision, a new jointure has been added
with product_uom, on product template uom_id
The join link was wrong, it was:
 - LEFT JOIN product_uom u2 ON u.id = pt.uom_id
and it must be:
 - LEFT JOIN product_uom u2 ON u2.id = pt.uom_id

 as the alias 'u' is the previous jointure, not this new one.

Besides, the uom_name is now the name
of the product uom of this second jointure
As the uom is now the product default uom
instead of the category reference uom

The groupby clause has been adapted, as the selection was slightly altered
Besides, grouping by u.uom_type, u.category_id was pointless
2015-02-04 20:28:48 +01:00
Denis Ledoux b36908b6f8 [FIX] websiste_sale: order confirmation email with attachment
This rev. is related to 67443b5b17

onchange_template_id returns the attachment_ids as a id list,
not as a *2many command list
The conversion from id list to command list has to be done manually.

At the moment, attachment_ids is the only 2many fields of email.template
2015-02-04 17:08:58 +01:00
Goffin Simon bcf8254c16 [FIX] account_asset: asset_id is missing when you create 'account.asset.depreciation.line'
Add the right asset_id when you create an 'account.asset.depreciation.line' in the depreciation board of an 'account.asset.asset'.

opw:626625
2015-02-04 16:39:29 +01:00