Denis Ledoux
30674c3ed6
[MERGE] forward port of branch 7.0 up to e151e8f
2014-12-23 13:50:25 +01:00
Leonardo Pistone
9b78f06e47
yaml: use selected user and not admin for defaults
2014-09-05 17:31:59 +02:00
Leonardo Pistone
0edfc3fbc9
yaml: use selected user and not admin for onchange
...
Fixes : #1885
2014-09-05 17:31:47 +02:00
Denis Ledoux
2f4be42d8c
[MERGE] forward port of branch 7.0 up to 3632949
2014-08-11 15:28:54 +02:00
Denis Ledoux
2b0487113a
[FIX] yaml tests: Set on_change keys not in view logger as debug instead of warning
...
This is related to commit d31faceb67
(This is to avoid the runbot being yellow if on_change methods have extra keys in the returned value, this is not wrong, the web client will simply ignore them).
2014-08-11 11:11:36 +02:00
Denis Ledoux
81a902a07d
[MERGE] forward port of branch 7.0 up to 5f696ba
2014-08-08 16:18:35 +02:00
Denis Ledoux
d31faceb67
[FIX] yaml tests: extra key in on_change result isn't that bad.
...
In the return result of an on_change, having keys which are not ine the view is not that bad, it is not an actual problem.
Display warning instead of asserting all the keys are in the views.
2014-08-08 11:40:30 +02:00
Christophe Simonis
eb091de615
[FIX] yaml import: not all views have a name
...
bzr revid: chs@openerp.com-20140127180230-eybz2dlc7qdjy1yh
2014-01-27 19:02:30 +01:00
Xavier Morel
6aa79d8cb3
[IMP] attempt to improve yaml test message in order to make its errors somewhat less cryptic
...
and make it easier to understand why it's whining.
bzr revid: xmo@openerp.com-20140108133722-9ac9l3w7wij0pl1i
2014-01-08 14:37:22 +01:00
Christophe Simonis
84fd6ea4f1
[FIX] yaml import: for record tags, do not shadow values explicitly set in yaml.
...
bzr revid: chs@openerp.com-20131124115235-13sc11q51v95hxfr
2013-11-24 12:52:35 +01:00
Raphael Collet
09be864f1d
[IMP] replace all tests like 'registry.get(X)' by 'X in registry' where X is non static
...
bzr revid: rco@openerp.com-20130329140723-dnrl02saky570xg0
2013-03-29 15:07:23 +01: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
ce58e16138
[REF] yaml_import: removed nested import openerp.
...
bzr revid: vmt@openerp.com-20130327154425-uu1fa01tdhrjt8kn
2013-03-27 16:44:25 +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
c313b4073a
[REF] logging: removed pseudo log-level TEST.
...
When --test-enable is used, it is expected that test output is visible,
thus using log-level INFO is natural.
On the down side you lose the nice blue hint that tests did actually
run when --log-level test was given.
bzr revid: vmt@openerp.com-20130326155844-83e2tcqokvblr0ln
2013-03-26 16:58:44 +01:00
Vo Minh Thu
385491f46e
[IMP] yaml_import: add openerp in the evaluation context.
...
bzr revid: vmt@openerp.com-20130325144833-aos5t6x5bc8vi0ss
2013-03-25 15:48:33 +01:00
Fabien Pinckaers
0a933f44e5
[IMP] small fix in YAML XML import
...
bzr revid: fp@openerp.com-20121201113524-8n94vnpxt3g21b1b
2012-12-01 12:35:24 +01:00
Olivier Dony
7f5ad72429
[MERGE] Forward-port 6.1 bugfixes up to rev. 4307
...
rev.4307 = rev-id launchpad_translations_on_behalf_of_openerp-20121125065030-g5if5pybr61la4yj
bzr revid: odo@openerp.com-20121126160320-t2suuik6lhk6wl0x
bzr revid: odo@openerp.com-20121126161836-mv8yymzgbnmif4ve
bzr revid: odo@openerp.com-20121126162023-ejvsapwouyudw6c6
bzr revid: odo@openerp.com-20121126181527-d4yx15372bis77qj
2012-11-26 19:15:27 +01:00
Vo Minh Thu
7d1c5ac4ff
[FIX] yaml_import: why the hell is False not iterable.
...
bzr revid: vmt@openerp.com-20121031164512-qegyw1q865neivgt
2012-10-31 17:45:12 +01:00
Vo Minh Thu
e44f673e61
[FIX] tools.yaml_import: change w.r.t. etree FutureWarning, which was:
...
FutureWarning: The behavior of this method will change in future versions. Use
specific 'len(elem)' or 'elem is not None' test instead.
bzr revid: vmt@openerp.com-20121031161437-pzz2czkaq6rw5t31
2012-10-31 17:14:37 +01:00
Odowan Kenobi
55f8e0485b
[IMP] yaml_import: allow to use a view from another module when creating a record in yaml by prefixing it with <module_name> + '.' (e.g: account.supplier_invoice_form_view). A great patch from odony. Hooray
...
bzr revid: qdp-launchpad@openerp.com-20121030152824-0n2gazacag2hzkbj
2012-10-30 16:28:24 +01:00
Quentin (OpenERP)
820c2551bb
[IMP] tools, yaml_import: the values given to the creation should only include the fields that aren't readonly in the view. Because that's what clients do
...
bzr revid: qdp-launchpad@openerp.com-20121019110604-1gvfcgqvwd1izh71
2012-10-19 13:06:04 +02:00
Quentin (OpenERP)
536cb8775c
[TEST] removing values at record creation in yaml
...
bzr revid: qdp-launchpad@openerp.com-20121018184323-5kq9fb54slij3ioo
2012-10-18 20:43:23 +02:00
Quentin (OpenERP)
6046f9f226
[REF] yaml_import: comments refactoring
...
bzr revid: qdp-launchpad@openerp.com-20121005120653-jyq8352trvki24uc
2012-10-05 14:06:53 +02:00
Quentin (OpenERP)
e143ca2a5b
[FIX] yaml_import: on _create_record, when we gather the default values on the object we can't use base.main_company´ in the yaml file and it's not compatible with the function)
...
bzr revid: qdp-launchpad@openerp.com-20121004154032-qyq5gdur383bfxl9
2012-10-04 17:40:32 +02:00
Quentin (OpenERP)
9255d5d3ef
[REF] yaml_import.py: some doc and error messagse improved
...
bzr revid: qdp-launchpad@openerp.com-20121004122418-a93kll1v7kqfrfc2
2012-10-04 14:24:18 +02:00
Quentin (OpenERP)
74f061ebee
[IMP] yaml_import.py: comments and documentation improved for _create_record()
...
bzr revid: qdp-launchpad@openerp.com-20121004121522-ytttm7xulvo8i1wz
2012-10-04 14:15:22 +02:00
Quentin (OpenERP)
3d1b4398bf
[REf] yaml_import.py: refactoring of _create_record()
...
bzr revid: qdp-launchpad@openerp.com-20121004115617-ihb4j3tdeco68vob
2012-10-04 13:56:17 +02:00
Quentin (OpenERP)
bcf6dccf2d
[MERGE] trunk
...
bzr revid: qdp-launchpad@openerp.com-20121004084807-i3vh4fw8sk7nz7ek
2012-10-04 10:48:07 +02:00
Quentin (OpenERP)
bc0e25938a
[FIX] yaml import: if a field has a default value, we must call its on_change()
...
bzr revid: qdp-launchpad@openerp.com-20121003082306-ml0nodz6ubriwtpi
2012-10-03 10:23:06 +02:00
Quentin (OpenERP)
261e33f740
[FIX] yaml_import: the parent default values must be complete before calling the onchanges()
...
bzr revid: qdp-launchpad@openerp.com-20121002160055-ew4377e7jcqlgzv7
2012-10-02 18:00:55 +02:00
Quentin (OpenERP)
fa852bab33
[FIX] yaml_import: don't erase the initial fields_view_get() result with the fields_view get of the first one2many fiel, other wise things get wrong -_-
...
bzr revid: qdp-launchpad@openerp.com-20121002120405-hvy4ltgrjzesndox
2012-10-02 14:04:05 +02:00
Quentin (OpenERP)
7812c73354
[IMP] yaml processing: improved previous patch by replacing the old parameter view with the result of fields_view_get() directly, to avoid having an extra parameter a bit useless
...
bzr revid: qdp-launchpad@openerp.com-20121001153806-k40ly5vdzh1v3hv3
2012-10-01 17:38:06 +02:00
Olivier Dony
e35992cc53
[MERGE] Sync with trunk
...
bzr revid: odo@openerp.com-20121001144941-16d8mbi5475c3tyb
2012-10-01 16:49:41 +02:00
Quentin (OpenERP)
6c8ed08bf3
[IMP] yaml processing: fixed the creation of record through yaml files in order to use the views and on_change() functions that match the initial fields_view_get().
...
bzr revid: qdp-launchpad@openerp.com-20121001142735-bvqx48fbt9lyesjw
2012-10-01 16:27:35 +02:00
Stephane Wirtel
97278d6ed5
[MERGE] base: fix some address formats and some English
...
bzr revid: stw@openerp.com-20120911150724-yh4kvtstv8fehaj1
2012-09-11 17:07:24 +02:00
Vo Minh Thu
b5c60844da
[FIX] yaml_import: really raise YamlImportExceptions.
...
bzr revid: vmt@openerp.com-20120903122902-djhju2raxkmaspik
2012-09-03 14:29:02 +02:00
Stephane Wirtel
b3988436cb
[REF] Replace the user id 1 by openerp.SUPERUSER_ID
...
bzr revid: stw@openerp.com-20120831135309-o4plzf5wp0kyuzgf
2012-08-31 15:53:09 +02:00
Christophe Simonis
610c8d8078
[IMP] yaml import: log as TEST only for test files
...
bzr revid: chs@openerp.com-20120822101156-v5w2kljumas2cyq0
2012-08-22 12:11:56 +02:00
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