Commit Graph

77111 Commits

Author SHA1 Message Date
Thibault Delavallée 382efffb58 [MERGE] [CLEAN] Part I of cleaning and improvements of the server branch of website-al, after review with our Masters. All Glory to Our Masters.
[CLEAN] res_config, res_users: cleaned call to imd.get_object() + code cleaning
- res_config: raise by default, no need to set the argument at True
- res_users: directly embedded get_user_groups_view code inside update_user_groups_view.
The try / except is still necessary, because when installing a new db, groups and users
are created before the user_groups_view view effectively exist. Due to some circular
references, the try / except is therefore necessary to install a new db.

[CLEAN] ir_qweb: simplified and cleaned QWebcontext implementation
- now using openerp.tools.safe_eval, instead of a custom eval with custom builtins
- removed undefined_handler, hardcoded to a lambda function that returns None for
a missing attribute
- cleaned code, removed now dead BUILTINS, removed commented code
- tools.safe_eval: added a parameter locals_builtins. This allows to copy the globals builtins in the locals. This modification is due to the fact that the locals always returns None, allowing to simplify templates. Otherwise we would have to test the existence of each variable before actually using it. However as the locals always return None for every key, the globals are never checked. Copying the builtins inside the local allows to have a complete locals, but slightly break the globals/locals separation.

[CLEAN] Misc
- setup.py: reverted website-al unnecessary change
- oe: reverted website-al unnecessary change

[DOC] renamed misc_qweb.rst file into ir_qweb.rst

bzr revid: tde@openerp.com-20140116184144-fd5h4a94we13mm72
2014-01-16 19:41:44 +01:00
Thibault Delavallée f4bb798cb8 [CLEAN] ir_qweb: removed commented and now dead BUILTINS
bzr revid: tde@openerp.com-20140116183315-g5ootf670kwx1z1z
2014-01-16 19:33:15 +01:00
Thibault Delavallée c76a3aba8f [CLEAN] ir_qweb: simplified and cleaned QWebcontext implementation
- now using openerp.tools.safe_eval, instead of a custom eval with custom builtins
- removed undefined_handler, hardcoded to a lambda function that returns None for
a missing attribute

tools.safe_eval: added a parameter locals_builtins. This allows to copy the builtins
in the locals. This hack is due to the fact that the locals always returns None, allowing
to simplify templates. Otherwise we would have to test the existence of each variable
before actually using it.
However as the locals always return None for every key, the globals are never checked.
Copying the builtins inside the local allows to have a complete locals, but sligtly
break the globals/locals separation.

To be reviewed and approved.

bzr revid: tde@openerp.com-20140116182750-1rnw8iljt5a9gb4u
2014-01-16 19:27:50 +01:00
Xavier Morel ff51574fae [FIX] somebody renamed classes without fixing the corresponding autodoc invocation
bzr revid: xmo@openerp.com-20140116144957-j2no6ls83vfxtgbk
2014-01-16 15:49:57 +01:00
Thibault Delavallée 8af1afb1a0 [CLEAN] [REM] ir_qweb: removed access rules on the various ir_web models
as those are abstract models. They should not have any access rules.

bzr revid: tde@openerp.com-20140116140621-6mjkp82oy0iyahi7
2014-01-16 15:06:21 +01:00
Fabien Meghazi 2e43125353 [FIX] LazyResponse exceptions not properly managed in auth="none"
bzr revid: fme@openerp.com-20140116135650-c3gri2m1j80wcwca
2014-01-16 14:56:50 +01:00
Fabien Meghazi cee6749395 [IMP] ir_http._handle_exception() raises last exception in order to keep original traceback
bzr revid: fme@openerp.com-20140116135426-x7q8l6ph2m1ln8ry
2014-01-16 14:54:26 +01:00
Thibault Delavallée 2c32d92ee5 [CLEAN] res_config, res_users: cleaned call to imd.get_object() + code cleaning
- res_config: raise by default, no need to set the argument at True
- res_users: directly embedded get_user_groups_view code inside update_user_groups_view.
The try / except is still necessary, because when installing a new db, groups and users
are created before the user_groups_view view effectively exist. Due to some circular
references, the try / except is therefore necessary to install a new db.

bzr revid: tde@openerp.com-20140116134056-nyiybx7zsr8rhkiv
2014-01-16 14:40:56 +01:00
Thibault Delavallée 051ef6d01f [CLEAN] [DOC] renamed misc_qweb.rst file into ir_qweb.rst
bzr revid: tde@openerp.com-20140116125222-aag6zfjprbbnuhcu
2014-01-16 13:52:22 +01:00
Thibault Delavallée c5262d8d94 [CLEAN] setup.py: reverted website-al unnecessary change
bzr revid: tde@openerp.com-20140116125001-1fkbbseyohukwcdg
2014-01-16 13:50:01 +01:00
Thibault Delavallée e70f74b106 [CLEAN] or: reverted website-al unnecessary change
bzr revid: tde@openerp.com-20140116124948-15jqamtain0ie20c
2014-01-16 13:49:48 +01:00
Thibault Delavallée ab5c23079a [MERGE] Sync with trunk, solved conflicts.
bzr revid: tde@openerp.com-20140116091716-zk1n5ots94i65io5
2014-01-16 10:17:16 +01:00
Launchpad Translations on behalf of openerp 7b2948c3bc Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140116051725-2fysq8wj8ez01l9u
2014-01-16 05:17:25 +00:00
Christophe Simonis 0e870fc7a7 [MERGE] forward port of branch saas-2 up to revid 3897 dle@openerp.com-20140115121441-bskbyxxbc09ubavh
bzr revid: chs@openerp.com-20140115221349-3lw7b0kpo3f2d04l
2014-01-15 23:13:49 +01:00
Denis Ledoux 5649e0bbf2 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9770 revid:chs@openerp.com-20140116154645-sy4zhdgqc48xaqbx
bzr revid: dle@openerp.com-20131224112612-5gjit5uu1aaaqstx
bzr revid: dle@openerp.com-20140103094532-mbczi9ssr3gc90o1
bzr revid: dle@openerp.com-20140108105833-gblxqdw3if1gt35k
bzr revid: dle@openerp.com-20140115121441-bskbyxxbc09ubavh
bzr revid: dle@openerp.com-20140115165506-yuux9km39gbv7k4n
bzr revid: dle@openerp.com-20140116161415-0y9m0kgavcytzj9z
2014-01-16 17:14:15 +01:00
Christophe Simonis 70e201b07e [FIX] decimal_precision: clearing the cache is suffcient when decimal precision change.
[IMP] decimal_precision: call digits_change() on any field that support it, not only on float and function fields

bzr revid: chs@openerp.com-20140116154645-sy4zhdgqc48xaqbx
2014-01-16 16:46:45 +01:00
Christophe Simonis 2f90f80ba0 [FIX] orm: As float fields are stateful (the .digit attribute depend of the database (decimal_precision)), registry model instances need their owm copy.
lp bug: https://launchpad.net/bugs/929483 fixed

bzr revid: chs@openerp.com-20140116153708-061aq2k0n1qsb2n3
2014-01-16 16:37:08 +01:00
Olivier Dony 212b6bc480 [FIX] modules: set initial values for multi-process signaling to None to avoid missing events
For fresh databases, the signaling sequences in the
database stays at 1 until the installation of the
first module. If several workers are hit for this
database before the first module is installed,
this database registry will be loaded with a signaling
sequence of 1. Since  was the default value, any
signal received by workers in this state was ignored 
because they thought the registry was previously
not loaded.
Using None to indicate an  sequence value
is more accurate and avoids this error

bzr revid: dle@openerp.com-20140116151157-3zlyrg48xqn2lkd0
2014-01-16 16:11:57 +01:00
Martin Trigaux c02f16e443 [FIX] base_calendar: when searching on events, avoid getting an error if virtual_id=False and count=True
bzr revid: mat@openerp.com-20140116094758-y32i7bw4zpakk92z
2014-01-16 10:47:58 +01:00
Launchpad Translations on behalf of openerp f39b8bb436 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140116060347-s1e2v9o33n1cxk2y
bzr revid: launchpad_translations_on_behalf_of_openerp-20140116060418-cw791djr2ebt2wuy
bzr revid: launchpad_translations_on_behalf_of_openerp-20140116060651-x8r0l0m27wcx0yav
2014-01-16 06:06:51 +00:00
Christophe Simonis 91aaaec0a5 [MERGE] forward port of branch saas-2 up to revid 9092 dle@openerp.com-20140115165506-yuux9km39gbv7k4n
bzr revid: chs@openerp.com-20140115214454-dhl8xzr429co0j5d
2014-01-15 22:44:54 +01:00
Christophe Simonis 0771ca2692 [MERGE] forward port of branch saas-2 up to revid 5002 dle@openerp.com-20140114173613-ruxye1m7fxtcjfim
bzr revid: chs@openerp.com-20140115205357-arptzm69logz3osm
2014-01-15 21:53:57 +01:00
Christophe Simonis a69f789b41 [MERGE] forward port of branch 7.0 up to revid 5224 chs@openerp.com-20140206105141-7e8bv8ordqqsswh7
bzr revid: dle@openerp.com-20140205105045-j95kduyjiq83e57z
bzr revid: dle@openerp.com-20140114173613-ruxye1m7fxtcjfim
bzr revid: dle@openerp.com-20140116161158-u95vcs3os4tk2zob
bzr revid: dle@openerp.com-20140121172737-gzawfi3ssg7xifef
bzr revid: chs@openerp.com-20140129094554-c3abc8x3qz9mpszr
bzr revid: chs@openerp.com-20140129140159-9vwkpr078shoonum
bzr revid: chs@openerp.com-20140206110220-myn57cryam1y4k9v
2014-02-06 12:02:20 +01:00
Christophe Simonis c234d8547d [FIX] _(): avoid useless warning where translating string without a cursor
bzr revid: chs@openerp.com-20140206105141-7e8bv8ordqqsswh7
2014-02-06 11:51:41 +01:00
Martin Trigaux b75c52f3ed [IMP] reference fields: display a more user-friendly window title when open a chosen many2one record in reference field
bzr revid: mat@openerp.com-20140206102409-4lbx7ofsgz8speni
2014-02-06 11:24:09 +01:00
Martin Trigaux 7950914c69 [IMP] ir_fields: no need to sanitize the _str_to_html as it is already done in the _symbol_set of html fields. This avoids doing twice the sanitization.
bzr revid: mat@openerp.com-20140206094628-umx2rfb9rcim7v82
2014-02-06 10:46:28 +01:00
Martin Trigaux 909ff6e368 [MERGE] [FIX] ir_fields: allow convertion from string to html using sanitize function
This is required to be able to import csv file containing html fields

lp bug: https://launchpad.net/bugs/1093800 fixed

bzr revid: mat@openerp.com-20140206084708-j63kpkr9apd3j01j
2014-02-06 09:47:08 +01:00
Launchpad Translations on behalf of openerp 7c691e9e27 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140206062518-3g0oj0z7mlartzal
2014-02-06 06:25:18 +00:00
Launchpad Translations on behalf of openerp ffabcd257c Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140206062321-j6cpns6xz3f81net
bzr revid: launchpad_translations_on_behalf_of_openerp-20140206062510-x502ahdwzezvea54
2014-02-06 06:25:10 +00:00
Martin Trigaux 7c7081df56 [MERGE] [FIX] account: action 'Journal Items' on a journal entries should restrict by account.move and not journal (src_model) (opw 585153)
bzr revid: mat@openerp.com-20140205132057-jxxmmyhfk6c15w9o
2014-02-05 14:20:57 +01:00
Martin Trigaux ea3c17a2e9 [MERGE] [FIX] search: make sure search view is not destroyed when starting SearchView widget
This avoids getting the error 'Cannot call method 'getParent' of undefined'

lp bug: https://launchpad.net/bugs/1178289 fixed

bzr revid: mat@openerp.com-20140205102107-5ggbbkyr172855uu
2014-02-05 11:21:07 +01:00
Denis Ledoux 34beebac6c [FIX] account: residual amount computation with refund invoices
On invoice residual amount computing, we ignore reconcile entries line if their invoice are not of the same type of the current invoice
The above revision(s) will be removed

bzr revid: dle@openerp.com-20140205100324-5tyquozmylcp40p1
2014-02-05 11:03:24 +01:00
Thibault Delavallée a7c7e33131 [FIX] mass_mailing: fixed variables used outside of their scope
bzr revid: tde@openerp.com-20140204165949-9xax1pul22ktsf41
2014-02-04 17:59:49 +01:00
Martin Trigaux 14631ed6c5 [FIX] css: remove height: 18px on .oe_facet_value property to avoid long filter name to exceed the size of the box (on 2 lines)
bzr revid: mat@openerp.com-20140204155046-ifqts8mpaqhgvjnj
2014-02-04 16:50:46 +01:00
Martin Trigaux d298449277 [MERGE] [FIX] audittrail: various bugs (opw 603072)
- tracking unlink does not fail anymore
- do not track virtual fields on res.users model (would for .column call)
- make sure read calls with one id works (launchpad bug lp:1214149)
- select the correct model when tracking x2m fields values

bzr revid: mat@openerp.com-20140204151136-51cm1tbgvcsnlsoe
2014-02-04 16:11:36 +01:00
Cecile Tonglet df0076c67d [FIX] getParent() js error when clicking to fast on menu items of dashboards
bzr revid: cto@openerp.com-20140204150544-nkuhxree6qijihq2
2014-02-04 16:05:44 +01:00
Martin Trigaux 985ddf3baf [FIX] auditrail: in case of unlink retrieve first the record and then execute the unlink (the other way around is causes problems for name_get...)
bzr revid: mat@openerp.com-20140204142825-jtln4kyfmfhgq4sd
2014-02-04 15:28:25 +01:00
Martin Trigaux 02024a6dfc [FIX] qweb templates: t-raw to t-esc
t-raw usage is discourage if not to displayed html content (after escaping) as it may contain unsafe data

bzr revid: mat@openerp.com-20140204141913-e5hcaml53woumlgs
2014-02-04 15:19:13 +01:00
Martin Trigaux 45f52a3493 [FIX] audittrail: fixing various bugs
iter only on fields on __all_columns, this avoids getting inexistant fields such as 'in_group_42' for res.users
make sure read method calls works when passing only one id (lp:1214149)
when itering on change values, if different model (eg: if field is o2m) make sure make name_get on the model of the field and not on the parent model

lp bug: https://launchpad.net/bugs/1214149 fixed

bzr revid: mat@openerp.com-20140204141449-2f922k5awixh1kzt
2014-02-04 15:14:49 +01:00
Denis Ledoux 612fcf8540 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9806 revid:dle@openerp.com-20140204124249-qjjhulqojvcm08k4
bzr revid: dle@openerp.com-20140204124802-0yl2z6nr0zflhi9u
2014-02-04 13:48:02 +01:00
Denis Ledoux 8a81670cb0 [FIX] purchase: hide receive invoice if invoice based on purchase order line.
It has to be done manually.

opw-603620

bzr revid: dle@openerp.com-20140204124249-qjjhulqojvcm08k4
2014-02-04 13:42:49 +01:00
Martin Trigaux 6cb3c4b735 [FIX] some other t-raw to t-esc conversions
bzr revid: mat@openerp.com-20140204124242-emrd7hwlk6d4umkj
2014-02-04 13:42:42 +01:00
Denis Ledoux 5aedbce448 [FIX] account_analytic_analysis: currency were wrong when preparing recurring invoices
The id of the sale pricelist of the customer was set as currency_id, instead of using the id of the currency of the pricelist. (Obviously)
Furthermore, the currency of the contract pricelist takes the lead.
Then, if none of these two are set, we choose the currency of the company, finally.

bzr revid: dle@openerp.com-20140204115226-rowmbr5223fcu08k
2014-02-04 12:52:26 +01:00
Martin Trigaux 57b3abdbd6 [FIX] mail: escape user and partner names before being rendered in mail widgets
lp bug: https://launchpad.net/bugs/1276078 fixed

bzr revid: mat@openerp.com-20140204113358-2cb39l7ge2f5pcg5
2014-02-04 12:33:58 +01:00
Denis Ledoux bd4f015533 [FIX]stock: product Forecasted Quantity, incoming and outgoing help tooltip were half removed
bzr revid: dle@openerp.com-20140204100835-z0mlvoot21yoz0z3
2014-02-04 11:08:35 +01:00
Launchpad Translations on behalf of openerp a12fb24290 Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140204064842-0dbci9bv8whxs8ax
2014-02-04 06:48:42 +00:00
Launchpad Translations on behalf of openerp 2bebb9cd4d Launchpad automatic translations update.
bzr revid: launchpad_translations_on_behalf_of_openerp-20140201065304-8md3g4d14l1b51ii
bzr revid: launchpad_translations_on_behalf_of_openerp-20140202060105-bnt8nw1mcbg2c3m3
bzr revid: launchpad_translations_on_behalf_of_openerp-20140203055609-uxdqgnistwilvo2v
bzr revid: launchpad_translations_on_behalf_of_openerp-20140204064835-qdcrcxldc5zsutio
2014-02-04 06:48:35 +00:00
jke-openerp 4f827ec044 [MERGE] Merge with 7.0-fix-css-clearfix-jke - bug clearfix on oe_title and oe_form_group
bzr revid: jke@openerp.com-20140203180637-er9c45xm0d9sk7ub
2014-02-03 19:06:37 +01:00
jke-openerp 41f66b8835 [TYPO] Fix bug css revert rev 4122 and add clear:both
revert because was breaking the rendering of forms using oe_title as clearfix hack
adding clear on .oe_form_group to fix the journal form on firefox (block was unaligned, some fields out of the screen)

bzr revid: jke@openerp.com-20140203173926-ohabh1vahcwqijug
2014-02-03 18:39:26 +01:00
Martin Trigaux 897cafed99 [MERGE] [FIX] read_group: aggregate values on all columns instead of only the one of the current model
Without this you could not have a sum value on a column belonging to the parent model (eg: 'unit_amount' when grouping on hr.analytic.timesheet)

bzr revid: mat@openerp.com-20140203140247-n090tx2yf8mujkcz
2014-02-03 15:02:47 +01:00