Sylvain GARANCHER
f4cb884cdc
[FIX] base: Add missing return values
...
The _auto_init method was overriden without keeping the return value of
the super on some models.
This break the new stored computed fields computation at field creation.
Closes #11985
opw-677232
2016-05-17 10:39:54 +02:00
Christophe Simonis
5042d91330
[FIX] base: translation update
...
When updating translations, the source (`src`) is irrelevant for
`field` and `help` translations. Theses translation types are only
matched through their `name`.
2015-04-07 12:37:11 +02:00
Martin Trigaux
96d1520a5e
[FIX] base: no line feed in translations
...
Revert "[FIX] ir_translation: remove control characters from translations"
This reverts commit 6d4e1cc73e
.
This was intended to clean malformed translations but it introduced the side
effect of removing all '\n' in translations.
Fixes #4092 , opw 619175
2015-01-06 10:43:54 +01:00
Denis Ledoux
7cbd524448
[FIX] ir_translation: apply tools.ustr on the trad itself
...
tools.ustr(None) returns u'None', res[0] can be None.
2014-10-03 12:08:49 +02:00
Denis Ledoux
6d4e1cc73e
[FIX] ir_translation: remove control characters from translations
...
This is possible that control characters (such as line returns) are inserted wrongly in translations
These should not influence on the web interface
2014-10-03 11:20:19 +02:00
Denis Ledoux
58080c6569
[FIX] ir, ir_translation: it was not possible to empty the source of a translation, or this is sometime something that we want
...
bzr revid: dle@openerp.com-20131121132305-qjlclgz5v9tze1fr
2013-11-21 14:23:05 +01:00
Denis Ledoux
447dec696b
[FIX]base, ir_translation: in _get_src, if model or record id does not exist anymore, do not apptempt to read it
...
bzr revid: dle@openerp.com-20130924124654-9lz76t6hx0cmxnx5
2013-09-24 14:46:54 +02:00
Martin Trigaux
1fc7e4d532
[IMP] ir_translation: better log message
...
bzr revid: mat@openerp.com-20130813130109-yhvgipdy9m63jcqy
2013-08-13 15:01:09 +02:00
Martin Trigaux
2bac9b3353
[ADD] ir_translation: allow extra translations in folder i18n_extra
...
bzr revid: mat@openerp.com-20130813121258-q9y4kudhavndlod6
2013-08-13 14:12:58 +02:00
Olivier Dony
a4589a84cc
[FIX] ir.translation: backport of trunk fix to allow editing master english source terms
...
Original trunk commits rev-ids:
- 4855 qdp-launchpad@openerp.com-20130416091501-sgm3gdm80oxajahz
- 4856 qdp-launchpad@openerp.com-20130417121718-jfwi2f3gn0tum9xa
- 4857 qdp-launchpad@openerp.com-20130418114627-unmfdu6010hyc8xx
bzr revid: odo@openerp.com-20130703161520-mk0g187rpmmw6bdx
2013-07-03 18:15:20 +02:00
Cecile Tonglet
ad8b76de53
[MERGE] From trunk (second time)
...
bzr revid: cto@openerp.com-20121217144753-1rboqdw01h8yrehj
2012-12-17 15:47:53 +01:00
Xavier Morel
3ee178ab2c
[FIX] unnecessary backslashes
...
bzr revid: xmo@openerp.com-20121214132113-1ofmm5x0ua3l2q5d
2012-12-14 14:21:13 +01:00
Xavier Morel
c6079dd6bb
[REM] unnecessary parens
...
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00
Vo Minh Thu
509a084e79
[IMP] use the openerp namespace.
...
bzr revid: vmt@openerp.com-20121210152723-mv4dykfu6ip1991h
2012-12-10 16:27:23 +01:00
Fabien Meghazi
c71ce60400
[IMP] ir.translation, raise exception when trying to translate fields when no extra language is installed.
...
bzr revid: fme@openerp.com-20121106162753-6eqbhnwqhjgeun78
2012-11-06 17:27:53 +01:00
Vo Minh Thu
749ee11eb2
[MERGE] removed a few warnings.
...
bzr revid: vmt@openerp.com-20121022132759-64qupagcv9cdqnkq
2012-10-22 15:27:59 +02:00
Mayur Maheshwari (OpenERP)
e1dfd1fadc
[IMP]all: imporve string state to status
...
bzr revid: mma@tinyerp.com-20121012122419-mtiw3wpxlcbl4y1r
2012-10-12 17:54:19 +05:30
Twinkle Christian (OpenERP)
2f8236bdd1
[FIX]Fix warning:no translation for language en_US
...
bzr revid: tch@tinyerp.com-20121011090232-i0lo4eelz74seja9
2012-10-11 14:32:32 +05:30
Olivier Dony
550751b358
[IMP] translations: wip, remove unnecessary code, support loading PO comments and storing them, split ir.translation view data in separate XML file
...
bzr revid: odo@openerp.com-20120913142920-ggpeqth4s2wwqwd2
2012-09-13 16:29:20 +02:00
Olivier Dony
09ba29883c
[FIX] ir.translation: typo in last sync with trunk
...
bzr revid: odo@openerp.com-20120911135254-uqi1s4n8qh0e3d1y
2012-09-11 15:52:54 +02:00
Olivier Dony
9a577ef431
[MERGE] Sync with trunk
...
bzr revid: odo@openerp.com-20120911114104-vk8afbjq9ao1dqr2
2012-09-11 13:41:04 +02:00
Fabien Meghazi
6e5a9053e5
[FIX] Fixed remarks of merge proposal
...
bzr revid: fme@openerp.com-20120904133216-7v82tmcqi1n21c3f
2012-09-04 15:32:16 +02:00
Fabien Meghazi
06e6bf71cc
[IMP] Always update src to the last value
...
bzr revid: fme@openerp.com-20120903155408-9agsj0y8y6g7ydsj
2012-09-03 17:54:08 +02:00
Fabien Meghazi
8295b4f181
[IMP] ir.tranlsation#translate: create ir.translation entries for a particular record
...
bzr revid: fme@openerp.com-20120903124818-myjy2616uv3blyki
2012-09-03 14:48:18 +02:00
Fabien Meghazi
dc93500740
[MERGE] trunk
...
bzr revid: fme@openerp.com-20120903124618-vpe2erkcml7131gp
2012-09-03 14:46:18 +02:00
Fabien Meghazi
df557637d1
[ADD] ir.translation#translate()
...
bzr revid: fme@openerp.com-20120830161553-hmf4fbsnqd2dhq7z
2012-08-30 18:15:53 +02:00
Quentin (OpenERP)
46f287b2d1
[FIX] base, ir_translation: a write of '' as translated value should reset the translation in 'to_translate' state
...
bzr revid: qdp-launchpad@openerp.com-20120830145000-61uh1tpux5dyp7na
2012-08-30 16:50:00 +02:00
Jigar Amin - OpenERP
46604fccb5
[FIX] Impoved treanlstion state field conditions
...
bzr revid: jam@tinyerp.com-20120830115055-tf396grzw3f6olfz
2012-08-30 17:20:55 +05:30
Jigar Amin - OpenERP
9464f474a4
[FIX] State Condition
...
bzr revid: jam@tinyerp.com-20120828103859-jp22lgwzlucc55gl
2012-08-28 16:08:59 +05:30
Jigar Amin - OpenERP
a4dae41a49
[FIX] Removed the unused wrong code
...
bzr revid: jam@tinyerp.com-20120828101723-d6qdm3bqpx3gcqbe
2012-08-28 15:47:23 +05:30
Jigar Amin - OpenERP
d27721f480
[REN] Renamed the state field key value
...
bzr revid: jam@tinyerp.com-20120828101559-l2zbivjzlmu7baq2
2012-08-28 15:45:59 +05:30
Turkesh Patel (Open ERP)
402ba23000
[IMP] improved code to retun traslation in proper format from server
...
bzr revid: tpa@tinyerp.com-20120713065521-07a7qdfxfio673cq
2012-07-13 12:25:21 +05:30
Turkesh Patel (Open ERP)
bc76991e24
[IMP] improved code.
...
bzr revid: tpa@tinyerp.com-20120712132308-1qvurv572sxmsnqe
2012-07-12 18:53:08 +05:30
Turkesh Patel (Open ERP)
976944bce2
[IMP] improved code in module.py to load translation.
...
bzr revid: tpa@tinyerp.com-20120712095131-3tt25snidvafflhb
2012-07-12 15:21:31 +05:30
Turkesh Patel (Open ERP)
20646e9104
[IMP] move load function to the ir_translation.py
...
bzr revid: tpa@tinyerp.com-20120712093130-rcis1aamb7bbptdd
2012-07-12 15:01:30 +05:30
ajay javiya (OpenERP)
b592896f4b
[ADD]: Add state field for ir.translation
...
bzr revid: aja@tinyerp.com-20120712061740-4mo3l0d70wxthki2
2012-07-12 11:47:40 +05:30
Turkesh Patel (Open ERP)
4ea3ad65b2
[ADD] added module field in ir.translation and improved code for that.
...
bzr revid: tpa@tinyerp.com-20120712052111-5qq9noxd5vd9dlwv
2012-07-12 10:51:11 +05:30
Vo Minh Thu
f5db1d10ec
[IMP] openerp.addons.base: _logger with fully qualified module name.
...
bzr revid: vmt@openerp.com-20120124114730-24m0ftu1wbowg8a0
2012-01-24 12:47:30 +01:00
Raphael Collet
2661edacda
[MERGE] translations: import using lower-level sql (translations load about 6 times faster)
...
bzr revid: rco@openerp.com-20111223104824-fup1cjbjni1fsty1
2011-12-23 11:48:24 +01:00
Vo Minh Thu
842cb1ad41
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20111201153214-0iintvpp7crnr2jc
2011-12-01 16:32:14 +01:00
Olivier Dony
52eb2fae1c
[FIX] ir.translation: keywargs not supported when clearing caches
...
bzr revid: odo@openerp.com-20111129093800-4bsldbpjh1q4zix1
2011-11-29 10:38:00 +01:00
Numerigraphe - Lionel Sausin
9ed5cbb24c
[FIX] unmutable defaults in base addons.
...
bzr revid: ls@numerigraphe.fr-20111107151949-n9prrufvqe3ohz18
2011-11-07 16:19:49 +01:00
Olivier Dony
01e9e63423
[FIX] ir.translation: one more fix for ormcache_multi.clear_cache()
...
(Reported by Thibaut Dirlik)
bzr revid: odo@openerp.com-20110913174310-w79dgmybs59fb9xm
2011-09-13 19:43:10 +02:00
Olivier Dony
f59aaf7ca0
[FIX] ir.translation: second part of previous revision for fixing calls to ormcache_multi.clear_cache()
...
bzr revid: odo@openerp.com-20110909104046-ipysy6pi3iea38fu
2011-09-09 12:40:46 +02:00
Antony Lesuisse
78626b885c
[FIX] ir_translation _get_ids clear_cache is not multi
...
lp bug: https://launchpad.net/bugs/838864 fixed
bzr revid: al@openerp.com-20110909100709-kdqf4aibdr0flr4a
2011-09-09 12:07:09 +02:00
Olivier Dony
eab6a77a26
[IMP] ir.model.data: usability - rename `XML ID` -> `External ID`
...
bzr revid: odo@openerp.com-20110906075711-lev8g5tkfhc9j3c1
2011-09-06 09:57:11 +02:00
Antony Lesuisse
ef3935553c
[FIX] ir_translation cache invalidation
...
bzr revid: al@openerp.com-20110902155834-rmno5z7aavj71fk5
2011-09-02 17:58:34 +02:00
P. Christeas
f1558730f6
ir.translation, import: push the algo. to SQL, improve performance
...
At a language import (translation files), we want to push a big batch of
translation records into the database. These will need update-or-insert
logic (against existing ones) or even resolution of ir.model.data .
Doing this loop in Python had been slow (invoking 2x read()s, +1 for
ir.model.data, 1 insert or update), triggered the cache (fill and clean
at each iteration).
Instead, follow the old-school db recipe for mass records insertion:
- create a temporary table w/o indexes or constraints
- quickly populate the temp with all records of the batch
(through a dedicated "cursor" object)
- process the table, doing lookups in collective SQL queries (yes, SQL
is all about loops of data processing, efficiently)
- insert all records from temp into ir.model.data
- call (implicitly) all constraints of ir.model.data at the end of that
single query.
This improves performance of translation imports by ~3x at least.
bzr revid: xrg@linux.gr-20110608162059-rfy1vvwp8w66ry0i
2011-06-08 19:20:59 +03:00
Antony Lesuisse
759c3bb6d6
[MERGE] trunk
...
bzr revid: al@openerp.com-20110608153139-zsf80dcs108dqzcy
2011-06-08 17:31:39 +02:00
Vo Minh Thu
2d1f8c93dd
[MERGE] ir_translation: lang field selection only displays installed languages.
...
bzr revid: vmt@openerp.com-20110608145033-67n0g3g28pw91c9l
2011-06-08 16:50:33 +02:00