Martin Trigaux
85805282b6
[FIX] fields: when executing (4, *) operations on o2m fields, check the existence based on the sql model of the table.
...
If the o2m field linked to the o2m is stored on a different table (eg: model with _inherit), previous request would crash as the field do not exists in the '_table' sql table
bzr revid: mat@openerp.com-20140327111241-klftr0s8v8i68nxp
2014-03-27 12:12:41 +01:00
Launchpad Translations on behalf of openerp
391037db85
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140327081257-qru0hbrfsyepb2s2
bzr revid: launchpad_translations_on_behalf_of_openerp-20140327081313-vs355ra8b74c35d8
2014-03-27 08:13:13 +00:00
Denis Ledoux
c0103c387d
[MERGE][FIX] OPW 591344 : internal reports don't show images
...
Cleaner method, and shows images.
bzr revid: dle@openerp.com-20140326091529-g7rlqc8tfxlk5u3b
2014-03-26 10:15:29 +01:00
Martin Trigaux
33c6f108c0
[FIX] parent_model is null if local column
...
bzr revid: mat@openerp.com-20140324164334-pvzevi2bnmb642ak
2014-03-24 17:43:34 +01:00
Martin Trigaux
66d6fb065f
[FIX] fields: when executing (4, *) operations on o2m fields, check the existence based on the sql model of the table.
...
If the o2m field linked to the o2m is stored on a different table (eg: inherit), previous request would crash as the field do not exists in the '_table' sql table
bzr revid: mat@openerp.com-20140324162130-fyotk8vqmkha43eb
2014-03-24 17:21:30 +01:00
Launchpad Translations on behalf of openerp
7b0b8a0790
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140320061913-o2fp3m104dzeb2ky
bzr revid: launchpad_translations_on_behalf_of_openerp-20140321065115-srp2g1l3twjabmcq
2014-03-21 06:51:15 +00:00
Kersten Jeremy
903270996f
[FIX] Fix the yml test with option --test-file.
...
1 -
There was a confusing between kind and mode.
Due to the mode 'test', there are many part of code who was not executed.
The right value is kind='test', and arbitrary mode='init' (or 'update')
2 -
The yml test was always roolbacked, without check that command line had '--test-commit'.
It's has been fixed, now we check if param --test-commit is existing, else we roolback the transaction.
Rem for forward: function in trunk=saas-4 has been moved in : openerp/service/server.py - def load_test_file_yml
bzr revid: jke@openerp.com-20140319104847-6r2c70gapocn2wxq
2014-03-19 11:48:47 +01:00
Launchpad Translations on behalf of openerp
aba3459889
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140314065823-xdw7aa9ye4j200pp
bzr revid: launchpad_translations_on_behalf_of_openerp-20140314065836-tn2fv9smot0omj8f
2014-03-14 06:58:36 +00:00
Kersten Jeremy
90af5e0d3a
[FIX] Change password wizard: reload webclient after changing your own password. Because your session is dead after the changing !
...
bzr revid: jke@openerp.com-20140313181415-3rwlxhpevev3tlsq
2014-03-13 19:14:15 +01:00
Christophe Simonis
5873f0abe6
[FIX] add the logging handler only to the root logger. let the loggers propagate to allow more than one handler
...
bzr revid: chs@openerp.com-20140312171819-bnj3md07w4le2m7m
2014-03-12 18:18:19 +01:00
Martin Trigaux
8a3523cd97
[FIX] partner: backport of trunk revision 4882
...
When adding a new contact or a new company based from the partner form, use the customer value as default value (was doign it only for the supplier flag)
bzr revid: mat@openerp.com-20140311112341-9yoi1hf0ks98ju3r
2014-03-11 12:23:41 +01:00
Launchpad Translations on behalf of openerp
a4c27d560d
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140307072259-nwltzdp1dky79a3h
bzr revid: launchpad_translations_on_behalf_of_openerp-20140308065331-um114asu0v6l8y5e
bzr revid: launchpad_translations_on_behalf_of_openerp-20140311060830-c174n48jvgwwgvlo
bzr revid: launchpad_translations_on_behalf_of_openerp-20140311060854-j335qf61ll6hvrma
2014-03-11 06:08:54 +00:00
Richard Mathot (OpenERP)
6f99891b82
[REF] Use assertEqual method instead of assert instruction
...
bzr revid: rim@openerp.com-20140306112053-e0znv1g2378ghs46
2014-03-06 12:20:53 +01:00
Richard Mathot (OpenERP)
3c65ffc29f
[FIX] Test for ir_sequence:
...
This test was depending on the error string returned by postgresql.
As these strings are localized, the test was failing on systems
where posgresql locale was not set to 'en_US'.
In this new version, we now check the error code returned by postgresql
(which is, obviously, platform independent)
bzr revid: rim@openerp.com-20140306110356-72mgz3korkq3rkde
2014-03-06 12:03:56 +01:00
Launchpad Translations on behalf of openerp
e231045095
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140306061409-nvr56r44q6smklxz
bzr revid: launchpad_translations_on_behalf_of_openerp-20140305055718-w3c9kzsncncpu12w
bzr revid: launchpad_translations_on_behalf_of_openerp-20140306061519-n2qbjt3fe7l104aw
2014-03-06 06:15:19 +00:00
Martin Trigaux
63763dcc55
[IMP] readability
...
bzr revid: mat@openerp.com-20140305143050-zddqtyh7qg6lcx3q
2014-03-05 15:30:50 +01:00
Martin Trigaux
016a1ed37b
[FIX] orm: create a foreign key for the function fields of type many2one and store value
...
bzr revid: mat@openerp.com-20140305140514-2sksy3lwqm07wvjh
2014-03-05 15:05:14 +01:00
Olivier Dony
b79a33aefc
[FIX] orm.read_group: improve test coverage and corner case handling:
...
- allow leading spaces in orderby spec for m2o columns
- extra test for read_group on multiple columns
- proper handling of groupby on numeric column with default order
bzr revid: odo@openerp.com-20140304152927-havybom9x1jgdzae
2014-03-04 16:29:27 +01:00
Olivier Dony
27a1770e20
[FIX] orm.read_group: fix various issues introduced in recent commit, cleanup
...
Fixed the implementation of the sorting for inherited
columns, many2one columns, and aggregated columns.
Added corresponding tests with increased coverage of
the read_group() method.
bzr revid: odo@openerp.com-20140228173320-p8l0jc8op7xsgn1x
2014-02-28 18:33:20 +01:00
Launchpad Translations on behalf of openerp
4a6ba6f107
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140222073700-ln192h40jpgmjkzn
bzr revid: launchpad_translations_on_behalf_of_openerp-20140225062424-uzng6wm762r9e5y1
bzr revid: launchpad_translations_on_behalf_of_openerp-20140227063007-7dey6pyrhev19em4
bzr revid: launchpad_translations_on_behalf_of_openerp-20140301055121-idw71yvmfonj1mmz
2014-03-01 05:51:21 +00:00
Martin Trigaux
43df0b4d23
[MERGE] [FIX] orm: when generating xml ids for export, use the model of the exported field instead of the current model. Courtesy of Stefan Rijnhart (Therp).
...
bzr revid: mat@openerp.com-20140226133716-vgdjjmqc2lou0n3u
2014-02-26 14:37:16 +01:00
Launchpad Translations on behalf of openerp
bf51816215
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140225062406-g9e0edcgz29z4det
bzr revid: launchpad_translations_on_behalf_of_openerp-20140226073044-dmjdmn4cvpbgh806
2014-02-26 07:30:44 +00:00
Martin Trigaux
b9f72dae74
[FIX] orm: do not drop low level columns (aka 'magic columns') when deleting ir.model.fields
...
lp bug: https://launchpad.net/bugs/1262150 fixed
bzr revid: mat@openerp.com-20140224161918-9pe1x3jeno8t82p1
2014-02-24 17:19:18 +01:00
Launchpad Translations on behalf of openerp
b0d401d6e5
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140221063809-721gx6izacr4uc07
bzr revid: launchpad_translations_on_behalf_of_openerp-20140222073238-b28iwuxw1cp32fas
bzr revid: launchpad_translations_on_behalf_of_openerp-20140223074450-qijz5rsfsjahcgq0
bzr revid: launchpad_translations_on_behalf_of_openerp-20140224060308-psqz6bx89jpqt428
2014-02-24 06:03:08 +00:00
Martin Trigaux
9515daa3f8
[MERGE] [FIX] read_group: skip date(time) fields when generating the sql query, the monthly grouping is done afterward
...
lp bug: https://launchpad.net/bugs/1282485 fixed
bzr revid: mat@openerp.com-20140220103351-n3ohwombd1kk802f
bzr revid: mat@openerp.com-20140220145445-0xt7alp3uj0os1fz
2014-02-20 15:54:45 +01:00
Anael Closson
5e593b34d0
[FIX] orm: grouping of date and datetime conflicts ordering on dates with date and datetime - hotfix
...
bzr revid: acl@openerp.com-20140220135127-1hh7s6dx6p2wuhz9
2014-02-20 14:51:27 +01:00
Anael Closson
7080279bde
[FIX] incorrect handling of orderbys when generator for the groupby field generates more than one orderby clause item
...
bzr revid: acl@openerp.com-20140220095911-zd5j1ssjw0cwzzz2
2014-02-20 10:59:11 +01:00
Launchpad Translations on behalf of openerp
871b2dc73d
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140219053940-dvi4g7ajttoj6h9k
2014-02-19 05:39:40 +00:00
Martin Trigaux
e1dff48492
[MERGE] [FIX] orm: read_group doesn't take referenced fields or aggregated fields in account when sorting (opw 598942)
...
Sorting was done using a search on ids that where found in a custom SQL field,
only 1 record among aggregated records with same groupby value was used
when using search for ordering, resulting data ordered on
max(aggregated_data).field_value instead of sum(aggregated_data.field_value).
bzr revid: mat@openerp.com-20140218100929-qeg0rz1fmta2ni9y
2014-02-18 11:09:29 +01:00
Anael Closson
775ae7d728
[REF] removing useless comment
...
bzr revid: acl@openerp.com-20140218083045-aimu376msu052k5d
2014-02-18 09:30:45 +01:00
Anael Closson
90dcc00443
[FIX] OPW 598942 : orm read_group doesn't take referenced fields or aggregated fields in account when sorting
...
Sorting was done using a search on ids that where found in a custom SQL field,
only 1 record among aggregated records with same groupby value was used
when using search for ordering, resulting data ordered on
max(aggregated_data).field_value instead of sum(aggregated_data.field_value).
lp bug: https://launchpad.net/bugs/1060086 fixed
bzr revid: acl@openerp.com-20140217172926-ka2fw8t2l3cqi7h3
2014-02-17 18:29:26 +01:00
Anael Closson
f4f6bc3d9a
[REF] removing debug code
...
bzr revid: acl@openerp.com-20140217140705-b2erer6w4mxba3l7
2014-02-17 15:07:05 +01:00
Anael Closson
ac88131405
[IMP] Speed and quality improvement
...
- removing the need of the use of search when groupby is set on a relation
field.
- creation and use of dedicated helper method to compute the orderby clause
for easier reading
bzr revid: acl@openerp.com-20140217140144-2rm3o00g76tyhqxn
2014-02-17 15:01:44 +01:00
Launchpad Translations on behalf of openerp
5d2f1c68ac
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140216064134-tam102h50au851o1
bzr revid: launchpad_translations_on_behalf_of_openerp-20140215073800-2219ymc7ijxq57aa
bzr revid: launchpad_translations_on_behalf_of_openerp-20140216064223-17h9wz07b2siswzs
bzr revid: launchpad_translations_on_behalf_of_openerp-20140217060328-7qh928zk8ro30qzb
2014-02-17 06:03:28 +00:00
Martin Trigaux
c0308d7522
[MERGE] [FIX] databases list: allow to have entries with unicode char in the database list (opw 589765)
...
This does not allow to use a database with unicode to run openerp but does not fail (was getting an empty list of existing databases)
bzr revid: mat@openerp.com-20140214144444-0tjcz14rhlw94i50
2014-02-14 15:44:44 +01:00
Martin Trigaux
7b41032e2a
[IMP] move test on property fields to his own test class
...
bzr revid: mat@openerp.com-20140213133254-ahzac9o009su3d2x
2014-02-13 14:32:54 +01:00
Martin Trigaux
e201ea3190
[ADD] tests checking the properties fields are not overwritten by changes in parent companies
...
bzr revid: mat@openerp.com-20140213131009-25knm17hie7uzeko
2014-02-13 14:10:09 +01:00
Martin Trigaux
21842a4fc4
[MERGE] sync with 7.0 (getting needed orm revision)
...
bzr revid: mat@openerp.com-20140213130150-9ltjazqiru5apv5k
2014-02-13 14:01:50 +01:00
Martin Trigaux
ff389d8478
[FIX] remove useless cr.commit in fields creation
...
This is require to be able to create revertable tests adding new fields
bzr revid: mat@openerp.com-20140213120349-a0p3bist5l5uyg6b
2014-02-13 13:03:49 +01:00
Martin Trigaux
3668f09108
[IMP] avoid changing the API by passing the company_id in context
...
bzr revid: mat@openerp.com-20140213100836-wte9zec4easb0cmw
2014-02-13 11:08:36 +01:00
Martin Trigaux
6f8811e7f6
[MERGE] sync with 7.0
...
bzr revid: mat@openerp.com-20140213095713-b1ys0nu8u7o8ybyr
2014-02-13 10:57:13 +01:00
Launchpad Translations on behalf of openerp
e2d3fa0a40
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140213064711-5yclxgkdvqsqbldv
2014-02-13 06:47:11 +00:00
Martin Trigaux
94b3b0d6f6
[FIX] image tools: do not crop an image when resizing it, use reduce the size instead and add transparency background (opw 593992)
...
bzr revid: mat@openerp.com-20140212155104-zc6hhkzqw6711e9m
2014-02-12 16:51:04 +01:00
Launchpad Translations on behalf of openerp
c438e6e8a9
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140211064034-ghuxxk02n715othj
bzr revid: launchpad_translations_on_behalf_of_openerp-20140212062254-0hbn6k9636zlrg4k
2014-02-12 06:22:54 +00:00
Martin Trigaux
e328c0a40e
[FIX] html_sanitize: partial backport of trunk revision 5047.
...
Unescape elements that have been wrongly escaped.
Some elements (eg: 'href' tag in links) are sanitised in templates which prevents the execution of mako templates.
lp bug: https://launchpad.net/bugs/1273251 fixed
bzr revid: mat@openerp.com-20140210144023-9sp8cqn07ta5o64y
2014-02-10 15:40:23 +01:00
Launchpad Translations on behalf of openerp
8d85c23e4a
Launchpad automatic translations update.
...
bzr revid: launchpad_translations_on_behalf_of_openerp-20140209065003-9soyulgvssk8n5ci
bzr revid: launchpad_translations_on_behalf_of_openerp-20140208071621-b018rnkhyxmmm5jk
bzr revid: launchpad_translations_on_behalf_of_openerp-20140209065224-kih7tx56elds0zok
bzr revid: launchpad_translations_on_behalf_of_openerp-20140210055324-raxopm5ej680oc73
2014-02-10 05:53:24 +00:00
Olivier Dony
391872c4d6
[FIX] orm.copy_data: avoid reading useless and possibly expensive data when copying records
...
Rather than reading the data and discarding it,
it is much faster to not read it in the first place.
bzr revid: odo@openerp.com-20140206170401-brd6368pe1fmbkkc
2014-02-06 18:04:01 +01:00
Olivier Dony
7c53d8c2d1
[FIX] base: avoid keeping password wizards in the database longer than necessary
...
This patch deletes the wizard lines rather than
the wizard record itself, to avoid errors in case
the client reloads the wizard data before actually
closing it.
lp bug: https://launchpad.net/bugs/1271165 fixed
bzr revid: odo@openerp.com-20140206164559-j0j9o30im0u2hl2g
2014-02-06 17:45:59 +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
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