Commit Graph

75747 Commits

Author SHA1 Message Date
Fabien Meghazi a859a53e72 [FIX] ir.model.data#_update() should honor the noupdate flag
In `init` mode, a record can still be filled with multiple record
nodes with the first node being in a data@noupdate="1" and the other
nodes without @noupdate attribute but this won't be the case anymore in
`update` mode

bzr revid: fme@openerp.com-20131216144304-2e8b9xvoks2fvlj9
2013-12-16 15:43:04 +01:00
Xavier Morel f6a5800d59 [ADD] ability to disable fields escaping
bzr revid: xmo@openerp.com-20131216092330-2v50c8uzzsb3qp8q
2013-12-16 10:23:30 +01:00
Fabien Pinckaers f9e986ecea [IMP] allow frames in blogs (video, ...
bzr revid: fp@tinyerp.com-20131214211309-i2kk3cb60hnp1urz
2013-12-14 22:13:09 +01:00
Fabien Pinckaers 65a5ce8a92 [IMP] HMTL5 main element
bzr revid: fp@tinyerp.com-20131213214157-8ow63hpaii6hdvxl
2013-12-13 22:41:57 +01:00
Xavier Morel 3b56c80ced [FIX] attempt to fix issues of Locale.parse(None) returning None
use Locale.default() instead of manually parsing the result of locale.getdefaultlocale()

bzr revid: xmo@openerp.com-20131213104030-0tejn7i13yex975v
2013-12-13 11:40:30 +01:00
Xavier Morel 0546993327 [FIX] merge from trunk and fix handling of view inheritance
main problem, view inheritance model field would use model from the
root view (after following inherit_id links) rather than the base view
(the requested one) -> with divergent models, it was possible for the
requested view itself to never be returned.

bzr revid: xmo@openerp.com-20131212134422-uxg6h21w1jhth9ow
2013-12-12 14:44:22 +01:00
Xavier Morel 00b012c01b [ADD] tentative tests for application of view inheritance stuff
bzr revid: xmo@openerp.com-20131212120600-timum4yzr84kl0mf
2013-12-12 13:06:00 +01:00
Thibault Delavallée 6b164eb7b3 [IMP] hr: minor usability improvements
- hr_holidays: renamed My Leaves filter by My Requests, more accurate
- hr_recruitment: string of name field is not Subject / Application Name, more accurate; this string is used in the search view also.

bzr revid: tde@openerp.com-20131212104612-2fbn9130emyvxg7s
2013-12-12 11:46:12 +01:00
Gery Debongnie 43627cc63a [FIX] makes sure the web client loads the bootstrap.js file instead of using dropdown.js in web_graph (addon web)
bzr revid: ged@openerp.com-20131212094518-jlau88zb0bxjj966
2013-12-12 10:45:18 +01:00
Launchpad Translations on behalf of openerp 45e34f2f6b Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131211053249-7onr7u94z5rfg60p
bzr revid: launchpad_translations_on_behalf_of_openerp-20131212051525-n6q6vsucee027ihr
2013-12-12 05:15:25 +00:00
Xavier Morel ebc6ff5256 [REM] broken tests
weird tests (using broken views, but not just broken in the way the
test expects) were really testing for error on using a field which
does not exist, predicated on full rendering of the view during
validation.

This has been removed from the website branch as it's unfeasible and
nonsensical for model-less views (e.g. qweb), and thus the test blew
up with a completely different error (missing @string) or, once the
test was fixed, wouldn't blow up at all.

bzr revid: xmo@openerp.com-20131211162412-t31bxkpy2yzdnf0q
2013-12-11 17:24:12 +01:00
Thibault Delavallée 1a16ecf8c2 [FIX] http: correctly handle the rollback when an exception is raised. Indeed dispathc serializes the exception, leading to the error being catched before we check and rollback the transaction. This commit fixes this.
bzr revid: tde@openerp.com-20131211112304-m2591t7endfetptc
2013-12-11 12:23:04 +01:00
Launchpad Translations on behalf of openerp 44b7ede640 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131211053156-p3v0gn1hf6l8c8h7
bzr revid: launchpad_translations_on_behalf_of_openerp-20131211055224-g9i9shv9qqhb93cz
2013-12-11 05:52:24 +00:00
Xavier Morel fec27404ac [CHG] replace [Add] button in m2m lists by link in row, similar to o2m
Task 4941

Extracted relevant section from One2ManyList which already implemented
it previously, then created and hooked in m2m list using (inheriting
from) extracted code.

bzr revid: xmo@openerp.com-20131210164443-ur44b8g5gdrt8jt1
2013-12-10 17:44:43 +01:00
Fabien Pinckaers 630e9ad64c [FIX] Don't remove data-... attributes like data-snippet-id
bzr revid: fp@tinyerp.com-20131209185406-newaf16v532l146p
2013-12-09 19:54:06 +01:00
Martin Trigaux 06831d67c4 [MERGE] [FIX] res_font: requires server commit 5011
Mainly fix reports
Adapt API to new res_font methods
See server commit message for more information

bzr revid: mat@openerp.com-20131209171551-fgiv790hcvjnp1ly
2013-12-09 18:15:51 +01:00
Martin Trigaux f3e7afaaca [MERGE] [FIX] res_font: make it works in multiworker environment
res_font model gains family, path and mode field
Basic fonts embedded in pdf (Helvetica, Times and Courier) are data
Fix reports using font names to be valid (eg: DejaVu Sans Bold -> DejaVuSans-Bold)
default_get of res_company does not scan the filesystem anymore
family field is new name_get font for res_font (more user friendly)
Domain on displayed font to only 'normal ones' (not bold or italic)
Handle fonts in 'book' mode as normal in setTTFontMapping
Relax constraint on res_font to unique family and name ('name' was actually family before)
font_scan is called on 'reload fonts' action button and for each report rendering
font_scan is lazy when loaded from report and scanning the filesystem only if no font recorded in filesystem
'/dev/null' in font path is used to add fonts in the list but not loaded by reportlab
Scanning the filesystem triggers clear_caches
clear_cache resets the list of found fonts to empty list to make font_scan call to reload the full list (when redering a report on any worker, will always get the updated font list after a scan)
Add access rights for fonts (read everybody, create admin, call font_scan as superuser in report rendering)
Remove font hack with BaseCustomTTFonts, rely fully on the system fonts
Use glob instead of listdir (needed for path like '/usr/share/fonts/TTF/*')
Make warning message from reportlab more self-explaining.

Also make the runbot green (which is nice)

bzr revid: mat@openerp.com-20131209171338-o796pldia9da3kt2
2013-12-09 18:13:38 +01:00
Martin Trigaux 7328a64425 [MERGE] sync with trunk
bzr revid: mat@openerp.com-20131209154236-jjawy50a8tvmyayb
bzr revid: mat@openerp.com-20131209163936-6n9z81etuejkdpsg
2013-12-09 17:39:36 +01:00
Thibault Delavallée 89bc58bae6 [TESTS] mail: mute logger back in mail tests
bzr revid: tde@openerp.com-20131209160923-3yisgzqmns6pviud
2013-12-09 17:09:23 +01:00
Martin Trigaux efdfcfc90e [FIX] font: family with one l (Familly is a commune in the Calvados department in the Basse-Normandie region in northwestern France.)
bzr revid: mat@openerp.com-20131209155702-negir6agbiugfctz
2013-12-09 16:57:02 +01:00
Martin Trigaux b48b746dd1 [IMP] fix licence
bzr revid: mat@openerp.com-20131209154537-r5hpcveuxmvcdj10
2013-12-09 16:45:37 +01:00
Martin Trigaux 3215f8ea3a [MERGE] sync with trunk
bzr revid: mat@openerp.com-20131209154201-1s0f98h43y5mu9ui
2013-12-09 16:42:01 +01:00
Martin Trigaux b37d3b7989 [FIX] font: trigger signal for clear cache instead on self
bzr revid: mat@openerp.com-20131209153842-l13zfc24at7cfisc
2013-12-09 16:38:42 +01:00
Martin Trigaux aac5c9d6eb [IMP] font: better handeling of multiworker environement
bzr revid: mat@openerp.com-20131209151454-5rylu5alldd3ixmh
2013-12-09 16:14:54 +01:00
Martin Trigaux 5f1f44401f [FIX] font: revert previous (use name and not familly in reportlab), fix reports using spaces
bzr revid: mat@openerp.com-20131209133742-7u1sesoinrmfpwf0
2013-12-09 14:37:42 +01:00
Martin Trigaux cca8bb4d64 [FIX] font: revert previous (use name and not familly in reportlab), fix reports using spaces
bzr revid: mat@openerp.com-20131209133431-6gjhq1zmrb2ro6eo
2013-12-09 14:34:31 +01:00
Martin Trigaux 34beeaeba7 [FIX] font: correct call to font_scan, add book to displayed mode
bzr revid: mat@openerp.com-20131209132132-61qg1zsybh6zcxim
2013-12-09 14:21:32 +01:00
Martin Trigaux 48cce10a7a [FIX] font: correct call to font_scan, add book to displayed mode
bzr revid: mat@openerp.com-20131209132109-c2bluohdj7hkp2px
2013-12-09 14:21:09 +01:00
Martin Trigaux b2313634af [FIX] font: avoid removing fake fonts
bzr revid: mat@openerp.com-20131209130844-b8gvcfgqf5t744ir
2013-12-09 14:08:44 +01:00
Martin Trigaux 75d92a40bd [FIX] font: correctly place font_scan call, use superuser_id, restrict rights for general users, invert name and family
bzr revid: mat@openerp.com-20131209125705-gk2sjiwxqyxc702r
2013-12-09 13:57:05 +01:00
Martin Trigaux 87dfe75013 [IMP] font: move lazy loading to report_rml instead of report_sxw
bzr revid: mat@openerp.com-20131209113207-qwipb3urh8gbb04s
2013-12-09 12:32:07 +01:00
Martin Trigaux 51bd2de107 [IMP] font: reload font list only when empty
bzr revid: mat@openerp.com-20131209111811-2oisaal26bku7mpt
2013-12-09 12:18:11 +01:00
Martin Trigaux 4bc2fa3e9b [FIX] base_setup: adapt api
bzr revid: mat@openerp.com-20131209110850-f1asm1ow6isfdtqa
2013-12-09 12:08:50 +01:00
Martin Trigaux a9b98a88a9 [IMP] font: add security rule, lazy loading at first report rendering
bzr revid: mat@openerp.com-20131209110511-l72dgop00bfdeq3v
2013-12-09 12:05:11 +01:00
Thibault Delavallée 4b96e85a30 [MERGE] [FORWARD] Forward port of saas-2 branch until revision 9036 (revid tde@openerp.com-20131209102019-kjeg0rx2au1d5e5v)
bzr revid: tde@openerp.com-20131209105031-17920wsidpqrwmxj
2013-12-09 11:50:31 +01:00
Denis Ledoux 20be322c45 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9684 rev-id: dle@openerp.com-20131209145652-3g9rgnfz1w8k0whw
bzr revid: chs@openerp.com-20131202105848-33gcz1715w370rve
bzr revid: dle@openerp.com-20131204150643-is3y0b9n8enh3yql
bzr revid: chs@openerp.com-20131206152726-pirikn7v8pev90ic
bzr revid: dle@openerp.com-20131206162437-b9niay99mirk44qm
bzr revid: tde@openerp.com-20131209102019-kjeg0rx2au1d5e5v
bzr revid: dle@openerp.com-20131209155721-589zihxx8jmvlpvp
2013-12-09 16:57:21 +01:00
Denis Ledoux 3be327c0ae [FIX] point_of_sale: ignore TOTAlY returns
Returns were partially ignored when typing keystrokes, thanks to a return; when event which equaled 13, but the default behaviour (press on the focused input/button) was not prevented. This is now the case thanks to preventDefault. For instance, just after a discount set, the focused input was pressed and the associated value was added when scanning a new product with the scanner. Therefore, if we entered a discount of 30%, scanning a new product added '0', the last pushed button, to the discount, and then added the product.

bzr revid: dle@openerp.com-20131209145652-3g9rgnfz1w8k0whw
2013-12-09 15:56:52 +01:00
Thibault Delavallée 93ab94a608 [MERGE] [FIX] mail: fixed message_follower_ids function field.
The set method of the field, set_followers, is now using message_subscribe and message_unsubscribe to have only one access point to adding or removing followers. Previously to this fix it was directly creating entries in the mail_followers table, neglecting the calculation of subtypes and default subtypes.

bzr revid: tde@openerp.com-20131209100822-f19udgfuubshhrg3
2013-12-09 11:08:22 +01:00
Thibault Delavallée fcd5f7d960 [MERGE] Sync with 7.0
bzr revid: tde@openerp.com-20131209090903-al4o6uhrhhw4cqcl
2013-12-09 10:09:03 +01:00
Thibault Delavallée 2382710f6f [REV] mail: removed some changes to be done in trunk, not in 7.0
bzr revid: tde@openerp.com-20131209090802-q8fzn88ia9w6o5pq
2013-12-09 10:08:02 +01:00
Launchpad Translations on behalf of openerp 1e994bb667 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131209051959-7j1f1anh77czkpsn
2013-12-09 05:19:59 +00:00
Launchpad Translations on behalf of openerp a092227c6e Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20131207063209-2xi8ba5wu6l6ze00
bzr revid: launchpad_translations_on_behalf_of_openerp-20131208054536-mg4w4d6ljq8ji1nj
bzr revid: launchpad_translations_on_behalf_of_openerp-20131207063232-l64v1fhf1qcpxm2l
bzr revid: launchpad_translations_on_behalf_of_openerp-20131208054646-zixed7abpuze4qt1
bzr revid: launchpad_translations_on_behalf_of_openerp-20131123062625-f7inv72rtg2kel8g
bzr revid: launchpad_translations_on_behalf_of_openerp-20131124054801-1ukcpelfukkvwn60
bzr revid: launchpad_translations_on_behalf_of_openerp-20131125060120-nm8tkfbftg8c88v1
bzr revid: launchpad_translations_on_behalf_of_openerp-20131126060753-jnx5ran2accmo0lh
bzr revid: launchpad_translations_on_behalf_of_openerp-20131127054000-wtg675pf33f3bkar
bzr revid: launchpad_translations_on_behalf_of_openerp-20131129053028-abszdj4y76smnacb
bzr revid: launchpad_translations_on_behalf_of_openerp-20131201054555-3u1m1sy1f2og78nn
bzr revid: launchpad_translations_on_behalf_of_openerp-20131202055227-mm70khzdfnp4qcj9
bzr revid: launchpad_translations_on_behalf_of_openerp-20131207063237-vza5vb51xmd2ipl6
bzr revid: launchpad_translations_on_behalf_of_openerp-20131208054653-f4zth8j3iczlzcqz
2013-12-08 05:46:53 +00:00
Denis Ledoux fb90e7d572 [FIX]ir_attachement: not self.pool.get(model) instead of model not in self.pool
bzr revid: dle@openerp.com-20131206173602-no831oxc6m1kf6lu
2013-12-06 18:36:02 +01:00
Martin Trigaux aa9efd6dab [FIX] account: correct name_search on account to be validated even at negation
added test checking every combinaison of name_search

bzr revid: mat@openerp.com-20131206170012-991vs7pa1yzxvav8
2013-12-06 18:00:12 +01:00
Denis Ledoux 4669f05406 [FIX] ir_attachement: search, if the model of the ir_attachement has been removed, the search ignore the attachement.
bzr revid: dle@openerp.com-20131206162314-vjpgtag8qhkl1jhk
2013-12-06 17:23:14 +01:00
Martin Trigaux f177669af9 [MERGE] [FIX] orm: Ignore orm (4, *) operations on one2many if link already exists.
Web client returns (4, ) operations for unchanged line in one2many widgets. 
This allows to skip orm write on object where potentially has no access (eg: timesheet line with another user). (opw 599494)

bzr revid: mat@openerp.com-20131206144301-k6ugjota873nz75d
2013-12-06 15:43:01 +01:00
Martin Trigaux d2ca43402e [FIX] orm: inverting the condition seems to work (don't ask why)
bzr revid: mat@openerp.com-20131206142220-nfqiyeic9fdkejxy
2013-12-06 15:22:20 +01:00
Denis Ledoux 5200639f39 [FIX]sale: on sale order creation, apply on_change if needed (if required value are not set and can be computed from other values (onchange)
bzr revid: dle@openerp.com-20131206135111-nh31jgspelvwnhat
2013-12-06 14:51:11 +01:00
Martin Trigaux a3847ce648 [MERGE] [FIX] account: performance improvement on account.analytic.lines
don't create new analytic lines at move creation, will do it once the move is balanced
don't remove analytic lines (to avoid duplicates) at the begining of the validation of a move, will do it once we create the new correct analytic lines (opw 597719)

bzr revid: mat@openerp.com-20131206131125-fvzy62qqx3gnwmw5
2013-12-06 14:11:25 +01:00
Martin Trigaux 0be3333f96 [FIX] orm: ignore existing link for operation (4, x) in one2many fields
bzr revid: mat@openerp.com-20131206125403-r6uemlh7jagw01gh
2013-12-06 13:54:03 +01:00