Christophe Matthieu
db028dc09a
[MERGE] tools mail: Return the initial variable if is false or if is not an instance of basestring. Remove encoding attribute in html tags.
...
bzr revid: chm@openerp.com-20121221083527-py3wr2syz5d8igv8
2012-12-21 09:35:27 +01:00
Antony Lesuisse
549c011893
[MERGE] turnk
...
bzr revid: al@openerp.com-20121220020708-ioiaoz58ncgw5wg7
2012-12-20 03:07:08 +01:00
Christophe Matthieu
bf11573436
[IMP] tools mail: encoding : add test for removing encoding attribute
...
bzr revid: chm@openerp.com-20121219143912-os160iv0q0jeyhld
2012-12-19 15:39:12 +01:00
Christophe Matthieu
a31af13a3e
[IMP] tools mail: add test message with xml and doctype tags don't crash
...
bzr revid: chm@openerp.com-20121219111853-zj16hdg7ujakksqt
2012-12-19 12:18:53 +01:00
Cecile Tonglet
5f0070dcb6
[FIX] Remove unused imports and fix some imports that doesn't use the new namespace
...
bzr revid: cto@openerp.com-20121217143029-e9ki4ftwihq7pdme
2012-12-17 15:30:29 +01:00
Raphael Collet
eecc7de437
[MERGE] trunk-acl-thu (check read/write access restrictions on fields with a groups attribute)
...
bzr revid: rco@openerp.com-20121217101528-nt5hsjvvodaap57m
2012-12-17 11:15:28 +01:00
Antony Lesuisse
9568552636
revert test change will be moved to an other branch
...
bzr revid: al@openerp.com-20121216193932-foluon7b5bqqvrib
2012-12-16 20:39:32 +01:00
Antony Lesuisse
70aa2c995a
filestore testcase and fix bugs
...
bzr revid: al@openerp.com-20121216190317-xoz0jij2cfk0c2zk
2012-12-16 20:03:17 +01:00
Antony Lesuisse
2569587c90
Simplify openerp testing, deprecated redondant test declaration, we feed all
...
tests.* modules to unittest2.TestLoader.loadTestsFromModule(module)
bzr revid: al@openerp.com-20121216173856-euntlfi80uzutkp0
2012-12-16 18:38:56 +01:00
Vo Minh Thu
eb0fcc35d2
[FIX] check_field_access_rights: ignore nonexisting fields
...
It seems name_alias is requested but does not exist.
bzr revid: vmt@openerp.com-20121212151509-22494edob4e3fqaf
2012-12-12 16:15:09 +01:00
Vo Minh Thu
1a4fd71880
[FIX] test_fields: _all_columns must be modified similarly to _columns.
...
(Because of the newly added method check_field_access_rights().)
bzr revid: vmt@openerp.com-20121212134755-ykfdykqepwzti5uf
2012-12-12 14:47:55 +01:00
Vo Minh Thu
9d2afcae3f
[IMP] orm: check groups-based access rights on model fields in read() and write().
...
The commented-out tests present in test_acl.py now pass.
Other tests now fail :-(.
bzr revid: vmt@openerp.com-20121212113647-11y3buulifg6tyhj
2012-12-12 12:36:47 +01:00
Christophe Simonis
ea542472c9
[FIX] res.partner: column "address" does not exists anymore.
...
bzr revid: chs@openerp.com-20121211184624-b7v3ffn0jsoa1jbq
2012-12-11 19:46:24 +01:00
Vo Minh Thu
055f46f290
[IMP] tests: add test_acl to the openerp.tests suite.
...
bzr revid: vmt@openerp.com-20121211122844-6y060gex2lbq76hp
2012-12-11 13:28:44 +01:00
Thibault Delavallée
50cf6d4008
[CLEAN] Query: cleaned a bit the code. All joins now goes through the same method, either implicit or explicit. Will have to be upgraded in future versions, but at least this is a bit centralized. Updated ORM accordingly. Updated tests. Added a get_alias_from_query method in expression that find the table and the alias from a 'full alias' statement.
...
bzr revid: tde@openerp.com-20121207154204-mx036lpj3vdclu77
2012-12-07 16:42:04 +01:00
Thibault Delavallée
efc6e78d25
[IMP] [MOV] Moved test_osv and test_translate from unchecked test directory to tests, to be now effectively run. Updated test_osv to matche the new alias coding style.
...
bzr revid: tde@openerp.com-20121207142931-6ll5yduitdk3ijes
2012-12-07 15:29:31 +01:00
Thibault Delavallée
9e6c2805ab
[REF] [IMP] expression.parse: refactored the main parsing loop, now using source and result stacks. Leaf elements are encapsulated into a specific object, allowing to delegate the join condition formation and aliases generation, as well as working_table management to them. The main parsing loop is now a loop taking a leaf, doing one action on it, and putting the result back to be analyzed or in the results. This allows to avoid having while loops inside a main while loop with some weird corner effects.
...
bzr revid: tde@openerp.com-20121204142650-gkhmjdeu5upi25kp
2012-12-04 15:26:50 +01:00
Fabien Meghazi
69a09cc2fb
[FIX] Ensure timzone is unset before testing
...
bzr revid: fme@openerp.com-20121128174318-wg0oygtj3eipozp2
2012-11-28 18:43:18 +01:00
Christophe Matthieu
50f09660fb
[FIX] tools mail: html_email_clean return False (standard OpenERP) if the param is False
...
bzr revid: chm@openerp.com-20121120134001-ivw9dqxha2du70o6
2012-11-20 14:40:01 +01:00
Christophe Matthieu
ceefb58670
[IMP] tools mail: remove one line test (double)
...
bzr revid: chm@openerp.com-20121120100225-it12j6qgxjn3ilbg
2012-11-20 11:02:25 +01:00
Christophe Matthieu
f8a44b2bac
[FIX] tools.mail: html_email_clean test type and value of empty value
...
bzr revid: chm@openerp.com-20121119152615-sazfnlc5uwiw0ut9
2012-11-19 16:26:15 +01:00
Christophe Matthieu
a4b831e3ed
[FIX] tools.mail: html_email_clean test type of empty value
...
bzr revid: chm@openerp.com-20121119152446-w1z1vuhfk631h0ko
2012-11-19 16:24:46 +01:00
Christophe Matthieu
b4dc178588
[IMP] tools.mail: add a test for html_email_clean function, if empty string
...
bzr revid: chm@openerp.com-20121119151739-vcofz0abk7i71b3l
2012-11-19 16:17:39 +01:00
Vo Minh Thu
35ec3e6d5b
[IMP] test_limits/test_uninstall: added access rules.
...
bzr revid: vmt@openerp.com-20121116131439-y14dekyogidxymof
2012-11-16 14:14:39 +01:00
Vo Minh Thu
8846c8e67b
[IMP] test_exceptions/test_impex: added access rules.
...
bzr revid: vmt@openerp.com-20121116100505-9uakbl4klbkaz95k
2012-11-16 11:05:05 +01:00
Vo Minh Thu
147fae832a
[FIX] test_db_cursor: explicitely close the cursor (without relying on __del__).
...
bzr revid: vmt@openerp.com-20121115123937-keq4eb2a3n85x0rv
2012-11-15 13:39:37 +01:00
Vo Minh Thu
08a2115754
[IMP] removing some warnings (those one are generated by tests).
...
bzr revid: vmt@openerp.com-20121115115759-toz6g9jcephwxmin
2012-11-15 12:57:59 +01:00
Thibault Delavallée
f0569f7133
[MERGE] Tools: mail.py: (E)Mail management
...
Refactored a bit openerp/tools about (e)mails and html.
- moved some (e)mail related functions from misc to mail
- moved html_sanitizer into mail
- added html_email_clean, to clean incoming emails (remove quotes, signature)
- added a plaintext2html function, to convert plaintext into html (\n and \r are replaced by <br/>, more than two <br/> are replaced by end and beginning of paragraphs)
- append_content_to_html now uses plaintext2html, according to some new flags
- added tests for html_email_clean, plaintext2html, updated test for append_content_to_html, html_sanitize
bzr revid: tde@openerp.com-20121114150442-4rpfdy9spm1ig0qw
2012-11-14 16:04:42 +01:00
Thibault Delavallée
8e15ab0dff
[FIX] Typo in tests.
...
bzr revid: tde@openerp.com-20121114135159-nouaj72drtot5hiv
2012-11-14 14:51:59 +01:00
Thibault Delavallée
cbf3c82e88
[IMP] tools: added a true test for html_sanitize, some function renaming.
...
bzr revid: tde@openerp.com-20121114103849-hbxni04dpog1fxju
2012-11-14 11:38:49 +01:00
Thibault Delavallée
d52fdd0ab3
[MERGE] Sync with trunk.
...
bzr revid: tde@openerp.com-20121112160536-63tx1u3c6yr2u8x9
2012-11-12 17:05:36 +01:00
Xavier Morel
be03940d64
[FIX] temperate error message in case of missing required field
...
The message worked (ish) for a missing field directly on the model,
but completely broke if the missing field was on an o2m and had the
same name as a field on the model, then it was complete
misinformation.
bzr revid: xmo@openerp.com-20121112084804-zcgtpml3a19uv909
2012-11-12 09:48:04 +01:00
Olivier Dony
fd6946f24a
[IMP] orm: make error handling more consistent when accessing deleted/filtered records
...
Previous behavior was unspecified and untested - leading to random results
when performing operations on a mix of deleted and ir.rule-filtered records.
The behavior is now clarified and explicitly tested.
One suprising case remains: read() on a deleted record
returns an empty result instead of raising an error,
in order to avoid spurious errors when a client
performs a sequence of search(), read() while
another user is deleting records.
bzr revid: odo@openerp.com-20121109171451-z2m6oqs910103lcz
2012-11-09 18:14:51 +01:00
Olivier Dony
b298dc4570
[FIX] tests.common: make ref() and browse_ref() work for TransactionCase as well + update tests
...
bzr revid: odo@openerp.com-20121109170826-jaer3j0p47uq37np
2012-11-09 18:08:26 +01:00
Thibault Delavallée
62c419e66f
[IMP] tools: mail: improved append_content_to_html, including plaintext2html. Updated tests.
...
bzr revid: tde@openerp.com-20121109123521-e04g4zrhtv947l1r
2012-11-09 13:35:21 +01:00
Olivier Dony
76b031cfd4
[IMP] ir_filters: add test for updating global default filter - to complete the over-coverage
...
bzr revid: odo@openerp.com-20121108092907-e7cmjz4w4wn5u085
2012-11-08 10:29:07 +01:00
Thibault Delavallée
e6a9084677
[IMP] tools: added text2html function, basically turning plaintext into html. Added a test for this function. Updated signature for demo data.
...
bzr revid: tde@openerp.com-20121107164117-2caoqna2aclzowpk
2012-11-07 17:41:17 +01:00
Xavier Morel
59301c655f
[MERGE] from server
...
bzr revid: xmo@openerp.com-20121107111011-9q0c8kbuype5a8l6
2012-11-07 12:10:11 +01:00
Thibault Delavallée
4d89845de6
[IMP] tools: tests: cleaner: cleaned a bit test data. Will have to be improved.
...
bzr revid: tde@openerp.com-20121107093201-s0pco15msilt4erz
2012-11-07 10:32:01 +01:00
Thibault Delavallée
56b0b518a2
[IMP] tests: moved append_to_html into right test file. Added basic struct and templates for testing html_email_clean.
...
bzr revid: tde@openerp.com-20121106121824-wb8qf9snma7qffqe
2012-11-06 13:18:24 +01:00
Thibault Delavallée
207675a174
[REN] html_sanitize -> mail, to have a central file for methods about mail (html sanitizing, html management, emails related functions, ...).
...
bzr revid: tde@openerp.com-20121106115420-1h8mvzohol9zjysa
2012-11-06 12:54:20 +01:00
Xavier Morel
9037ca4480
[FIX] test data: duplicating existing demo data crimps my style
...
bzr revid: xmo@openerp.com-20121106093237-vsbo2l5pjup42frp
2012-11-06 10:32:37 +01:00
Xavier Morel
18f885b10f
[FIX] recursive conversion of o2ms in import
...
added new test cases from gkr
bzr revid: xmo@openerp.com-20121106084206-1cckepflh9h4g1yv
2012-11-06 09:42:06 +01:00
Raphael Collet
401dd57f30
[MERGE] from trunk
...
bzr revid: rco@openerp.com-20121105083756-jdr9fxp32djpifqk
2012-11-05 09:37:56 +01:00
Olivier Dony
ec7b097036
[MERGE] Sync with trunk
...
bzr revid: odo@openerp.com-20121031154418-lfx7sywca2v2mcei
2012-10-31 16:44:18 +01:00
Olivier Dony
51f2422b41
[IMP] tests.common: improved docstring for ref() and browse_ref()
...
bzr revid: odo@openerp.com-20121031152149-73pxpymjf1yz5xqi
2012-10-31 16:21:49 +01:00
Olivier Dony
43513d7ccc
[ADD] tests.common: added testcase for ref() and browse_ref(), renaming existing test file to make it more generic
...
bzr revid: odo@openerp.com-20121031152011-gyih3j9itbgfauwv
2012-10-31 16:20:11 +01:00
Stéphane Bidoul
2aee5380eb
[IMP] ref and browse_ref helpers on openerp.tests.common.BaseCase
...
bzr revid: stephane.bidoul@acsone.eu-20121031103027-2sozmbi3z7bkr22q
2012-10-31 11:30:27 +01:00
Vo Minh Thu
c902eb4539
[DOC] openerp.tests.common: now included in the test-framework page.
...
bzr revid: vmt@openerp.com-20121030113737-10h045k368pbrldq
2012-10-30 12:37:37 +01:00
Raphael Collet
ba9a47a771
[MERGE] from trunk
...
bzr revid: rco@openerp.com-20121029155310-14mmqsq7sjrwi4bt
2012-10-29 16:53:10 +01:00
Raphael Collet
7e7d877e17
fields.related: simplify read and write methods
...
bzr revid: rco@openerp.com-20121029153504-157ss9948o86uv6z
2012-10-29 16:35:04 +01:00
Raphael Collet
42f0962f99
[MERGE] from trunk
...
bzr revid: rco@openerp.com-20121029153047-sd8i97sfkdy1wcb1
2012-10-29 16:30:47 +01:00
Vo Minh Thu
3ffc363cd2
[IMP] tests: added a whole-class setup/teardown base class to tests/common.
...
bzr revid: vmt@openerp.com-20121029142302-ug3phcx3c26cxd91
2012-10-29 15:23:02 +01:00
Jigar Amin
4e35350f3c
[MERGE] Sync with trunk
...
bzr revid: jam@tinyerp.com-20121017043806-3z0d69nqzy9v3ojr
2012-10-17 10:08:06 +05:30
Vo Minh Thu
a3cef23827
[MERGE] Make sure we pass only lists, tuples or dicts to Cursor.execute().
...
This fixes a call in the login code where a single untupled string was passed.
Psycopg does not see the problem: it iterates over the string, and as long as
the string length matches the number of needed parameters, everything seems
fine. Yeah for dynamic typing and SQL queries.
bzr revid: vmt@openerp.com-20121016125408-q537r71k5cisyxs0
2012-10-16 14:54:08 +02:00
Raphael Collet
ae0a437aa6
[FIX] tests: add missing test
...
bzr revid: rco@openerp.com-20121015101849-hf7pyxjzkbxd4tgf
2012-10-15 12:18:49 +02:00
Raphael Collet
11051f32e0
[FIX] res_users.login: fix query parameters in cr.execute
...
bzr revid: rco@openerp.com-20121015100148-pkanx35vr6fqojuj
2012-10-15 12:01:48 +02:00
Twinkle Christian (OpenERP)
7bef5e5162
[FIX]fix test case warning
...
bzr revid: tch@tinyerp.com-20121012061035-xfuez2o9x9k1m5r4
2012-10-12 11:40:35 +05:30
Xavier Morel
7a7876d4a8
[MERGE] from trunk
...
bzr revid: xmo@openerp.com-20121010154605-u16f57fnck148ued
2012-10-10 17:46:05 +02:00
Xavier Morel
510eea5305
[CHG] make empty cells clear out the corresponding field on import, rather than skip them
...
bzr revid: xmo@openerp.com-20121009092519-ge86yp3nnkqe9gic
2012-10-09 11:25:19 +02:00
Xavier Morel
10345423b1
[FIX] treat imported datetime as local to the context-provided or user's datetime
...
bzr revid: xmo@openerp.com-20121009085446-obfpn4c5r250zonc
2012-10-09 10:54:46 +02:00
Xavier Morel
00c7d9f4c0
[FIX] incorrect views spec in relational fields 'more info' action, spotted by odo
...
bzr revid: xmo@openerp.com-20121008132054-y57mg2rhxg6hkx2s
2012-10-08 15:20:54 +02:00
Raphael Collet
6c8756a5a2
[IMP] test_orm: add test for create with given inherited ancestor
...
bzr revid: rco@openerp.com-20121005115619-l9qsoofumwrs5kle
2012-10-05 13:56:19 +02:00
Raphael Collet
40265731a0
[IMP] tests: add tests on model inheritance (_inherits)
...
bzr revid: rco@openerp.com-20121005101138-ifaon35nmytviu24
2012-10-05 12:11:38 +02:00
Xavier Morel
1a54bd9e4b
[FIX] import tests pertaining to failing to link a relational subfield by id, xid or name
...
bzr revid: xmo@openerp.com-20121004152936-wsbwa4wbw9rii1an
2012-10-04 17:29:36 +02:00
Xavier Morel
67a9cf851c
[IMP] use moreinfo key to provide more info as to what the boolean and date value should look like
...
bzr revid: xmo@openerp.com-20121004123237-p5ht1uozaobxn8b7
2012-10-04 14:32:37 +02:00
Xavier Morel
e77fad774b
[IMP] error messages for datetime error
...
bzr revid: xmo@openerp.com-20121004115822-54mzaeqi05h0p4ve
2012-10-04 13:58:22 +02:00
Xavier Morel
601568f5f9
[FIX] don't import empty cells at all rather than set them to False, to allow defaults handling to do its job before actually creating the record
...
bzr revid: xmo@openerp.com-20121004064215-fqgir3ovmte2v438
2012-10-04 08:42:15 +02:00
Xavier Morel
b9b19f61ea
[FIX] if a selection label is empty, return the value in a selection import message
...
bzr revid: xmo@openerp.com-20121003115949-sgsouhcmboascjbl
2012-10-03 13:59:49 +02:00
Xavier Morel
1e4a677f05
[MERGE] from trunk
...
bzr revid: xmo@openerp.com-20121010154436-wz29sdkbs9vvhjba
2012-10-10 17:44:36 +02:00
Xavier Morel
aed20ca5d7
[FIX] conversion and validation of date and datetime field imports
...
bzr revid: xmo@openerp.com-20121001134330-za8hqctrghmw08i4
2012-10-01 15:43:30 +02:00
Xavier Morel
84332d8aad
[FIX] type error when providing a non-integer for a default database id
...
bzr revid: xmo@openerp.com-20121001130530-yf6pzuxdi3s09tji
2012-10-01 15:05:30 +02:00
Xavier Morel
def7e61901
[IMP] reimplement BaseModel.import_data on top of BaseModel.load
...
adapt tests to assert the corrected behavior of load instead of import_data's broken behavior
bzr revid: xmo@openerp.com-20120927154244-e56ygz2yytullg2l
2012-09-27 17:42:44 +02:00
Xavier Morel
87af7a6365
[FIX] replace warnings capture by explicitly returning a list of warnings from converters
...
makes converter code noisier, but ultimately simpler without having access to dynamically scoped variables
bzr revid: xmo@openerp.com-20120927144341-j1dx3e0epf3i5ja6
2012-09-27 16:43:41 +02:00
Xavier Morel
f39730e918
[FIX] make conversion errors for floats and integers more predictable
...
Python turns out to have changed the wording of the messages between 2.6 and 2.7
also, these messages need to be translatable *and* use the human-readable field name
bzr revid: xmo@openerp.com-20120927103452-cvgv3e8dsvcvnics
2012-09-27 12:34:52 +02:00
Xavier Morel
9a721eba32
[ADD] forgotten test file
...
bzr revid: xmo@openerp.com-20121010153849-h91mv2dzjk6i0n55
2012-10-10 17:38:49 +02:00
Xavier Morel
d5c69fa87e
[FIX] use lists instead of iterators in BaseModel._extract_records
...
* although it does use an explicit external index, it turns out the
code is less complex
* the rewrapping of (many) iterators on top of one another ended up
blowing Python's stack during ``next`` calls, which Python does
*not* like
* added a 900-ish import test file to check for these things
bzr revid: xmo@openerp.com-20120925135955-oielhopegnefyctm
2012-09-25 15:59:55 +02:00
Xavier Morel
359b4a44aa
[ADD] ability to convert postgres error messages to human-readable ones
...
also convert 'violates not-null constraint' to something about fields being required
bzr revid: xmo@openerp.com-20120925100232-bfmxcxda65cki5kv
2012-09-25 12:02:32 +02:00
Xavier Morel
e6c8f1739a
[ADD] 'more info' action to m2o, o2m and m2m linking failures
...
bzr revid: xmo@openerp.com-20120925074256-18puerjbfo3om265
2012-09-25 09:42:56 +02:00
Xavier Morel
9f2e7ba7ef
[IMP] return a dict from Model.load for easier future extensibility (if needed) rather than a tuple.
...
also easier/cleaner to unpack on the JS side
bzr revid: xmo@openerp.com-20120924151502-4robe639ctpuvb94
2012-09-24 17:15:02 +02:00
Xavier Morel
f143902d1a
[IMP] allow converters to add data to import messages, formalize message keys
...
bzr revid: xmo@openerp.com-20120924150417-c2y7g7vdsfz66363
2012-09-24 17:04:17 +02:00
Xavier Morel
877e21ffde
[IMP] return fields_get-style translated field strings (if available) in user-readable warning and error messages from import, rather than logical field names
...
bzr revid: xmo@openerp.com-20120924105230-1b7157xbruy2e5zr
2012-09-24 12:52:30 +02:00
Xavier Morel
a9bc82c46d
[IMP] translation tests, translated acceptable values for boolean fields
...
bzr revid: xmo@openerp.com-20120920150443-l9lna4bnkta7n2o8
2012-09-20 17:04:43 +02:00
Xavier Morel
fdba99aaeb
[ADD] inline o2m LINK_TO (m2m-style)
...
bzr revid: xmo@openerp.com-20120920110914-hy2rtivhn9cs5wuc
2012-09-20 13:09:14 +02:00
Xavier Morel
8e841cd8f7
[FIX] non-linking o2m tests, corresponding code
...
bzr revid: xmo@openerp.com-20120920105612-03ifizt2iv08tdhz
2012-09-20 12:56:12 +02:00
Xavier Morel
c9e0cfd64a
[ADD] force linking to existing o2m being updated
...
bzr revid: xmo@openerp.com-20120920102545-30tkodb4s1dng5hp
2012-09-20 12:25:45 +02:00
Xavier Morel
9805c665c8
[ADD] big bit on new import: pretty much everything but o2m
...
bzr revid: xmo@openerp.com-20120919114047-w4paoim95oxr91zb
2012-09-19 13:40:47 +02:00
Jigar Amin - OpenERP
8bc99d3e73
[merge] lp:openobject-server
...
bzr revid: jam@tinyerp.com-20120912043551-p3i8s7vllmal237j
2012-09-12 10:05:51 +05:30
Stephane Wirtel
c735a2c0ec
[MERGE] report & netrpc protocol: Use the cPickle 2.0 protocol and clean the code of report
...
bzr revid: stw@openerp.com-20120911091836-ac0wdxqslcwwbku6
2012-09-11 11:18:36 +02:00
Stephane Wirtel
f55028de4d
[MERGE] server: remove unused imports (Thanks to Florent Xicluna)
...
bzr revid: stw@openerp.com-20120910144609-ad3gupkf3oseb8yy
2012-09-10 16:46:09 +02:00
Raphael Collet
e70aac8daf
[MERGE] from trunk
...
bzr revid: rco@openerp.com-20120910125616-9j8nj0spxr2wt83l
2012-09-10 14:56:16 +02:00
Raphael Collet
67003bd76f
[FIX] method resolve_2many_commands and its tests
...
bzr revid: rco@openerp.com-20120907122857-4dro8up51ypx0cr5
2012-09-07 14:28:57 +02:00
Twinkle Christian (OpenERP)
6acf8ed15d
[IMP]Remove serverwarning
...
bzr revid: tch@tinyerp.com-20120907060555-554i3iemfwfh6lwt
bzr revid: tch@tinyerp.com-20120907120804-e4z6k6iuzukaipz2
2012-09-07 17:38:04 +05:30
Raphael Collet
3b3279c77e
[FIX] orm: adapt tests of method resolve_2many_commands
...
bzr revid: rco@openerp.com-20120907104448-9b9aeenmqz5m5du2
2012-09-07 12:44:48 +02:00
Raphael Collet
f4945c2fc7
[IMP] orm: fix and generalize method resolve_o2m_commands_to_record_dicts (now named resolve_2many_commands)
...
bzr revid: rco@openerp.com-20120906144836-v2ye3o8n12iir84b
2012-09-06 16:48:36 +02:00
Xavier Morel
1e834fb029
[ADD] test for retarded behavior when importing o2m _rec_name
...
bzr revid: xmo@openerp.com-20120906153941-qynzx3minrxpz82t
2012-09-06 17:39:41 +02:00
Olivier Dony
efa0f9b263
[IMP] html_sanitize: attempt to make slightly more pythonic/readable + re-enable test. Proper review + test still needed.
...
bzr revid: odo@openerp.com-20120905225746-npjjzy1w00k05vtc
2012-09-06 00:57:46 +02:00
Olivier Dony
8e96d71bf3
[MERGE] sync with trunk
...
bzr revid: odo@openerp.com-20120905072646-m4269m97ej1oicoq
bzr revid: odo@openerp.com-20120905220158-ulg8jy5alny97ff3
2012-09-06 00:01:58 +02:00
niv-openerp
8d1e3d06ab
[IMP] removed dependency to pyquery
...
bzr revid: nicolas.vanhoren@openerp.com-20120905153212-0gi1wjhf9m4xtnml
2012-09-05 17:32:12 +02:00
niv-openerp
29a9316566
[REVERT] 4394, because Thu is stupid
...
bzr revid: nicolas.vanhoren@openerp.com-20120905145703-7t8uiyqur0l16n2b
2012-09-05 16:57:03 +02:00
Thibault Delavallée
1f84036086
[MERGE] Merged with server/trunk.
...
bzr revid: tde@openerp.com-20120904075105-ljg3lgn6tf958kvd
2012-09-04 09:51:05 +02:00
Vo Minh Thu
f3742f0558
[FIX] test_ir_sequence: reduce the number of call to next() (to reduce test time).
...
bzr revid: vmt@openerp.com-20120903145929-p4kp6eotkcflletk
2012-09-03 16:59:29 +02:00
Olivier Dony
d37745559e
[ADD] tools.misc: new function append_to_html, can be used to inject blocks (html or plaintext) to existing HTML snippets
...
bzr revid: odo@openerp.com-20120831132337-of2p1wlh5l4lpvez
2012-08-31 15:23:37 +02:00
Vo Minh Thu
079b425d11
[FIX] tests: allow running the tests when installing a database created by XML-RPC.
...
bzr revid: vmt@openerp.com-20120822134820-pevo06jwrhm8unui
2012-08-22 15:48:20 +02:00
Christophe Simonis
d9a869c925
[FIX] remove loggging for test "test_out_of_range" of "test_impex" module
...
bzr revid: chs@openerp.com-20120822122123-h3zmh55aw7zwtep4
2012-08-22 14:21:23 +02:00
Christophe Simonis
d3fcdb2ac7
[FIX] sequence testing
...
bzr revid: chs@openerp.com-20120822105552-ieex9esjg5wwke8q
2012-08-22 12:55:52 +02:00
Vo Minh Thu
ae4852f597
[IMP] html_sanitize: remove dependency on pyquery.
...
Relying on pyquery is unnecessary (using etree alone is enough). This patch
reimplements the html_sanitize() function without pyquery. The new
implementation still goes through the provided test suite with success.
bzr revid: vmt@openerp.com-20120816104540-9374llhzde54h2vz
2012-08-16 12:45:40 +02:00
niv-openerp
1885387ace
[IMP] added html field
...
bzr revid: nicolas.vanhoren@openerp.com-20120814130656-4pa91mud8u30mqr5
2012-08-14 15:06:56 +02:00
niv-openerp
63ae87fb4c
Fixed encoding problems
...
bzr revid: nicolas.vanhoren@openerp.com-20120814121425-jq3ieebbsa7rcds5
2012-08-14 14:14:25 +02:00
niv-openerp
cfaeed1581
Removed print in test
...
bzr revid: nicolas.vanhoren@openerp.com-20120814071457-hw8d5yp6xzporiuo
2012-08-14 09:14:57 +02:00
niv-openerp
dc170d1a9a
Added protection against javascript in <a>
...
bzr revid: nicolas.vanhoren@openerp.com-20120813155205-uohwb39ejn66bgmv
2012-08-13 17:52:05 +02:00
Vo Minh Thu
7a0abed231
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20120813142443-73d6zm10bqhm17mp
2012-08-13 16:24:43 +02:00
niv-openerp
e5fb45a329
First working version of the html sanitizer
...
bzr revid: nicolas.vanhoren@openerp.com-20120813142232-xn7h0ov7mb3pls4o
2012-08-13 16:22:32 +02:00
Vo Minh Thu
b0abe3a595
[MERGE] impex tests: added test module to unittest import/export.
...
bzr revid: vmt@openerp.com-20120810134544-f08mjga83ghlmnp7
2012-08-10 15:45:44 +02:00
Twinkle Christian (OpenERP)
ea594186db
[IMP]Remove type field from the remaining views.
...
bzr revid: tch@tinyerp.com-20120808110619-81svoatrfn8oyv2o
2012-08-08 16:36:19 +05:30
Vo Minh Thu
9086cc05f5
[IMP] test addons: pushed the Tests menu to the far right (probably into the MOAR button).
...
bzr revid: vmt@openerp.com-20120808124209-409j517o4adtuj84
2012-08-08 14:42:09 +02:00
Vo Minh Thu
b77da916e5
[FIX] impex tests: removed unnecessary code.
...
bzr revid: vmt@openerp.com-20120807144519-r7tz3fh6ieslra1c
2012-08-07 16:45:19 +02:00
Vo Minh Thu
00d2d2fe05
[IMP] impex tests: moved test cases and models in their own test module.
...
bzr revid: vmt@openerp.com-20120807143744-zsbwktjmy5d79jki
2012-08-07 16:37:44 +02:00
Jigar Amin - OpenERP
1cb816c8a8
[FIX] Removed the unused test case to avoid the runtime mutiple execuation
...
bzr revid: jam@tinyerp.com-20120807114830-gu6j6hbb6zf30i97
2012-08-07 17:18:30 +05:30
ajay javiya (OpenERP)
3d3d51df0d
[IMP]: Improve validation
...
bzr revid: aja@tinyerp.com-20120806133728-sa372lbgoc8rdebu
2012-08-06 19:07:28 +05:30
Xavier Morel
6d6e66cfc1
[IMP] fixme comment
...
bzr revid: xmo@openerp.com-20120806130220-6s525hr0jolzenv9
2012-08-06 15:02:20 +02:00
Jigar Amin - OpenERP
0632619b27
merge lp:~openerp-dev/openobject-server/trunk-sloppy-rng-vmt
...
bzr revid: jam@tinyerp.com-20120806103914-2wz2xsxeu2vhrfy6
2012-08-06 16:09:14 +05:30
Vo Minh Thu
66d054471c
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20120806102630-psx2mywo3w5da81i
2012-08-06 12:26:30 +02:00
Vo Minh Thu
4a8668589a
[IMP] xml validation: white spaces.
...
bzr revid: vmt@openerp.com-20120806091144-t5jjnbnyqu6sk8wf
2012-08-06 11:11:44 +02:00
Vo Minh Thu
b00e6af86c
[FIX] xml validation: removed duplicated tests.
...
bzr revid: vmt@openerp.com-20120806091008-b4ve91aholkm67l4
2012-08-06 11:10:08 +02:00
Xavier Morel
471ef96edf
[FIX] some notes and comments in import/export tests
...
bzr revid: xmo@openerp.com-20120801094434-t23wa2343utnevh6
2012-08-01 11:44:34 +02:00
Xavier Morel
e3dc738802
[TEST] failure of o2m relinking via inline id (as exported)
...
bzr revid: xmo@openerp.com-20120801082108-vkind3ocwsqgd0bv
2012-08-01 10:21:08 +02:00
Xavier Morel
3f1ab77e28
[TEST] o2m importing of multiple fields
...
bzr revid: xmo@openerp.com-20120801070803-4sgvemuiifrhe61s
2012-08-01 09:08:03 +02:00
Xavier Morel
c4a60df691
[TEST] o2m db-id export and import
...
bzr revid: xmo@openerp.com-20120731163631-n97nxph9gm2f6kdp
2012-07-31 18:36:31 +02:00
Xavier Morel
e1c94f3221
[TEST] importing m2m fields to an existing object with m2m values
...
bzr revid: xmo@openerp.com-20120731152747-beg72fx2150upvay
2012-07-31 17:27:47 +02:00
Xavier Morel
29e6a77fef
[TEST] localized import/export of selection fields
...
bzr revid: xmo@openerp.com-20120731144606-ceax7lk3rfi7zumk
2012-07-31 16:46:06 +02:00
Xavier Morel
ac647909bf
[TEST] m2m import
...
bzr revid: xmo@openerp.com-20120731135449-i07ex1zswepen3wt
2012-07-31 15:54:49 +02:00
Xavier Morel
6bad3e84fb
[TEST] m2o import link by xid
...
bzr revid: xmo@openerp.com-20120731103908-p1apmrx3ifnodz0f
2012-07-31 12:39:08 +02:00
Xavier Morel
a3542213bc
[TEST] ids handling on main record
...
bzr revid: xmo@openerp.com-20120730165330-lm4l1yzfjduajb1p
2012-07-30 18:53:30 +02:00
Xavier Morel
f8822ae313
[TEST] m2o import
...
bzr revid: xmo@openerp.com-20120730162318-qwxncgvizrifgxyh
2012-07-30 18:23:18 +02:00
Xavier Morel
496177a9b1
[TEST] incorrect value for selection field import
...
bzr revid: xmo@openerp.com-20120730153017-iywveudrq5h0ykef
2012-07-30 17:30:17 +02:00
Xavier Morel
5b5148b925
[TEST] selection fields import
...
bzr revid: xmo@openerp.com-20120730152844-xob3ezlw0qpb1kxc
2012-07-30 17:28:44 +02:00
Xavier Morel
1cf264cfd4
[TEST] char and text fields
...
bzr revid: xmo@openerp.com-20120730142851-6854x99l4sxmoc0s
2012-07-30 16:28:51 +02:00
Xavier Morel
6af9bb4159
[TEST] integers import
...
bzr revid: xmo@openerp.com-20120730122243-wjpalm6ovwuk6k5c
2012-07-30 14:22:43 +02:00
Xavier Morel
59193b0c0f
[ADD] empty record/field case to booleans
...
bzr revid: xmo@openerp.com-20120730113633-tauioxm941k0iaqn
2012-07-30 13:36:33 +02:00
Xavier Morel
64910eaeba
[ADD] boolean field import tests
...
bzr revid: xmo@openerp.com-20120730111105-k6q8xop0ru71l0dj
2012-07-30 13:11:05 +02:00
Xavier Morel
73f3f24fb4
[ADD] tests for selection[function] and function fields export
...
bzr revid: xmo@openerp.com-20120730103214-t4s9g0z3sl1x05b3
2012-07-30 12:32:14 +02:00
ajay javiya (OpenERP)
74c5af12d5
[IMP]: Improve view validation
...
bzr revid: aja@tinyerp.com-20120730051446-i5krti4889lwbgcn
2012-07-30 10:44:46 +05:30
Xavier Morel
53c82f4086
[TEST] export of multiple o2m fields in the same object
...
bzr revid: xmo@openerp.com-20120726100804-ggsjwco93k9d5bqw
2012-07-26 12:08:04 +02:00
ajay javiya (OpenERP)
337b364bc7
[IMP]:Improve in view_validation
...
bzr revid: aja@tinyerp.com-20120726090913-3nikkq1nnpsa051s
2012-07-26 14:39:13 +05:30
Xavier Morel
f3c315cf10
[ADD] some m2m tests
...
bzr revid: xmo@openerp.com-20120724105756-swxo1l4tahqjopzd
2012-07-24 12:57:56 +02:00
Xavier Morel
02109d24e2
[ADD] tests for o2m field export
...
bzr revid: xmo@openerp.com-20120724102728-g7noucvda19k7k5q
2012-07-24 12:27:28 +02:00
Xavier Morel
5850df630c
[ADD] m2o field export tests
...
bzr revid: xmo@openerp.com-20120723160041-o6w24ia2kwnqu19z
2012-07-23 18:00:41 +02:00
Xavier Morel
feb9efed4d
[IMP] prepare export test cases for relational fields
...
bzr revid: xmo@openerp.com-20120723153826-hu7cwhj8uv6w0xu7
2012-07-23 17:38:26 +02:00
Xavier Morel
fc36345ca0
[ADD] test cases for export of simple fields
...
bzr revid: xmo@openerp.com-20120723150306-6zgtr9ho0d3ud78u
2012-07-23 17:03:06 +02:00
Jigar Amin - OpenERP
04fa87b2aa
[MERGE] lp:~openerp-commiter/openobject-server/trunk-sloppy-rng-jam-validation-aja
...
bzr revid: jam@tinyerp.com-20120703084620-aioarva0jgombwo4
2012-07-03 14:16:20 +05:30
ajay javiya (OpenERP)
78ba98baa0
[ADD]: Add validation for view
...
bzr revid: aja@tinyerp.com-20120703060737-cnnuzzfc8yfa8rcd
2012-07-03 11:37:37 +05:30
Vo Minh Thu
2666ab3fe0
[IMP] ir.ui.view: Added assertion-based checks.
...
bzr revid: vmt@openerp.com-20120622131004-stn7tf68xph3f278
2012-06-22 15:10:04 +02:00
Jigar Amin - OpenERP
5977186c41
[MERGE] lp:openobject-server:
...
bzr revid: jam@tinyerp.com-20120626091036-n9k87elbyim12y2r
bzr revid: jam@tinyerp.com-20120627101443-iwk0lm4eauqver58
bzr revid: jam@tinyerp.com-20120627110734-ilfjuhstvsg4wavi
2012-06-27 16:37:34 +05:30
Antony Lesuisse
453a1350fe
[MERGE] trunk
...
bzr revid: vmt@openerp.com-20120620122005-2rghps6qjjkozt3n
bzr revid: al@openerp.com-20120627103900-0kgtskgipdazmgy9
2012-06-27 12:39:00 +02:00
Jigar Amin - OpenERP
e528d37750
[MERGE] lp:openobject-server
...
bzr revid: jam@tinyerp.com-20120625040928-cs8h4blh2tm3odo1
2012-06-25 09:39:28 +05:30
Foram Katharotiya (OpenERP)
6292e896a1
[IMP] solve Can not `import openerp.tests`.
...
bzr revid: fka@tinyerp.com-20120620115142-euaid51ad2xgwevc
2012-06-20 17:21:42 +05:30
Vo Minh Thu
5edca89903
[IMP] uninstall: typos
...
bzr revid: vmt@openerp.com-20120620100705-p9o5kktmj8zkbshm
2012-06-20 12:07:05 +02:00
Turkesh Patel (Open ERP)
8b3c05a373
[IMP] remove cancel button from wizard and improved view.
...
bzr revid: tpa@tinyerp.com-20120619092606-5w7p50l7vnn3sv0w
2012-06-19 14:56:06 +05:30
Kuldeep Joshi (OpenERP)
a153714bcc
[IMP] remove res.partner.address
...
bzr revid: kjo@tinyerp.com-20120614085646-vvbx0fegqxar2kot
2012-06-14 14:26:46 +05:30
Kuldeep Joshi (OpenERP)
71ebce8018
[IMP]remove res.partner.address and sequence from ir.sequence
...
bzr revid: kjo@tinyerp.com-20120611103425-ekeoso4m1475d6rq
2012-06-11 16:04:25 +05:30
Vo Minh Thu
768aaa8854
[IMP] uninstall: moved tests from t.py to openerp.tests.
...
bzr revid: vmt@openerp.com-20120604123112-stegmdko2lakdv6f
2012-06-04 14:31:12 +02:00
Vo Minh Thu
fa4c2a40c0
[IMP] uninstall: moving tests to the openerp test framework (i.e. under openerp/tests/).
...
bzr revid: vmt@openerp.com-20120604104404-zibru6794ma1996x
2012-06-04 12:44:04 +02:00
Vo Minh Thu
9f46071958
[IMP] uninstall: added some docstrings.
...
bzr revid: vmt@openerp.com-20120601154544-e9a9cox7fcyd411m
2012-06-01 17:45:44 +02:00
Vo Minh Thu
eadd5e0a0a
[IMP] uninstall: use a dedicated table for many2many relationships instead of overlaoding ir.model.data.
...
bzr revid: vmt@openerp.com-20120601153449-uj2sl7qjzz3s7xnj
2012-06-01 17:34:49 +02:00
Vo Minh Thu
d790650bfb
[IMP] uninstall: use dedicated table instead of overloading ir.model.data.
...
bzr revid: vmt@openerp.com-20120601131414-880vmpctmjfxl84f
2012-06-01 15:14:14 +02:00
Vo Minh Thu
5df4aa8cca
[IMP] uninstall: started test module, added new ir_model_constraint table.
...
bzr revid: vmt@openerp.com-20120531160140-tutjw76tp0u5hipo
2012-05-31 18:01:40 +02:00
Xavier Morel
415d91f924
[FIX] error out when trying to set a global default if there already is a global default set
...
bzr revid: xmo@openerp.com-20120522125500-k4gxfa5ocmxk70us
2012-05-22 14:55:00 +02:00
Xavier Morel
a90c8ff5ae
[ADD] is_default handling on private filters
...
bzr revid: xmo@openerp.com-20120522115330-xnr4pyfy9sh3oqtv
2012-05-22 13:53:30 +02:00
Xavier Morel
33e585a607
[TEST] (ir.filters).get_filters
...
bzr revid: xmo@openerp.com-20120522110031-pddbryncp07dwfjk
2012-05-22 13:00:31 +02:00
Xavier Morel
539f0ebb45
[FIX] cleanup of ir.sequence tests to make them repeatable
...
bzr revid: xmo@openerp.com-20120522090637-xty4p2jmo74wijcc
2012-05-22 11:06:37 +02:00
Olivier Dony
dbe7b45276
[IMP] orm: support model-level @groups attribute for access restriction
...
This is a partial implementation with no support for
restricting read/write access via RPC. This first
part only covers the removal of the restricted fields
from the client-side view, i.e. in the results of
fields_view_get() and fields_get().
The second part will come later and will cover the
real low-level access control.
bzr revid: odo@openerp.com-20120518143625-ps9db62vzrc2pylh
2012-05-18 16:36:25 +02:00
Raphael Collet
cd47a2fcaf
[MERGE] from trunk
...
bzr revid: rco@openerp.com-20120319092142-bk2yjoao67g712nb
2012-03-19 10:21:42 +01:00
Olivier Dony
caf646a7e5
[IMP] test_ir_sequence: avoid spurious traceback logging
...
bzr revid: odo@openerp.com-20120314142552-283i4s1lwrkt7zx3
2012-03-14 15:25:52 +01:00
Raphael Collet
8f8b5497d1
[IMP] tests: add test on related fields
...
bzr revid: rco@openerp.com-20120309161547-um53k5rqqts9flz6
2012-03-09 17:15:47 +01:00
Raphael Collet
82f492bc2c
[FIX] related fields: fix and simplify search (was wrong with a single indirection)
...
bzr revid: rco@openerp.com-20120309152938-n467ap8hnw406rau
2012-03-09 16:29:38 +01:00
Vo Minh Thu
6323111950
[IMP] tests:
...
- moved a few YAML tests to unittest2 for demonstration purpose
- changed --test-disable to --test-enable (and swapped its meaning)
bzr revid: vmt@openerp.com-20120301134608-szuktuj8imdhmn0r
2012-03-01 14:46:08 +01:00
Vo Minh Thu
ade3f174a5
[IMP] tests: move tests discovery and execution to openerp.modules.module, removed unexisting column name, filter out more test outputs
...
bzr revid: vmt@openerp.com-20120301121611-1gieqehm9wqog2fx
2012-03-01 13:16:11 +01:00
Vo Minh Thu
d85da03314
[IMP] tests: xml-rpc test drops the created database (which has its own name, not clashing with the main db name).
...
bzr revid: vmt@openerp.com-20120301105419-8ik3z5eikwjnackk
2012-03-01 11:54:19 +01:00
Vo Minh Thu
d709d602d8
[ADD] FEATURES.rst: whenever a feature branch is reviewed (but normally also when it is started),
...
the description of the implented features must be provided, so
here they are.
bzr revid: vmt@openerp.com-20120228112418-r8tjx3o6xc2cbaej
2012-02-28 12:24:18 +01:00
Vo Minh Thu
ed71ad0946
[FIX] tests: `core` is really `common`. Also added some comments
...
and a second test suite variable for sanity checks. The comments will
later be changed to point to some documentation instead.
bzr revid: vmt@openerp.com-20120217150049-in1lmo24qay8ulmh
2012-02-17 16:00:49 +01:00
Vo Minh Thu
0037575619
[IMP] tests: provide simple reusable base classes to write tests.
...
bzr revid: vmt@openerp.com-20120216162706-ccbgkqv8k8kufmnb
2012-02-16 17:27:06 +01:00
Vo Minh Thu
1cf8f5680a
[IMP] tests: expose an explicit list of test sub-modules.
...
bzr revid: vmt@openerp.com-20120213162058-e7u9jap679z4hep5
2012-02-13 17:20:58 +01:00
Florent Xicluna
ab9db3f622
[REM] more unused imports.
...
bzr revid: florent.xicluna@gmail.com-20120208213313-1v0dugc59ch1fnnu
2012-02-08 22:33:13 +01:00
Florent Xicluna
d8b25ca182
[MRG] merge trunk.
...
bzr revid: florent.xicluna@gmail.com-20120208141358-emgwspa0s58gtsez
2012-02-08 15:13:58 +01:00
Vo Minh Thu
ee988a8955
[IMP] tests: export all the tests in a single suite.
...
bzr revid: vmt@openerp.com-20120201164404-yvnf30okqyj69sfy
2012-02-01 17:44:04 +01:00
Vo Minh Thu
15a8f08170
[IMP] manifest: renamed active to auto_install.
...
bzr revid: vmt@openerp.com-20120130102041-aensqjeqkftq8nm5
2012-01-30 11:20:41 +01:00
Vo Minh Thu
30d7253fef
[IMP] gunicorn: changed `print` with `logging.info`.
...
bzr revid: vmt@openerp.com-20120120160409-cu1vcw7cfa3z0zgy
2012-01-20 17:04:09 +01:00
Vo Minh Thu
ba178be7c0
[IMP] gunicorn: add CPU and memory limits.
...
bzr revid: vmt@openerp.com-20120120114612-xowu57yy3f5uxi0j
2012-01-20 12:46:12 +01:00
Florent Xicluna
e7838dfbc4
[REF] fix weird indentation, not multiple of four.
...
bzr revid: florent.xicluna@gmail.com-20120119191756-niny262vp1nvmpp8
2012-01-19 20:17:56 +01:00
Florent Xicluna
82f780e948
[REM] unused imports.
...
bzr revid: florent.xicluna@gmail.com-20120119191654-scm8c3o07icyz5b1
2012-01-19 20:16:54 +01:00
Florent Xicluna
40c1de87d8
[REF] remove unused import, always import literal_eval from tools.safe_eval.
...
bzr revid: florent.xicluna@gmail.com-20120115214214-0rjwn80choc9g0fs
2012-01-15 22:42:14 +01:00
Vo Minh Thu
43745c4cb9
[IMP] tests: moved tests into openerp.tests, expose test suites.
...
bzr revid: vmt@openerp.com-20111201140012-y9kmto0le0ugxdzf
2011-12-01 15:00:12 +01:00