Commit Graph

82 Commits

Author SHA1 Message Date
Fabien Pinckaers 3e26abe6ee [FIX] fix to support groups on tempaltes
bzr revid: fp@tinyerp.com-20131202085952-htkxqv3l3zdtecnu
2013-12-02 09:59:52 +01:00
Fabien Pinckaers 0eb2bed2ca [FIX] priority of templates are now working
bzr revid: fp@openerp.com-20131117072335-chwjkpcj8hv431z3
2013-11-17 08:23:35 +01:00
Thibault Delavallée 54933118a4 [MERGE] Sync with trunk until revision 4957.
bzr revid: tde@openerp.com-20131002133820-8xomdumexexqp3pk
2013-10-02 15:38:20 +02:00
Fabien Pinckaers 4b5d3e4a40 [IMP] priority on views
bzr revid: fp@openerp.com-20130929085000-p2pcmkdubqw1lfbj
2013-09-29 10:50:00 +02:00
Xavier Morel 0b90087828 [IMP] field regularity
Make @file a more generic data source, add base64 type for b64 encoding

bzr revid: xmo@openerp.com-20130927121325-mbjm4612qkaa0z0x
2013-09-27 14:13:25 +02:00
Xavier Morel be59c06403 [MERGE] from trunk
bzr revid: xmo@openerp.com-20130923111950-uk163cp891zl021h
2013-09-23 13:19:50 +02:00
Fabien Pinckaers 704639cc7c [IMP] revert
bzr revid: fp@openerp.com-20130922172851-j9jrcjcyc5kmtlik
2013-09-22 19:28:51 +02:00
Fabien Pinckaers 29326cd993 [IMP] Add file='...' on <field> tags + [FIX] forced noupdate
bzr revid: fp@openerp.com-20130922093113-80p3pig45qbm7lsn
2013-09-22 11:31:13 +02:00
Xavier Morel 8bb10bdf67 [FIX] incorrect conversion of some fields transmogrification in template tag
bzr revid: xmo@openerp.com-20130910103526-r9q98zirvmiylr69
2013-09-10 12:35:26 +02:00
Antony Lesuisse dfb9d317f2 [MERGE] data file loading refactoring, ready for code autoreload
bzr revid: al@openerp.com-20130909105523-jkffhy5gr34k25hr
2013-09-09 12:55:23 +02:00
Xavier Morel bb14116785 [MERGE] from trunk
bzr revid: xmo@openerp.com-20130909095042-zf9p1qybf4f2b7gu
2013-09-09 11:50:42 +02:00
Xavier Morel d8bf3892f3 [ADD] page attribute to views
This can be used to distinguish template views expected to be
available as web pages, and thus directly linkable. By opposition to
non-web views and template sections (reusables).

bzr revid: xmo@openerp.com-20130821121206-ebxsxrmyogcv7pnv
2013-08-21 14:12:06 +02:00
Xavier Morel 212f088aea [MERGE] from trunk-website-al
bzr revid: xmo@openerp.com-20130812075650-sv5v98kuuifaog2z
2013-08-12 09:56:50 +02:00
Xavier Morel fc2d751eb3 [IMP] dict.get's default is None, remove pointless explicit defaults
bzr revid: xmo@openerp.com-20130812075044-8d4nc5dscarbu1vj
2013-08-12 09:50:44 +02:00
Xavier Morel fcdbfe364d [IMP] dict.get's default is None, remove pointless explicit defaults
bzr revid: xmo@openerp.com-20130812075044-ko8hozdnz2b5c3vk
2013-08-12 09:50:44 +02:00
Fabien Pinckaers e59fe5ff90 [FIX] keep t as template name for templates
bzr revid: fp@openerp.com-20130810203756-votwz009a3m3bf2b
2013-08-10 22:37:56 +02:00
Fabien Pinckaers 97760d0af3 [FIX] typo
bzr revid: fp@tinyerp.com-20130810141307-zopo49miu378pyf4
2013-08-10 16:13:07 +02:00
Fabien Pinckaers ddd75c0b23 [FIX] typo
bzr revid: fp@tinyerp.com-20130810133924-462pnkxctqnim36j
2013-08-10 15:39:24 +02:00
Fabien Pinckaers 0adaae13fb [IMP] Allows to put a name on views
bzr revid: fp@tinyerp.com-20130810133805-f1bzaaet7s1c8g9b
2013-08-10 15:38:05 +02:00
Fabien Pinckaers 14e555d920 [IMP] support for inherit_option_id, <template> for inherited views
bzr revid: fp@tinyerp.com-20130810132449-tckikyrtqcawnzor
2013-08-10 15:24:49 +02:00
Xavier Morel 2a2398eaf9 [IMP] lxml doc recommends using .get/.set/.keys/.values/.items for attributes manipulation where possible
bzr revid: xmo@openerp.com-20130809135141-114l6262wdts0i43
2013-08-09 15:51:41 +02:00
Xavier Morel 45d5d2f0e1 [IMP] tpl_id should already be a string
bzr revid: xmo@openerp.com-20130809134746-3mgio3vaedt93l3u
2013-08-09 15:47:46 +02:00
Xavier Morel 493bfc9374 [FIX] omagerd don't completely misuse lxml in retarded ways
bzr revid: xmo@openerp.com-20130809134524-wldxjgda13sl21fa
2013-08-09 15:45:24 +02:00
Fabien Meghazi 1b40e9265f [FIX] Replace views string interpolation by manual replacement.
No need to double % in views anymore

bzr revid: fme@openerp.com-20130806113626-t7y3v1trtfdtitar
2013-08-06 13:36:26 +02:00
Fabien Meghazi 31cd39e0df [FIX] templates: Set tagname for qweb
bzr revid: fme@openerp.com-20130722105938-49hcqq8ip5xsid8h
2013-07-22 12:59:38 +02:00
Fabien Meghazi cb56924437 [ADD] xml data <template> helper
bzr revid: fme@openerp.com-20130722101210-idtrfwva7e903oq8
2013-07-22 12:12:10 +02:00
Antony Lesuisse 9a8ff60da0 file based openerp views
bzr revid: al@openerp.com-20130620221648-kj53t7vdopfab0c2
2013-06-21 00:16:48 +02:00
Antony Lesuisse 4f76c69b76 [MERGE] trunk
bzr revid: al@openerp.com-20130620151512-p5ysov21an6ogbtv
2013-06-20 17:15:12 +02:00
Vo Minh Thu dea9c95ab7 [MERGE] tools.convert: allow to use relativedelta in XML files.
bzr revid: vmt@openerp.com-20130603111716-lrgu1hxxz96escqa
2013-06-03 13:17:16 +02:00
Xavier Morel 2e8c9a48e1 [IMP] move testing of xml conversion alongside test data to ensure tests only run if module on addons_path/loaded
bzr revid: xmo@openerp.com-20130429122317-yzv4prie9hc7f7l6
2013-04-29 14:23:17 +02:00
Xavier Morel 45bb6ec7f1 [ADD] file field type in xml_convert, tests
bzr revid: xmo@openerp.com-20130429112459-ol1ayn2z34j32r54
2013-04-29 13:24:59 +02:00
Christophe Simonis 46b06bedf7 [IMP] convert: allow to have <act_window> tags with attribute multi="False" set
bzr revid: chs@openerp.com-20130426164022-nf9eldyge783b5r1
2013-04-26 18:40:22 +02:00
Christophe Matthieu 33ae814ff6 [IMP] tools convert: allow to use relative delta in xml file
bzr revid: chm@openerp.com-20130418151827-coda7ldtjd7hw7to
2013-04-18 17:18:27 +02:00
Vo Minh Thu 4ed7ec95b7 [MERGE] removed LocalService("workflow"), Logger class, and TEST log level.
bzr revid: vmt@openerp.com-20130327170639-uamgg7shlmtxgpxv
2013-03-27 18:06:39 +01:00
Vo Minh Thu d6ea526e36 [MERGE] openerp.pooler is deprecated.
bzr revid: vmt@openerp.com-20130327164045-ziw4lj50owdvmfbw
2013-03-27 17:40:45 +01:00
Vo Minh Thu 23d672dfc3 [MERGE] reports: make it possible to use only XML declaration, even with custom parsers.
This makes report registration more uniform, and report rendering be possible
through the ORM (and thus the model service, instead of the report service).

To register a report, always use the database, i.e. a <report> tag within an
XML file. The custom parser, if any, will be specified in the database.
Previously specify a custom parser, the report was declared in Python.

Each model exposes a print_report() method, which will take the report name (as
many report can be defined on a single model) in argument.

bzr revid: vmt@openerp.com-20130327161129-6e7jz7l3lx7z1t18
2013-03-27 17:11:29 +01:00
Vo Minh Thu 4613a97c01 [REF] trolls.convert: missed an opportunity to reuse a beautiful association list.
bzr revid: vmt@openerp.com-20130327155917-xaepclhoazgw51ef
2013-03-27 16:59:17 +01:00
Xavier Morel 461973b4c9 [IMP] usage of python in convert_csv
* the reduce is equivalent to any
* apply De Morgan law
* misc.ustr is a function, can just pass it directly to map

bzr revid: xmo@openerp.com-20130327155424-dfbo915tl8qhsvqu
2013-03-27 16:54:24 +01:00
Vo Minh Thu 1e7e2ca753 [REF] no longer use openerp.pooler.
Either use openerp.modules.registry.RegistryManager when the full
new() signature is needed, or use openerp.registry().

Replaced also some pool.get() with pool[] because KeyErrors
are better than AttributeErrors on None.

bzr revid: vmt@openerp.com-20130327111014-2i0hlvpy5y5ku7hm
2013-03-27 12:10:14 +01:00
Vo Minh Thu a4fbd26541 [REF]: use openerp.workflow instead of LocalService("workflow").
bzr revid: vmt@openerp.com-20130326162040-kkq46wrur3pgn6eh
2013-03-26 17:20:40 +01:00
Vo Minh Thu 1683fc7abd [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20130322135152-1hdlptwj1qqqfz4z
2013-03-22 14:51:52 +01:00
Vo Minh Thu b71457e258 [FIX] tools.convert: use tools.ustr() instead of str() on exceptions.
bzr revid: vmt@openerp.com-20130225164028-d48k5yheuoph1vm3
2013-02-25 17:40:28 +01:00
Vo Minh Thu 0cb53890df [IMP] report: reports with custom parsers can be declared in XML files.
bzr revid: vmt@openerp.com-20130222093428-f1isxxqlbaj7uhuo
2013-02-22 10:34:28 +01:00
Vo Minh Thu df7c209164 [FIX] Better exception handling in tools.convert:
- The exception is not logged in tools.convert. It is loggeg by the netsv layer anyway.
- The exception is re-raised instead, but with the full traceback available.
- A fix in openerp.service.db where the cr is closed twice.

bzr revid: vmt@openerp.com-20130219163047-3q766awd66wkzsn7
2013-02-19 17:30:47 +01:00
Vo Minh Thu 9f9c9585a1 [REF] Removed support for __terp__.py files and `terp` root elements in XML files.
bzr revid: vmt@openerp.com-20130212152328-flpn1tbz75lhi2m2
2013-02-12 16:23:28 +01:00
Cecile Tonglet ad8b76de53 [MERGE] From trunk (second time)
bzr revid: cto@openerp.com-20121217144753-1rboqdw01h8yrehj
2012-12-17 15:47: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
Xavier Morel c6079dd6bb [REM] unnecessary parens
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00
Olivier Dony e35992cc53 [MERGE] Sync with trunk
bzr revid: odo@openerp.com-20121001144941-16d8mbi5475c3tyb
2012-10-01 16:49:41 +02:00
Stephane Wirtel 30e59f95c9 [MERGE] raise an exception if it can't evaluate a string
bzr revid: stw@openerp.com-20120911145325-oay33de4o7h83k4t
2012-09-11 16:53:25 +02:00