Commit Graph

176 Commits

Author SHA1 Message Date
Vo Minh Thu f24a29717e [FIX] orm: correctly set the module name on the model, even when imported with
`import openerp.modules.<module_name>`.

bzr revid: vmt@openerp.com-20120109101647-4hvy3n6eifzeozzq
2012-01-09 11:16:47 +01:00
Vo Minh Thu b71c0095c9 [MERGE] tools.translate: use misc.file_open() to load .po files even from .zip files.
bzr revid: vmt@openerp.com-20120104103212-qq2ad04b1ffydrur
2012-01-04 11:32:12 +01:00
Raphael Collet 487a82ccf9 [MERGE] config: fix missing section name when saving config file
bzr revid: rco@openerp.com-20111223152211-xkqojrv22vkfwhht
2011-12-23 16:22:11 +01:00
Raphael Collet 5096fb5003 [MERGE] yaml_import: fix usage of attribute 'id' in tag !delete
bzr revid: rco@openerp.com-20111223141754-5o7tb680oruk76a6
2011-12-23 15:17:54 +01:00
Raphael Collet 2661edacda [MERGE] translations: import using lower-level sql (translations load about 6 times faster)
bzr revid: rco@openerp.com-20111223104824-fup1cjbjni1fsty1
2011-12-23 11:48:24 +01:00
Vo Minh Thu 6bb854b893 [MERGE] merged the new floats rounding code.
bzr revid: vmt@openerp.com-20111222111551-3np72b3u6qt8lkeo
2011-12-22 12:15:51 +01:00
Olivier Dony 0eb2986e15 [IMP] safe_eval: allow INPLACE* operator opcodes as introduced in PEP-203
bzr revid: odo@openerp.com-20111222101106-h3qbhx53hyhyjor5
2011-12-22 11:11:06 +01:00
Olivier Dony 68e03147ff [MERGE] latest trunk
bzr revid: odo@openerp.com-20111220235717-845hp2z5g8yglw1w
2011-12-21 00:57:17 +01:00
Olivier Dony 759ccd9845 [IMP] float_utils: simplified code, added float_repr
lp bug: https://launchpad.net/bugs/882036 fixed

bzr revid: odo@openerp.com-20111220234740-kotcgoz3opcbkx4b
2011-12-21 00:47:40 +01:00
Antony Lesuisse aa9f466119 [FIX] config blacklist stop_after_init
bzr revid: al@openerp.com-20111220164554-ygdxgz6zpecf7geh
2011-12-20 17:45:54 +01:00
Olivier Dony ed53ef4761 [IMP] float_utils: fix HALF_UP rounding according to discussions on bug 882036
Also improved test and added warning logging when
crossing the precision limit due to too many
significant digits. There is apparently a limitation
in Python's float implementation for this.

bzr revid: odo@openerp.com-20111220163420-lz0sh1h0yjkh6jdc
2011-12-20 17:34:20 +01:00
Olivier Dony dcd1c1daff [IMP] float_utils: better variable names, explain /epsilon/ usage
bzr revid: odo@openerp.com-20111219105718-0jbz01rirl0s64ca
2011-12-19 11:57:18 +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 9ddd05fb3a [REF] float_utils: moved in its own python module
bzr revid: odo@openerp.com-20111216160426-gya8d1d1zymcz8os
2011-12-16 17:04:26 +01:00
Olivier Dony 6add700d7a [MERGE] latest trunk
bzr revid: odo@openerp.com-20111216155624-3nvdsaurjsdo44mx
2011-12-16 16:56:24 +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
Vo Minh Thu 842cb1ad41 [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20111201153214-0iintvpp7crnr2jc
2011-12-01 16:32:14 +01:00
Naresh (OpenERP) f211942d6a [FIX]:loading translation of .zip module
lp bug: https://launchpad.net/bugs/885134 fixed

bzr revid: nch@tinyerp.com-20111130085452-vcrxnv86avhfihom
2011-11-30 14:24:52 +05:30
Naresh (OpenERP) f47e32d437 [FIX]:initialise the parser before adding user defined sections to parser
lp bug: https://launchpad.net/bugs/822836 fixed

bzr revid: nch@tinyerp.com-20111128111430-cki6c7dkthq8ynug
2011-11-28 16:44:30 +05:30
Olivier Dony f31c1d85d8 [MERGE] Missing modelines, requested and provided by Lionel Sausin (Numerigraphe)
bzr revid: odo@openerp.com-20111124161521-512vn56w3c4e303c
2011-11-24 17:15:21 +01:00
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
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
Vo Minh Thu 5ef9dd5f3f [MERGE] Cleaning of the empty dict kwargs (replaced by None).
bzr revid: vmt@openerp.com-20111121133346-2yr8ow3zeyqa9ar5
2011-11-21 14:33:46 +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
Olivier Dony ba2b2bdae1 [IMP] tools.float_*: more tests with negative values, some cleanup
bzr revid: odo@openerp.com-20111115113605-l5e6gg675qbrvjz6
2011-11-15 12:36:05 +01:00
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
Olivier Dony ffe640cece [IMP] tools.float_*: added tests and docstrings
bzr revid: odo@openerp.com-20111114182310-kkzh78uej0uuwhaz
2011-11-14 19:23:10 +01:00
Olivier Dony dcb5ff6eac [IMP] res.currency,base: factor out float rounding methods in tools to allow use without currency
Pending: addition of tests

bzr revid: odo@openerp.com-20111114163617-kw7u8rxcie7m2hj5
2011-11-14 17:36:17 +01:00
Denis Seleznyov 58bb4fadad [FIX]:AccessInit: hash collision error possible
lp bug: https://launchpad.net/bugs/859123 fixed

bzr revid: nch@tinyerp.com-20111114064805-wkw8q4w0nj5h1dtd
2011-11-14 12:18:05 +05:30
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
Numerigraphe - Lionel Sausin 4651cf935e [FIX] unmutable defaults in safe_eval
bzr revid: ls@numerigraphe.fr-20111107152640-t28rgkfs05jwduab
2011-11-07 16:26:40 +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 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
Vo Minh Thu ec3ea4197e [FIX] tools.translate: release.support_email has been removed, so we no longer set the Report-Msgid-Bugs-To value in .po files.
lp bug: https://launchpad.net/bugs/873959 fixed

bzr revid: vmt@openerp.com-20111014150210-qs7n58cocvnjputl
2011-10-14 17:02:10 +02:00
Christophe Simonis 952e4cf602 [IMP] command line: move the option "addons-path" to the right group
bzr revid: chs@openerp.com-20111014093626-4ndm6kzgxd2idmjn
2011-10-14 11:36:26 +02:00
Olivier Dony d13fb7fe7e [MERGE] various bugfixes/improvements (coming from EDI development)
- _original_module is now available on model/browse_records
 - context usage in res.partner.*
 - proper name_search() + default values for res.currency
 - active_model in wkf exec context
 - safe_eval allows try/except/finally
 - yaml_import: !ref {id: xml_id} works
 - ir_mail_server: support for alternative body/subtype
 - default value for web.base.url config parameter
 - consistency rename: Model.*get_xml_id* -> *get_external_id*

bzr revid: odo@openerp.com-20111005100954-c8mbd4kz6kkqaj84
2011-10-05 12:09:54 +02:00
Olivier Dony 33947042fd [IMP] safe_eval: allow OPCODES for try/except/finally
bzr revid: odo@openerp.com-20111005010136-xkowcqda3kres691
2011-10-05 03:01:36 +02:00
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