Commit Graph

89 Commits

Author SHA1 Message Date
Olivier Dony e3f997c44d [FIX] yaml_import: support False as a o2m default value
bzr revid: odo@openerp.com-20120625144013-r6j6zabaap6739gf
2012-06-25 16:40:13 +02:00
Olivier Dony a320a72cf8 [FIX] yaml_import: fix incorrect m2m default handling from previous commit
bzr revid: odo@openerp.com-20120621110532-fsi7hz8fllnlab07
2012-06-21 13:05:32 +02:00
DHS (OpenERP) 05b1ef36b8 [yaml_import] : For many2many field default value not stored (case : 574360)
bzr revid: dhs@tinyerp.com-20120619124849-ilnzi9r994hob5go
2012-06-19 18:18:49 +05:30
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
Christophe Simonis 14c5ecc056 [FIX] correct default values from yaml import
bzr revid: chs@openerp.com-20120521135556-xa1jifioz3boxhqt
2012-05-21 15:55:56 +02:00
Vo Minh Thu d2b5a20182 [FIX] tests: mistakenly removed a self argument.
bzr revid: vmt@openerp.com-20120302123535-jxsf49wr4at1ylhh
2012-03-02 13:35:35 +01: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
Bogdan Stanciu d52e838455 [IMP] some English corrections & 'encoding' into 'coding' for several py files. No code change.
bzr revid: bogdanovidiu.stanciu@gmail.com-20120212114509-yrw86zewyv70dow7
2012-02-12 12:45:09 +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
Rucha (Open ERP) afb2735412 [MERGE]: Merge with latest trunk-server
bzr revid: rpa@tinyerp.com-20111219062214-1md1y0k594ygzqx5
2011-12-19 11:52:14 +05:30
Olivier Dony aa6b926e74 [MERGE] YAML: Support m2o None value, courtesy of Dmitrijs Ledkovs (credativ)
bzr revid: odo@openerp.com-20111124153233-4vpb6k1c3ksllsfd
2011-11-24 16:32:33 +01:00
Rucha (Open ERP) d4ad054000 [MERGE]: Merge with latest trunk-server
bzr revid: rpa@tinyerp.com-20111103071744-wkf0qgr8qkl540y7
bzr revid: rpa@tinyerp.com-20111116051225-w9b73w63w8g6z2hk
2011-11-16 10:42:25 +05:30
Rucha (Open ERP) aa10c5eb60 [MERGE]: Merge with latest trunk-server
bzr revid: rpa@tinyerp.com-20111116051110-jtb3437w8vu3qhph
2011-11-16 10:41:10 +05:30
Fabien Pinckaers 0b84257015 [IMP] remove print statement
bzr revid: fp@tinyerp.com-20111115002847-vz2y1q2d852mz6a6
2011-11-15 01:28:47 +01:00
Fabien Pinckaers b859fbd8c6 [IMP] removed print statement
bzr revid: fp@tinyerp.com-20111115001426-bpct1qa3xysjv3cq
2011-11-15 01:14:26 +01:00
Fabien Pinckaers a40c6ac9a8 [FIX] onchange
bzr revid: fp@tinyerp.com-20111114232422-4rgrmipbr7b4x7j0
2011-11-15 00:24:22 +01:00
Fabien Pinckaers 2235425822 [FIX] onchange yaml
bzr revid: fp@tinyerp.com-20111114224224-5kvzufap638l7nx1
2011-11-14 23:42:24 +01:00
Fabien Pinckaers 99c26a209f [FIX] onchange computation on YAML
bzr revid: fp@tinyerp.com-20111114221954-urk25d05y65by96n
2011-11-14 23:19:54 +01:00
Fabien Pinckaers 8d7176a11e [IMP] Yaml scripts calls on_changes and fields_view_get by defaults
Very big change, this may emphasize some of the troubles, runbot can become red
  until we fix them all.

bzr revid: fp@tinyerp.com-20111114212627-5kdjxkws1lqm0c38
2011-11-14 22:26:27 +01:00
Fabien Pinckaers 1c2ab2927d unusedcode
bzr revid: fp@tinyerp.com-20111114001216-etl5g0dl3ya1xfvs
2011-11-14 01:12:16 +01:00
Fabien Pinckaers 954bcd7976 fix
bzr revid: fp@tinyerp.com-20111113230904-vmrxwahfbwub50sf
2011-11-14 00:09:04 +01:00
Fabien Pinckaers aefa8b8c65 [IMP] Allows to put a view argument in a YAML record and OpenERP will
call all the on_change and default_get correctly. This increases
      a lot the coverage and reduce lines of test to develop.

      Put the XML_ID of the view of False so that OpenERP will find the
      first form view itself.

Example to create a PO with all on_change:

!record {model: purchase.order, id: purchase_new, view: False}:
    partner_id: base.res_partner_asus
    order_line:
      - product_id: product.product_product_pc1
        product_qty: 5.0

bzr revid: fp@tinyerp.com-20111113223056-g65pf5vzg7dwkks1
2011-11-13 23:30:56 +01:00
Rucha (Open ERP) 792023dbce [FIX]: yaml: In !delete tag if we provide id of record to be deleted instead of search, it was raising error as node.search is None and we cannot use len()
bzr revid: rpa@tinyerp.com-20111102124614-4q5stzqxwfbayclj
2011-11-02 18:16:14 +05:30
Dmitrijs Ledkovs d0f70e9b29 [IMP] allow to unset fields in yaml import
lp bug: https://launchpad.net/bugs/873456 fixed

bzr revid: dmitrijs.ledkovs@credativ.co.uk-20111013162021-225j5kl25bg9su3a
2011-10-13 17:20:21 +01:00
Rucha (Open ERP) fc8498ea9c [FIX]: Fixed problem of context not passed properly in creating record by !record tag of yml with context.
bzr revid: rpa@tinyerp.com-20111012063145-6feojywf8a7jo91m
2011-10-12 12:01:45 +05:30
Olivier Dony ea019d556f [IMP] yaml_import: make !ref nodes work for m2o values
bzr revid: odo@openerp.com-20111003171302-n1quzvs2pjyn7xr6
2011-10-03 19:13:02 +02:00
Olivier Dony 209390d627 [MERGE] sync with latest trunk
bzr revid: odo@openerp.com-20110927165133-uwl7px6bxl6eu7us
2011-09-27 18:51:33 +02:00
Fabien Pinckaers dee06af4b1 [FIX] YAML empty records
bzr revid: fp@tinyerp.com-20110925140802-gnyr92iepj73ceg0
2011-09-25 16:08:02 +02:00
Vo Minh Thu 46ad605226 [IMP] wsgi:
- added Microsoft specific header for webdav.
- serve WSGI handlers with werkzeug when available.
- effectively use WSGI instead of netsvc HTTP stack.

bzr revid: vmt@openerp.com-20110914104300-n0l3dnmdu3jau7w2
2011-09-14 12:43:00 +02:00
Vo Minh Thu 51117db344 [REF] osv: replace isinstance(m,osv_memory) by m.is_transient().
bzr revid: vmt@openerp.com-20110816095755-2g5cblolcvchtewx
2011-08-16 11:57:55 +02:00
Olivier Dony 301497c543 [IMP] lint cleanup
bzr revid: odo@openerp.com-20110624133335-jf5kg6dh9kgxw2dg
2011-06-24 15:33:35 +02:00
Vo Minh Thu 0e6668a391 [MERGE] ir_model_data unlinking does not use _unlink anymore, clears caches.
bzr revid: vmt@openerp.com-20110622135344-i4u23z22binbq8h1
2011-06-22 15:53:44 +02:00
P. Christeas a2557925b6 yaml_import: fix ambiguous syntax at end of report
When finishing a YAML import, the syntax ["str %d" % int + int] turns
out to be ambiguous and is resolved as [ ("str %d" % int) + int],
leading to a:
  TypeError: cannot concatenate 'str' and 'int' objects

This had been first fixed in commit f46966e044d18a644 (2010-06-30)
(cherry picked from commit cc0c584e5dfbf672d51f61e7207047f357e31471)

bzr revid: xrg@linux.gr-20110605135116-ie2h7gnvnx2kpdoy
2011-06-05 16:51:16 +03:00
Vo Minh Thu 7963da3f94 [REF] modules.__init__:
- combined code from load_init_update_xml and load_demo_xml
- made explicit the "report" kwarg of load_module_graph

bzr revid: vmt@openerp.com-20110510094908-txzj3oeypz7iralk
2011-05-10 11:49:08 +02:00
Vo Minh Thu 94401ff9c1 [MERGE] yml test: more explicit message when some data is missing.
bzr revid: vmt@openerp.com-20110513125218-gnbtcpm3jlgnflff
2011-05-13 14:52:18 +02:00
Naresh (OpenERP) a94ccb1faf [IMP]:moved the logger exception before raise
bzr revid: nch@tinyerp.com-20110513122604-2ewsy6mcyghyci9f
2011-05-13 17:56:04 +05:30
Naresh (OpenERP) 6c210e6290 [IMP]:ValueError Message when running a YAML test that belong to a module test suite as standalone
lp bug: https://launchpad.net/bugs/722472 fixed

bzr revid: nch@tinyerp.com-20110513094405-dyn08nh7uqpu1rjq
2011-05-13 15:14:05 +05:30
Vo Minh Thu f8572e5c60 [IMP] openerp python module.
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies

bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso
2011-02-07 13:57:23 +01:00