Martin Trigaux
9652fb0013
[IMP] orm: force checking ir.rules on read when accessing only to _classic_write fields (o2m, m2m, function)
...
More consistent behaviour. Was not able to access unauthorized data (retrieving data on x2m field would trigger security rules) but make sure it raises an exception instead of silently retrieve no data.
Move construct domain inside if clause as no needed before
bzr revid: mat@openerp.com-20131205113254-j3j4bb0p6ed23oht
2013-12-05 12:32:54 +01:00
Launchpad Translations on behalf of openerp
3a6953c1d0
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131205061010-2jn37v8w04xqksgg
2013-12-05 06:10:10 +00:00
Martin Trigaux
0216a53a0f
[FIX] convert: better error message when failed to load csv file (module name already in path, no need to append)
...
bzr revid: mat@openerp.com-20131204155244-sy223fbt0tmpeqw1
2013-12-04 16:52:44 +01:00
Denis Ledoux
0721a21966
[FIX] base: allow all users (including portals) to change their avatar
...
Force readonly="0" on field image in preferences view, otherwise the readonly can be set by access rights.
Preferences are written with the UID 1, if the fields are in the WRITEABLE FIELDS list of the object res_users.
This is why any users can edit their preferences even if they do not have the rights to write on res.users.
Forcing readonly="0" to make fields editable in the form.
bzr revid: dle@openerp.com-20131204145923-f7jwoah722q188d7
2013-12-04 15:59:23 +01:00
Denis Ledoux
c0c971b87a
[FIX] sale_crm: wizard crm_make_sale crash if partner_id not sent on the opp.
...
Because defaults get function of partner_id of wizard read the partner_id of the opp and return the first item of the tuple, but if there isnt a partner on the opp, the read return a false for this field, not a tuple.
No return the first item of the tuple if the partner_id is set, else False
bzr revid: dle@openerp.com-20131204133633-t7wfbnipv3jtss82
2013-12-04 14:36:33 +01:00
Launchpad Translations on behalf of openerp
379dc8bf98
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131201054445-5fy8zd7lvnn9mjp2
bzr revid: launchpad_translations_on_behalf_of_openerp-20131202055138-hq05otjnuktjpa48
bzr revid: launchpad_translations_on_behalf_of_openerp-20131204055601-tbzqqhperzffjbjt
bzr revid: launchpad_translations_on_behalf_of_openerp-20131204055642-0rwynvhgvs0r14b3
2013-12-04 05:56:42 +00:00
Matthieu Dietrich
6fb32cc4d5
[FIX] lp:1257288 - fixed amount in foreign currency for opening entries
...
bzr revid: matthieu.dietrich@camptocamp.com-20131203144843-kbtd3atkryq8ryec
2013-12-03 15:48:43 +01:00
Denis Ledoux
cf052214bd
[FIX]portal_sale: add the lang to the email templates (sale.order and account.invoice), for the email to be translated in the customer language (as this is the case for regular email templates from sale and account modules-
...
bzr revid: dle@openerp.com-20131203142554-5yrp5o5wl382oyo3
2013-12-03 15:25:54 +01:00
Mohammed Shekha (OpenERP)
b3391cd7fe
[FIX]Web: Fixed the issue of immediate update of many2one field when many2one object name has been changed from follow button popup, reloaded the record from database forcefull to update dataaset, do not call form-blur when follow button is clicked, also do not evict record when record is still not created.
...
bzr revid: msh@openerp.com-20131203123856-gce4li1igo9k1mak
2013-12-03 18:08:56 +05:30
Cecile Tonglet
767aaeb8cc
[FIX] Wrong error message when data cannot be loaded at module loading
...
bzr revid: cto@openerp.com-20131203092433-uu1brp5csqvvd8yh
2013-12-03 10:24:33 +01:00
Launchpad Translations on behalf of openerp
4fd98907ce
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131130053134-6u83vcd1133xs8yf
bzr revid: launchpad_translations_on_behalf_of_openerp-20131201054550-w0k8alfqs2bigurx
bzr revid: launchpad_translations_on_behalf_of_openerp-20131202055222-2u7o99e48254dceu
bzr revid: launchpad_translations_on_behalf_of_openerp-20131203061621-hyqqh11jt7g0ilqh
2013-12-03 06:16:21 +00:00
Christophe Simonis
eba79e46a5
[FIX] mail: correct announcement bar
...
bzr revid: chs@openerp.com-20131202114516-u0u44l3xbkk1zcbx
2013-12-02 12:45:16 +01:00
Denis Ledoux
04cdf223b6
[FIX]res_config: set_default as SUPERUSER_ID. check user group to avoid passthrough access rights security
...
bzr revid: dle@openerp.com-20131129154806-0gaqdbp6zobdqxy4
2013-11-29 16:48:06 +01:00
Denis Ledoux
fc4eca01e7
[FIX] {account, sale_stock}: res_config: set_default as SUPERUSER_ID. check user group to avoid passthrough access rights security
...
bzr revid: dle@openerp.com-20131129154714-pogix71b73nz11qp
2013-11-29 16:47:14 +01:00
Martin Trigaux
556c7f03f0
[FIX] purchase: revert revision 7677 to set a default unit of measure to 'Unit'
...
This allows to field a purchase.order without showing the units of measure if not product is selected
Revision 7677 was integrated to fix lp:958897 (no change of uom when selecting a product whose uom is in the category 'Units'). This fix did not solve it properly (only for initial value) and introduced another problem. A better fix will be done on the onchange product.
bzr revid: mat@openerp.com-20131129143522-i85e4hvf0p4h3ynn
2013-11-29 15:35:22 +01:00
Thibault Delavallée
5c3dbb8aa8
[FIX] crm_claim: the 'My Company' filter was wrong, not useful and not possible to achieve. It is therefore set as invisible, and its domain set as void. This won't break any inheriting views, and this filter is ready to be removed in 8.0
...
lp bug: https://launchpad.net/bugs/1153956 fixed
bzr revid: tde@openerp.com-20131129102709-wq4ftqx1x8h6n9xb
2013-11-29 11:27:09 +01:00
Thibault Delavallée
d7af813044
[MERGE] [FIX] crm: fixed lead to opportunity wizard customer creation policy (opw 596231).
...
When choosing to link to an existing customer, then changing the action to create
a new customer or to avoid linking, the newly created opportunity was linked
to the previously chosen customer, due to the partner_id field not being
reset and used in the conversion process.
This field is not reset when changing the conversion action, leading to the action
being correctly taken into account.
lp bug: https://launchpad.net/bugs/1208436 fixed
bzr revid: tde@openerp.com-20131129101706-ccsn5u60sw8isroy
2013-11-29 11:17:06 +01:00
Launchpad Translations on behalf of openerp
1fedbc18f5
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131126060718-7io3n16co82qp5pu
bzr revid: launchpad_translations_on_behalf_of_openerp-20131127053913-ypnlpggd4wt58pzx
bzr revid: launchpad_translations_on_behalf_of_openerp-20131128060603-kk12b8iu0uhhtist
bzr revid: launchpad_translations_on_behalf_of_openerp-20131129052938-u0wq863etr3sl1cm
bzr revid: launchpad_translations_on_behalf_of_openerp-20131129053023-zlbrprsiq9e7vs39
2013-11-29 05:30:23 +00:00
Martin Trigaux
9542ae89aa
[FIX] stock: switch ids new - old picking in the message informing the back order was created (opw 594402)
...
Post on delivered picking that the backorder was created. Was inconsitent with the field 'Back order of'
bzr revid: mat@openerp.com-20131128145059-p3mw969z3lotkn26
2013-11-28 15:50:59 +01:00
Martin Trigaux
26b351a285
[MERGE] [FIX] purchase: fix typo attr -> attrs in form view, courtesy of Joshua Jan (SHINEIT)
...
bzr revid: mat@openerp.com-20131128115239-yr0m9a1d2i39v6xm
2013-11-28 12:52:39 +01:00
Martin Trigaux
f67135ae52
[MERGE] [FIX] document: check method fails if it is called with an id instead of a list of ids. Courtesy of Carlos Vásquez (CLEARCORP)
...
bzr revid: mat@openerp.com-20131128114958-cbwsvntblmjf55cy
2013-11-28 12:49:58 +01:00
Martin Trigaux
791d43714f
[MERGE] [FIX] sale_stock: pass missing context when retrieving product uom (opw 594350)
...
bzr revid: mat@openerp.com-20131128114019-6rfcq9z235kh7ot7
2013-11-28 12:40:19 +01:00
Martin Trigaux
11a81298e9
[MERGE] [FIX] mail: css improvement, no overflow when too long words, line break instead
...
lp bug: https://launchpad.net/bugs/1167323 fixed
bzr revid: mat@openerp.com-20131128113520-s0i7cri632n7a01g
2013-11-28 12:35:20 +01:00
Martin Trigaux
d4edeaaabe
[MERGE] [FIX] sale: use client ref on invoice val instead of name for make invoice wizard, same behaviour as creation of invoice in classic _prepare_invoice of sale.py. Courtsey of Yannick Vaucher (Camptocamp)
...
bzr revid: mat@openerp.com-20131128113232-aun2h9fbrfxwffqt
2013-11-28 12:32:32 +01:00
Launchpad Translations on behalf of openerp
9d95656e0c
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131128060619-0nswl7lls658nujd
2013-11-28 06:06:19 +00:00
Martin Trigaux
f207e8da28
[FIX] pad: add break-word css to avoid going out of the field in case of too long words (eg: urls) (opw 593426)
...
bzr revid: mat@openerp.com-20131127160300-yx42uee1xqx79ljl
2013-11-27 17:03:00 +01:00
Denis Ledoux
a1eb7fffc2
[FIX]note: notes with undefined stages did not appear if the user had defined stages (they appeared if the user had no stages defined)
...
bzr revid: dle@openerp.com-20131127151815-gzk9py9wtzmndziw
2013-11-27 16:18:15 +01:00
Martin Trigaux
866a7c92b6
[FIX] account: Set the alignment of Total parallel to amount in invoice report
...
bzr revid: mat@openerp.com-20131127145145-qr48qhkvcw02e9ww
2013-11-27 15:51:45 +01:00
Martin Trigaux
7c1bf0dd29
[FIX] mail: decode filename at email reception (if non-ascii characters) (opw 591729)
...
bzr revid: mat@openerp.com-20131127124021-bliapaggdjd1xnuz
2013-11-27 13:40:21 +01:00
Christophe Simonis
370b4df6f3
[MERGE] {purchase,purchase_requisition}: choose the right warehouse when creating purchase orders from purchase order/requisition
...
bzr revid: chs@openerp.com-20131127104459-jb77x7quwcvtifm7
2013-11-27 11:44:59 +01:00
Quentin (OpenERP)
7c0c95b1a4
[FIX] sale, purchase: don't copy the customer/supplier reference when copying a SO/PO
...
bzr revid: qdp-launchpad@openerp.com-20131127084625-dqgoloz4q47zlpti
2013-11-27 09:46:25 +01:00
Christophe Simonis
49fa5cab61
[FIX] purchase_requisition: copy method _get_warehouse from purchase module to avoid crash if purchase_requisition is updated but not purchase
...
bzr revid: chs@openerp.com-20131126180726-ng0gue9pedmuykj9
2013-11-26 19:07:26 +01:00
Thibault Delavallée
ae7fcfb564
[IMP] [FIX] mail: mail_thread :
...
- avoid having to browse the record in message_subscribe: refactored message_subscribe
to work on ids without browsing, try to lessen the number of queries to do
- update _set_followers, method of the function field message_follower_ids, to use
message_subscribe and message_unsibscribe
- in create: add author as follower in creation values, not after create, allowing
create access rules based on followers
- updated message_unsubscribe to be the lower method, not calling _set_followers anymore
bzr revid: tde@openerp.com-20131126171752-1irizm7mhv2y1wrn
2013-11-26 18:17:52 +01:00
Quentin (OpenERP)
34832b4694
[FIX] purchase: at the validation of the PO, force the company in the context as the company on the PO in order to read property fields correctly. This patch is necessary to allow a user to confirm a PO belonging to another company (if he has the rights to do so).
...
bzr revid: qdp-launchpad@openerp.com-20131126170505-ttzuiaujpl1k24rg
2013-11-26 18:05:05 +01:00
Launchpad Translations on behalf of openerp
6fd5575930
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131127053957-ekc1bfm5ohug21aa
2013-11-27 05:39:57 +00:00
Denis Ledoux
d003d8f49a
[FIX]hr_timesheet_sheet: add right-padding to timesheet weekly input in order to avoid the value to be partially cut (in ie 9/10, for instance)
...
bzr revid: dle@openerp.com-20131126170019-bydxxyk7uqzpsb41
2013-11-26 18:00:19 +01:00
Christophe Simonis
b1b787545b
[FIX] purchase_requisition: choose the right warehouse when creating purchase requisitions from procurement orders + allow to work in batch.
...
bzr revid: chs@openerp.com-20131126135254-96l4xk9q4fd0iwpu
2013-11-26 14:52:54 +01:00
Christophe Simonis
b81c3897ee
[FIX] purchase: choose the right warehouse when creating purchase orders from procurement orders
...
bzr revid: chs@openerp.com-20131126135026-echb4fq37229g637
2013-11-26 14:50:26 +01:00
Christophe Simonis
465d83e880
[FIX] procurement: procurement orders does not have a `warehouse_id` field
...
bzr revid: chs@openerp.com-20131126134952-cotbhc8s60zj44ts
2013-11-26 14:49:52 +01:00
Launchpad Translations on behalf of openerp
d95ef220d5
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20131126060746-ta374lckemq8t257
2013-11-26 06:07:46 +00:00
Thibault Delavallée
4be6ac800b
[FIX] mail: in some cases tracking is called
...
without the context (some workflows for example). In that case use the
current user lang when generating the automatic message. This is done
by adding it in the context if not present.
lp bug: https://launchpad.net/bugs/1219163 fixed
bzr revid: tde@openerp.com-20131125163808-bbbqwvx22my38zdj
2013-11-25 17:38:08 +01:00
Martin Trigaux
d547acbc4b
[MERGE] [BACKPORT] backport from saas-2 (r4976): ir.model: during garbage collection of obsolete records in _process_end, do it in anti-chronological order
...
bzr revid: mat@openerp.com-20131125162013-z6dhe8eigq7pig0x
2013-11-25 17:20:13 +01:00
Thibault Delavallée
1284c5c0d4
[FIX] mail: fixed reply button in mail_mail form view, should reply
...
to a mail.message, not a mail.mail.
lp bug: https://launchpad.net/bugs/1212190 fixed
bzr revid: tde@openerp.com-20131125155857-m04233fbyan7mglt
2013-11-25 16:58:57 +01:00
Thibault Delavallée
6bfcee2cb7
[FIX] mail: fixed replying to the first message in Inbox that was crashing
...
lp bug: https://launchpad.net/bugs/1212109 fixed
bzr revid: tde@openerp.com-20131125155349-4wfvjxuffnxyumkd
2013-11-25 16:53:49 +01:00
Denis Ledoux
fd080fb745
[FIX]hr_timesheet_sheet: remove useless css rule, which had the effect of erasing the half timesheet weekly input on ie.
...
bzr revid: dle@openerp.com-20131125160315-tj8n5bv6e5yv8jku
2013-11-25 17:03:15 +01:00
Olivier
426a643c4f
[BACKPORT] backport from saas-2 (r4976): ir.model: during garbage collection of obsolete records in _process_end, do it in anti-chronological order
...
bzr revid: olt@openerp.com-20131125144649-mib0vqic0nppziew
2013-11-25 15:46:49 +01:00
Denis Ledoux
40a7a5dc64
[FIX]hr_timesheet_sheet: report, the join clause of the view was wrong, account_analytic_line is join with hr_timesheet_sheet_sheet thanks to the sheet_id (hat.sheet_id=htss.id), not with the line_id (hat.line_id=htss.id)
...
bzr revid: dle@openerp.com-20131125142624-wilbjmlgy9yubcgk
2013-11-25 15:26:24 +01:00
Martin Trigaux
9635119fc1
[FIX] fields: execute name_get for function field of type many2one as SUPERUSER_ID (same behaviour as classical many2one)
...
bzr revid: mat@openerp.com-20131125125008-wmpssjk5vygdcc0w
2013-11-25 13:50:08 +01:00
Martin Trigaux
e2102ca9ce
[IMP] orm: add missing space in error message during validation
...
bzr revid: mat@openerp.com-20131125124717-4jsqv0lfu7hpxusi
2013-11-25 13:47:17 +01:00
Martin Trigaux
04908a9911
[FIX] orm: when duplicating translated object, get more coherent source and destination values if default value is specified
...
user's language: old (untranslated) -> new (translated)
other language: old (untranslated) -> old (translated)
This allows to have coherent behaviour if copy() method is overwritten to change the text (usually applying _('%s (copy)')). The current user will see the translated terms with modification while the translations are kept for others (and need to be updated).
We prefer keeping slightly irrelevant translations (without translated version of '%s (copy)') for other languages than losing it.
The copy_data method does not modify context to get untranslatated values, done fully in copy_translation
bzr revid: mat@openerp.com-20131125122347-5p5oyxab5rf1kk7u
2013-11-25 13:23:47 +01:00