Commit Graph

56 Commits

Author SHA1 Message Date
Stephane Wirtel 89f71281a7 [IMP] Backport one feature from website: this feature allows to specify a file
path on the field tag fetching the right file instead of using the base64
encoded file in the field.

<field name="image" type="base64" file="base/static/img/main_partner-image.png" />

bzr revid: stw@openerp.com-20140109154338-0spjbo109pxh75pp
2014-01-09 16:43:38 +01:00
Denis Ledoux 20be322c45 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9684 rev-id: dle@openerp.com-20131209145652-3g9rgnfz1w8k0whw
bzr revid: chs@openerp.com-20131202105848-33gcz1715w370rve
bzr revid: dle@openerp.com-20131204150643-is3y0b9n8enh3yql
bzr revid: chs@openerp.com-20131206152726-pirikn7v8pev90ic
bzr revid: dle@openerp.com-20131206162437-b9niay99mirk44qm
bzr revid: tde@openerp.com-20131209102019-kjeg0rx2au1d5e5v
bzr revid: dle@openerp.com-20131209155721-589zihxx8jmvlpvp
2013-12-09 16:57:21 +01:00
Cecile Tonglet 767aaeb8cc [FIX] Wrong error message when data cannot be loaded at module loading
bzr revid: cto@openerp.com-20131203092433-uu1brp5csqvvd8yh
2013-12-03 10:24:33 +01: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
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
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
Olivier Dony 7ddc6a2cd9 [FIX] convert: fix previous partial patch for removing redundant @type for <menuitem>
bzr revid: odo@openerp.com-20120823100504-q8w91ga5wbot20o5
2012-08-23 12:05:04 +02:00
Olivier Dony ebb3df4f8c [FIX] convert: fix previous partial fix for removing redundant @type for <menuitem>
bzr revid: odo@openerp.com-20120823100252-zmhpaocb2bb11c99
2012-08-23 12:02:52 +02:00
Olivier Dony a337ca201d [IMP] rng: forbid redundant @type for menuitem, now inferred from the action type + minor cleanup
bzr revid: odo@openerp.com-20120822144946-fdsw9ee1ia3nfe86
2012-08-22 16:49:46 +02:00
Antonin Bourguignon 8dd80d5dcf [FIX] handling of the action's module xml id.
also don't use the  attribute anymore

bzr revid: abo@openerp.com-20120821172224-9unwry0p27tn7d82
2012-08-21 19:22:24 +02:00
Antonin Bourguignon a2db8022d3 [FIX] xml import: when using a menuitem tag, properly determine the type of action that is referenced
the  attribute for the  element should now be useless

bzr revid: abo@openerp.com-20120821164054-6zzad2k6nmebqe35
2012-08-21 18:40:54 +02:00
Christophe Simonis 7dc9b6087c [IMP] handle menuitems with "server" and "client" type + ensure menu has a name
bzr revid: chs@openerp.com-20120816130406-bsselo97f8tyzcit
2012-08-16 15:04:06 +02:00
Vo Minh Thu 66d054471c [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20120806102630-psx2mywo3w5da81i
2012-08-06 12:26:30 +02:00
Fabien Pinckaers d07263eed3 [IMP] introducing new file type: html
bzr revid: fp@openerp.com-20120804143643-e0331dgtkbxejfmy
2012-08-04 16:36:43 +02:00
Vo Minh Thu ebf1383785 ir.ui.view: type field can be a functional field.
bzr revid: vmt@openerp.com-20120619101425-u73r47zdhsg7ecma
2012-06-19 12:14:25 +02:00
Xavier Morel a59da4d476 [REM] ir_set from _tag_url's convert
Hinges on @menu (not allowed on the url tag), @keyword (not allowed either) and sets the url on the url

bzr revid: xmo@openerp.com-20120608103815-n20dhponzinhr7xf
2012-06-08 12:38:15 +02:00
Xavier Morel 48166edeb8 [FIX] rename ir.actions.url to match action's type
bzr revid: xmo@openerp.com-20120608101710-ncwcmu9u72u7mxcy
2012-06-08 12:17:10 +02:00
Vo Minh Thu 0cb86fc58d [IMP] tests: removed the severity concept from `assert` tags.
bzr revid: vmt@openerp.com-20120302112834-n1zyqf1g4v61ivje
2012-03-02 12:28:34 +01:00
Vo Minh Thu dc34d73695 [IMP] tests:
- pass around the assertion_report to the YAML importer
- removed TestReport, which was identical to assertion_report
- assertion_report is simpler (no more severity level)
- use the report to log a greppable sentence when some test failed.
Previously the runbot had to grep for a Traceback which was an
unreliable technique (e.g. an exception can be purposefuly
generated as part of a test and the associated traceback
visible in the logs). Now it can grep
  "At least one test failed when loading the modules".

bzr revid: vmt@openerp.com-20120302110227-nqrl7i46ju28ntdr
2012-03-02 12:02:27 +01:00
Olivier Dony 7deee635b2 [MERGE] Make <report> tag extensible for extra report engines, courtesy of Nicolas Bessi (Camptocamp)
The processing of <report> tags during XML file
processing is not modular or extensible, which
means that extra reporting engines cannot easily
add custom behavior for <report> records of their
type. By returning the newly created ID in
the tag_report() method we at least allow them
to hook up a monkey-patch without need to copy-
paste the original code.
This patch also allows an extra XML attribute
for webkit headers, because the original @header
attribute is reserved for a boolean value.

bzr revid: odo@openerp.com-20120214135255-a7hyxsoif4jhg6ro
2012-02-14 14:52:55 +01:00
Xavier Morel 5c40627e4b [FIX] don't just print a warning if an @eval fails in an XML file
bzr revid: xmo@openerp.com-20120126133013-5fnsouix8cutwlik
2012-01-26 14:30:13 +01:00
Vo Minh Thu a142292f91 [IMP] openerp.tools: _logger with fully qualified module name.
bzr revid: vmt@openerp.com-20120124140056-hqoy49bh7wyr1xce
2012-01-24 15:00:56 +01:00
nicolas.bessi@camptocamp.com d87ee3e162 [IMP] webkit_header attribute support in report tag
bzr revid: nicolas.bessi@camptocamp.com-20120119152732-dbn48789auu009r4
2012-01-19 16:27:32 +01:00
Olivier Dony 295cd51e38 [MERGE] Fix bug 901601, add default GTK icon for kanban/gantt actions
bzr revid: odo@openerp.com-20111213120225-o264d1wgwgz4ztvt
2011-12-13 13:02:25 +01:00
Naresh (OpenERP) e7f3e590b7 [REF]:
bzr revid: nch@tinyerp.com-20111213105146-fz6fejswta7mzfcp
2011-12-13 16:21:46 +05:30
Naresh (OpenERP) 978299a26c [IMP]:added default icon for kanban and gantt view
lp bug: https://launchpad.net/bugs/901601 fixed

bzr revid: nch@tinyerp.com-20111209111336-8sqgc9z9ska1yer8
2011-12-09 16:43:36 +05:30
Numerigraphe - Lionel Sausin a2f4f2669b [IMP] Added missing vim mode lines
lp bug: https://launchpad.net/bugs/524279 fixed

bzr revid: ls@numerigraphe.fr-20111122085848-1atcrcw8e64altcp
2011-11-22 09:58:48 +01:00
Olivier Dony 0c9e9a7643 [IMP] rng,convert: add support for report `usage` attribute
The `usage` attribute may indicate a special purpose
of this report. For instance, the "default" usage
is used to identify the report to include along with
a record for EDI exports.

bzr revid: odo@openerp.com-20111010142226-ceradf4acsbr3r5l
2011-10-10 16:22:26 +02:00
Tristan Hill 7e036f062e [FIX] correct indentation
bzr revid: dmitrijs.ledkovs@credativ.co.uk-20110731134824-t2f3r6uxrw27ah45
2011-07-31 14:48:24 +01:00
Olivier Dony 301497c543 [IMP] lint cleanup
bzr revid: odo@openerp.com-20110624133335-jf5kg6dh9kgxw2dg
2011-06-24 15:33:35 +02:00
Olivier Dony 60cbf9bf14 [MERGE] sync with trunk
bzr revid: odo@openerp.com-20110624102631-kiy8j2d1fc7heeco
2011-06-24 12:26:31 +02:00
Olivier Dony bae7ef7732 [MERGE] merged with latest trunk
bzr revid: odo@openerp.com-20110531132023-or3mm8ccgbh8qmwa
2011-05-31 15:20:23 +02:00