Raphael Collet
f2e4a10e1a
[IMP] use model._fields instead of model._all_columns to cover all fields
...
The old-api model._all_columns contains information about model._columns and
inherited columns. This dictionary is missing new-api computed non-stored
fields, and the new field objects provide a more readable api...
This commit contains the following changes:
- adapt several methods of BaseModel to use fields instead of columns and
_all_columns
- copy all semantic-free attributes of related fields from their source
- add attribute 'group_operator' on integer and float fields
- base, base_action_rule, crm, edi, hr, mail, mass_mailing, pad,
payment_acquirer, share, website, website_crm, website_mail: simply use
_fields instead of _all_columns
- base, decimal_precision, website: adapt qweb rendering methods to use fields
instead of columns
2014-11-04 13:47:57 +01:00
Xavier Morel
b18d83c0e0
[IMP] convert qweb to use lxml instead of minidom
...
should be >20x faster at parsing document strings and gain close to 40s on crawling
2014-07-02 16:01:36 +02:00
Antony Lesuisse
58481cee00
website crawl test report number of sql queries
2014-07-01 22:45:20 +02:00
Antony Lesuisse
e634ec806f
[IMP] website crawler log show query/s
2014-06-29 21:39:30 +02:00
Antony Lesuisse
78e044b5c7
[IMP] test impprove HTTPCase opener
...
Simplify website crawler using the generic HTTPCase opener
2014-06-29 20:04:30 +02:00
Simon Lejeune
195fa93168
[MERGE] backend front end integration
...
Render the top-menu (backend menu or frontend editbar) server-side.
Use Fontawesome icons (mail, timezone, chat).
Refactor website widgets, split Website.editorBarin editorbar, ace, editorbar- content, editorbarCustomize.
2014-06-27 11:03:34 +02:00
Christophe Simonis
5112421a93
[FIX] website: correct slug parsing
2014-06-25 11:08:51 +02:00
Franck Bret
b4afff3618
Unify website slugify method behavior with or without python-slugify, and add some unit tests
2014-06-20 11:25:44 +02:00
Christophe Matthieu
bc3fc54fac
[IMP] Tour: add tour in web module; tour became available in backend.
2014-06-18 12:25:13 +02:00
Christophe Simonis
a756b82372
[MERGE] forward port of branch saas-4 up to revid bb26dea
2014-05-20 20:19:55 +02:00
Fabien Meghazi
c3cfc4bc32
[MERGE] sitemap backport, merge trunk from 9438 til 9440
...
merge from 9438 revid:fp@tinyerp.com-20140511115231-g8ke14r9iepyypv4 til 9440 revid:fp@tinyerp.com-20140511143314-nzn1239l00arbxjq
2014-05-13 16:38:31 +02:00
Xavier Morel
023aa7acdf
[FIX] website_forum links which should not be, post-install crawler
...
* move URLs of purely-JS-hook <a> to data-href so the crawler does not try to
access them (they're JSON-RPC endpoints...)
* replace side-effecting links (...) by styled buttons
* fix crawler to not take fragments in account when deduplicating and
navigating URLs
2014-05-12 18:34:55 +02:00
Fabien Pinckaers
54d30d5194
[IMP] clean sitemap, enumerate pages + fixes
...
bzr revid: fp@tinyerp.com-20140511115231-g8ke14r9iepyypv4
2014-05-11 13:52:31 +02:00
chm@openerp.com
1fc8f89bc1
[MERGE] from trunk
...
bzr revid: chm@openerp.com-20140411082050-lr7vtew6yvsqaon6
2014-04-11 10:20:50 +02:00
Raphael Collet
560166d5a1
[FIX] website/tests: fix test_requests by manually switching registry to test mode
...
bzr revid: rco@openerp.com-20140409092450-2r4gx0eggw2p7lch
2014-04-09 11:24:50 +02:00
chm@openerp.com
62814f9c23
[FIX] website: activate new tour tests
...
bzr revid: chm@openerp.com-20140324081112-15n58puu29weydme
2014-03-24 09:11:12 +01:00
Xavier Morel
5196cd6e8c
[FIX] website: set inherit_branding in test contexts to trigger generation of relevant edition attributes
...
bzr revid: xmo@openerp.com-20140317152502-6a2agi1xjooi516e
2014-03-17 16:25:02 +01:00
Antony Lesuisse
0772c99bcb
[FIX] website test, remove useless test, waitfor banner fix
...
bzr revid: al@openerp.com-20140316144546-agpgmlwxa532xxmb
2014-03-16 15:45:46 +01:00
Antony Lesuisse
e23ce63133
[FIX] website tests crawler, admin password != super admin password
...
bzr revid: al@openerp.com-20140316142302-7xm0sputqgadihs0
2014-03-16 15:23:02 +01:00
Christophe Simonis
d504764eff
[MERGE] forward port of branch saas-3 up to revid 9298 chm@openerp.com-20140311130852-3ft0v1mc9ht1any6
...
bzr revid: chs@openerp.com-20140311145205-s56fj113fsrnisc3
2014-03-11 15:52:05 +01:00
Xavier Morel
6b857b6eeb
[FIX] whitespace/indent lost by RTE
...
Didn't manage to find RTE settings to avoid losing leading whitespace of
lines, so reindeint arch after doing all integration, right before saving back
to view's field.
* html.fromstring(parser=HTMLParser(remove_blank_text=True) does not seem to
work, so serialize to XML, and parse back with
remove_blank_text. remove_blank_text necessary for lxml's pretty_print to
work correctly.
* pretty_print only & always uses 2 spaces/indent level. Our files (and the
HTML editor's Format button) uses 4 spaces -> need a second pass to double
indents.
bzr revid: xmo@openerp.com-20140227125934-q8j3z440px2ic6kx
2014-02-27 13:59:34 +01:00
Xavier Morel
55a9e5af27
[FIX] re-enable website_sale tests because they pass so whatever
...
bzr revid: xmo@openerp.com-20140219144754-52dz24qmnjq72zor
2014-02-19 15:47:54 +01:00
Xavier Morel
a77097ce60
[REM] broken and PITA test_02_public_login_logout
...
* / fails to load, it turns out Tour is undefined because unlogged home does
not load bootstrap-tour
* after injecting bootstrap-tour, redirects to /login (to log in), tries to
inject tour again except this time ``openerp.website`` is completely empty
(although it is present on the page), no idea why.
removed test because whatever, if enable-test-fix-tour is ever rewritten and
fixed it may reappear.
bzr revid: xmo@openerp.com-20140219142115-5kpu5uvzpkwnt1ef
2014-02-19 15:21:15 +01:00
Xavier Morel
86a537e6a7
[FIX] typo method name
...
bzr revid: xmo@openerp.com-20140219140241-5p6u4t818mkuo74w
2014-02-19 15:02:41 +01:00
Xavier Morel
61c82f28a4
[FIX] imports, use @expectedFailure, simplify some inject specs
...
bzr revid: xmo@openerp.com-20140218160339-2r34z4ks2o4lriu5
2014-02-18 17:03:39 +01:00
Xavier Morel
c42f9553ec
[IMP] remove pointless semicolons, use @expectedFailure instead of commenting broken test
...
bzr revid: xmo@openerp.com-20140218140610-t4amo9b2jjkk2r0h
2014-02-18 15:06:10 +01:00
Xavier Morel
aa0eac1257
[FIX] re-enable crawler tests
...
Move URLCase back out of the test module, otherwise loadTestFromModule
attempts to load it in the usual manner (~URLCase('runTest')). Which does not
work at all, because that's not what URLCase is for.
URLCase extends TestCase to benefit from the TestCase.run infrastructure
(running tests, filling result object, etc...)
bzr revid: xmo@openerp.com-20140217151535-alq7pq6qapski73x
2014-02-17 16:15:35 +01:00
Antony Lesuisse
2112eb6448
[FIX] website_sale enable some tests
...
bzr revid: al@openerp.com-20140217012827-3rb4mrkgx3ubp0dx
2014-02-17 02:28:27 +01:00
Antony Lesuisse
e54758988a
[FIX] website tests
...
bzr revid: al@openerp.com-20140217001148-2ub37hxyz8tbxrwe
2014-02-17 01:11:48 +01:00
Christophe Simonis
f6422470dd
ಠ_ಠ
...
bzr revid: chs@openerp.com-20140213152348-alye3ovcn2y53xp3
2014-02-13 16:23:48 +01:00
Christophe Matthieu
c86156bbec
[FIX] website: comment test login_test.js. Error QWeb2 (test dependence) is not injected in the login page to insert login and password
...
bzr revid: chm@openerp.com-20140213132550-9i28l7v8vcibz36t
2014-02-13 14:25:50 +01:00
Christophe Matthieu
a193f3fef8
[FIX] website: login for test js
...
bzr revid: chm@openerp.com-20140213132156-plxe5hqohmkxf40g
2014-02-13 14:21:56 +01:00
Antony Lesuisse
9c7f132a7a
[IMP] website test_ui simplification
...
bzr revid: al@openerp.com-20140210005926-03hhcm56gpplgbt2
2014-02-10 01:59:26 +01:00
Antony Lesuisse
bf2198e4c8
[IMP] website test shorter code
...
bzr revid: al@openerp.com-20140209234531-0i2xgr94yjaqzen8
2014-02-10 00:45:31 +01:00
Antony Lesuisse
a21b1c4f8c
[IMP] test_ui conversion, needs validation from chm
...
bzr revid: al@openerp.com-20140209232040-12uq85pseheth8z0
2014-02-10 00:20:40 +01:00
Antony Lesuisse
70d498c14a
[FIX] disable http test before conversion
...
bzr revid: al@openerp.com-20140209141950-o9sf0jual07y315f
2014-02-09 15:19:50 +01:00
Christophe Matthieu
efe1e4a183
[FIX] website test: remove hack for runbot
...
bzr revid: chm@openerp.com-20140207155454-jf3pwp3hl9nvay6m
2014-02-07 16:54:54 +01:00
Christophe Matthieu
d432e56661
[FIX] website: for activate test on runbot
...
bzr revid: chm@openerp.com-20140207143241-e4u7ikvgbl0f980d
2014-02-07 15:32:41 +01:00
Christophe Matthieu
6cb5b1e556
[FIX] website: test tour: use admin insead of tools.config['admin_passwd']
...
bzr revid: chm@openerp.com-20140207130104-nuwurzlsvt4cu1jr
2014-02-07 14:01:04 +01:00
Christophe Matthieu
b21bb08c22
[ADD] website: test login, backend, go back, branding, edit, logout
...
bzr revid: chm@openerp.com-20140207125231-3zd0i1axdwuht5g4
2014-02-07 13:52:31 +01:00
Christophe Matthieu
b71ef0541e
[FIX] website test phantomjs login
...
bzr revid: chm@openerp.com-20140207115903-kzf9ikk37xvtq0ef
2014-02-07 12:59:03 +01:00
Christophe Matthieu
4663f5b10c
[IMP] website test: add a timeout in phantom js to raise a better error and improve log error
...
bzr revid: chm@openerp.com-20140207074745-ffrcoi2aj5m67i8m
2014-02-07 08:47:45 +01:00
Christophe Matthieu
062c491488
[IMP] website test_ui: add a try catch in run and run_test to display error
...
bzr revid: chm@openerp.com-20140206175113-w0qscfngebnn7718
2014-02-06 18:51:13 +01:00
Christophe Matthieu
97091c31ae
[IMP] website: reduce run test of banner
...
bzr revid: chm@openerp.com-20140206161614-afam16q12ci0kr7l
2014-02-06 17:16:14 +01:00
Christophe Matthieu
e8964f896c
[FIX] website: tour, test and test_runner
...
bzr revid: chm@openerp.com-20140206140746-jmeyx8q9qxv7sz1j
2014-02-06 15:07:46 +01:00
Antony Lesuisse
1c283ddf24
phantomjs segfaults
...
bzr revid: al@openerp.com-20140131002019-tbvgpunj6kj6675v
2014-01-31 01:20:19 +01:00
Christophe Matthieu
5400c508e5
[FIX] website tour test
...
bzr revid: chm@openerp.com-20140130232330-kgrw8e7d0ez3f3pp
2014-01-31 00:23:30 +01:00
Christophe Matthieu
ed45f41f9b
[FIX] website tour test + add test for shop
...
bzr revid: chm@openerp.com-20140130224453-e0drwj4m54vymahz
2014-01-30 23:44:53 +01:00
Christophe Matthieu
5e10f80cd4
[fix] website: test tour
...
bzr revid: chm@openerp.com-20140130215717-h211wj65wl20zfru
2014-01-30 22:57:17 +01:00
Christophe Matthieu
110f3dd910
[IMP] website tour: refactoring: Check dom insead of trigger
...
bzr revid: chm@openerp.com-20140130210001-kiecx5nde2um3ni1
2014-01-30 22:00:01 +01:00