Xavier Morel
c741c0eeb1
[IMP] reimplement t-field using new converters
...
bzr revid: xmo@openerp.com-20130926145126-21hlubvs39a0z68j
2013-09-26 16:51:26 +02:00
Xavier Morel
789c0d8a6b
[ADD] Conversions from field values to "html" content
...
> many2one --> mettre <br/> si multi-line, html escape le reste (ex:
> adresse sur un event, on a du mettre dans un <pre> mais ce n'est pas
> bien)
> text --> mettre <br/> si multi-line, html escape le reste (ex:
> description d'un produit, à droite)
> char --> normalement pas de multi-line
> fields.binary --> t-field on image field ne semble pas fonctionner
> en écriture (la photo d'une fiche produit)
(validates that the binary field's content is image data by opening it
with PIL, then generates an <img> tag)
TODO:
> fields.float --> utiliser le digits pour formatter les decimals
> correctement (ex: prix d'un produit, à deux décimales)
> On aura aussi besoin d'un widget="currency", un peu comme dans la
> vue form du client web.
bzr revid: xmo@openerp.com-20130926133850-ab14h241q878jbom
2013-09-26 15:38:50 +02:00
Thibault Delavallée
5aad20b9a6
[IMP] fields: date, datetime: added MONTHS variable holding list of (month_number, month_name)
...
bzr revid: tde@openerp.com-20130709123740-18t5yhbtoru6vpne
2013-07-09 14:37:40 +02:00
Christophe Simonis
5a58a48ef5
[MERGE] forward port of branch saas-1 up to revid 4893 chs@openerp.com-20130701153735-xnbb8zauabf1k63u
...
bzr revid: chs@openerp.com-20130702144745-763n9cdphkppshxl
2013-07-02 16:47:45 +02:00
Denis Ledoux
9f4397fc85
[MERGE]forward port of latest 7.0 bugfixes, up to rev 5017
...
rev 5017 = launchpad_translations_on_behalf_of_openerp-20130626061833-drxvzosffezp089g
bzr revid: dle@openerp.com-20130627120342-znttbs00q5bkf4ov
2013-06-27 14:03:42 +02:00
Quentin (OpenERP)
bcac5bd834
[FIX] ir_property: fixes in property fields related to multi company use cases
...
bzr revid: qdp-launchpad@openerp.com-20130624085731-fthhdpdm4ldi3220
2013-06-24 10:57:31 +02:00
Olivier Dony
9a5e317618
[FIX] OPW 592482: browse_record should not prefetch binary fields
...
This was apparently a long-standing issue due to a
strange handling of the _prefetch attribute on
columns: accessing a column would only trigger
the prefetching if its _prefetch attribute was
True, but the prefetching itself would also
prefetch columns that had _prefetch False.
We clearly want it the other way around, or
at least we want _prefetch to decide whether
a column is included in any given prefetching
pass. We can skip the prefetching pass when
the only field being accessed has _prefetch
False because it is likely the other fields
have already been prefetched separately.
This last subtlety should not make any
noticeable performance difference.
lp bug: https://launchpad.net/bugs/1177965 fixed
bzr revid: odo@openerp.com-20130620131057-v7s4qfqj976j3ufo
2013-06-20 15:10:57 +02:00
Quentin (OpenERP)
31d05360b2
[REF] fields: removed deprecated view_load attribute and removed useless first argument in property fields definition
...
bzr revid: qdp-launchpad@openerp.com-20130619091332-29pisdnyfemn1u3d
2013-06-19 11:13:32 +02:00
Amit Dodiya
244c82fe4f
[FIX]ir_property: If we add a property on a many2one field with multicompany the value of main company is replaced in all companies value
...
bzr revid: ado@tinyerp.com-20130604110137-jclbsmkohs5mm66w
2013-06-04 16:31:37 +05:30
Amit Dodiya
f7d2e495fd
[FIX]ir_property: If we add a property on a many2one field with multicompany the value of main company is replaced in all companies value
...
bzr revid: ado@tinyerp.com-20130531120925-s10hwscv2gexh27a
2013-05-31 17:39:25 +05:30
Amit Dodiya
f1db39aab1
[FIX]ir_property: If we add a property on a many2one field with multicompany the value of main company is replaced in all companies value
...
bzr revid: ado@tinyerp.com-20130531115736-ecrpaer2f2yhnvs5
2013-05-31 17:27:36 +05:30
Amit Dodiya
bfa4ab09f6
[FIX]ir_property: If we add a property on a many2one field with multicompany the value of main company is replaced in all companies value
...
bzr revid: ado@tinyerp.com-20130531101249-1w17yuoklhmiv2cc
2013-05-31 15:42:49 +05:30
Amit Dodiya
99d4732f04
[FIX]ir_property: If we add a property on a many2one field with multicompany the value of main company is replaced in all companies value
...
bzr revid: ado@tinyerp.com-20130527115951-7zssei2fnxyqzrpq
2013-05-27 17:29:51 +05:30
Amit Dodiya
b7e1be5539
[FIX]ir_property: If we add a property on a many2one field with multicompany the value of main company is replaced in all companies value
...
bzr revid: ado@tinyerp.com-20130527114601-tqzlrna1n9jssou2
2013-05-27 17:16:01 +05:30
c01e2fe122
[FIX]ir_property: If we add a property on a many2one field with multicompany the value of main company is replaced in all companies value
...
bzr revid: ado@tinyerp.com-20130520090111-h20jboltev763mj6
2013-05-20 14:31:11 +05:30
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
Olivier Dony
8e5f0e2ce2
[FIX] fields.date[time]: context_today()/context_timestamp() should fallback to user TZ if context TZ is missing
...
This takes care of cases where the context is missing,
e.g. for workflow-based operations, and is similar
to the way tools.translate._() falls back to the user
language.
lp bug: https://launchpad.net/bugs/949516 fixed
bzr revid: odo@openerp.com-20130111175717-u8r1t7s8872bz2rx
2013-01-12 06:57:17 +13:00
Raphael Collet
3040114651
[MERGE] trunk-style-improvements-xmo (Python stylistic improvement)
...
bzr revid: rco@openerp.com-20121217110150-4ijt04ic17miktq7
2012-12-17 12:01:50 +01:00
Xavier Morel
c6079dd6bb
[REM] unnecessary parens
...
bzr revid: xmo@openerp.com-20121214123803-6xu2s1ndnoyj4i3e
2012-12-14 13:38:03 +01:00
Xavier Morel
a5cb8460c6
[FIX] __init__ can't return values
...
bzr revid: xmo@openerp.com-20121214122525-bd5207viiz4vqi8x
2012-12-14 13:25:25 +01:00
Vo Minh Thu
1a4fd71880
[FIX] test_fields: _all_columns must be modified similarly to _columns.
...
(Because of the newly added method check_field_access_rights().)
bzr revid: vmt@openerp.com-20121212134755-ykfdykqepwzti5uf
2012-12-12 14:47:55 +01:00
Thibault Delavallée
f0abd6f49e
[MERGE] Sync with trunk.
...
bzr revid: tde@openerp.com-20121210083805-1t45n6xxmptpo28o
2012-12-10 09:38:05 +01:00
Antony Lesuisse
2f1f17ead9
[IMP] fields warning display args to locate them
...
bzr revid: al@openerp.com-20121209193952-ukk0aie3d8fg18q2
2012-12-09 20:39:52 +01:00
Thibault Delavallée
ea01dfe9dd
[CLEAN] fields.py: added auto_join in one2many and many2one __init__, binded on _auto_join. Added some short explanations in fields.py about the attribute.
...
bzr revid: tde@openerp.com-20121205153410-07vo3j1c641xgmda
2012-12-05 16:34:10 +01:00
Thibault Delavallée
638fc20618
[MERGE] Sync with trunk.
...
bzr revid: tde@openerp.com-20121130093658-uvm0gbo90su88psh
bzr revid: tde@openerp.com-20121203131657-4gcp4wreylnmw2or
bzr revid: tde@openerp.com-20121204082427-7zdzn6f21xzvxby9
2012-12-04 09:24:27 +01:00
Thibault Delavallée
1bda6f44db
[ADD] fields.py: added _auto_join attribute. This attribute will be used to automatically generate join queries, instead of doing sub-queries returning an 'id in' domain.
...
bzr revid: tde@openerp.com-20121127153432-3ttqm8pmgk3l7a77
2012-11-27 16:34:32 +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
Christophe Matthieu
248f81277f
[FIX] fields.html: behave as fields.text for empty values: store NULL
...
bzr revid: chm@openerp.com-20121119104332-bqm81nuik6pqsbf9
2012-11-19 11:43:32 +01:00
Thibault Delavallée
62c419e66f
[IMP] tools: mail: improved append_content_to_html, including plaintext2html. Updated tests.
...
bzr revid: tde@openerp.com-20121109123521-e04g4zrhtv947l1r
2012-11-09 13:35:21 +01:00
Thibault Delavallée
8a1a612fba
[FIX] fields.py: html_sanitize now in mail file.
...
bzr revid: tde@openerp.com-20121106122758-iwyxmedgnznpjyna
2012-11-06 13:27:58 +01:00
Raphael Collet
750ef9d931
[IMP] fields.related._fnct_read: small improvements
...
bzr revid: rco@openerp.com-20121105131712-sc70thn3wpyq6o7y
2012-11-05 14:17:12 +01:00
Raphael Collet
52c29ae1c0
[FIX] fields.related._fnct_read: fix handling of type many2one
...
bzr revid: rco@openerp.com-20121105094929-oz7trjzwlqw90499
2012-11-05 10:49:29 +01:00
Raphael Collet
db13e8591a
[FIX] fields.related._fnct_write: handle the case where ids is a single id
...
bzr revid: rco@openerp.com-20121105082259-rcmcjs5n1eimtcpl
2012-11-05 09:22:59 +01:00
Raphael Collet
7e7d877e17
fields.related: simplify read and write methods
...
bzr revid: rco@openerp.com-20121029153504-157ss9948o86uv6z
2012-10-29 16:35:04 +01:00
Raphael Collet
42f0962f99
[MERGE] from trunk
...
bzr revid: rco@openerp.com-20121029153047-sd8i97sfkdy1wcb1
2012-10-29 16:30:47 +01:00
Xavier Morel
1e4a677f05
[MERGE] from trunk
...
bzr revid: xmo@openerp.com-20121010154436-wz29sdkbs9vvhjba
2012-10-10 17:44:36 +02:00
Olivier Dony
bd31b7c553
[API/IMP] fields: cleanup field_to_dict + make @deprecated available in fields_get()
...
Renamed the m2m extra info keys, as their names
were quite confusing (third_table?), + removed
the "func_obj" key for function fields, as
it was a duplicate of the "relation" kay that
is already present for all relationship fields.
These renames should not break anything, as this
info should only be used for debug, but they still
constitute an API backwards-incompatible change.
bzr revid: odo@openerp.com-20120926130942-doauqgh6v35vhi29
2012-09-26 15:09:42 +02:00
Xavier Morel
9805c665c8
[ADD] big bit on new import: pretty much everything but o2m
...
bzr revid: xmo@openerp.com-20120919114047-w4paoim95oxr91zb
2012-09-19 13:40:47 +02:00
Olivier Dony
a4f30bf11f
[IMP] fields: review/simplify patch for callable domains on fields.one2many
...
bzr revid: odo@openerp.com-20120905231232-u6dx3ak9b0y95zvl
2012-09-06 01:12:32 +02:00
Thibault Delavallée
12294252d4
[MERGE] Merged with server/trunk.
...
bzr revid: tde@openerp.com-20120903081949-ucy4e1kpbb30dhko
2012-09-03 10:19:49 +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
Fabien Pinckaers
f21f1a68aa
fix
...
bzr revid: fp@tinyerp.com-20120820132909-iw8faaon2z4c5e77
2012-08-20 15:29:09 +02:00
Fabien Pinckaers
64dc05afc6
fix
...
bzr revid: fp@tinyerp.com-20120820132501-7724jwavhzan3xyp
2012-08-20 15:25:01 +02:00
Fabien Pinckaers
1bd841d101
fix
...
bzr revid: fp@tinyerp.com-20120820131921-7ydvs9x784t4hn4l
2012-08-20 15:19:21 +02:00
Fabien Pinckaers
0d5a185956
fix
...
bzr revid: fp@tinyerp.com-20120820131726-7iassml4p93z7qsg
2012-08-20 15:17:26 +02:00
Fabien Pinckaers
a054299277
imp
...
bzr revid: fp@tinyerp.com-20120820110455-jelu0xl7jil36q18
2012-08-20 13:04:55 +02:00
Fabien Pinckaers
6021b4473a
[IMP] message_read on mail.message
...
bzr revid: fp@tinyerp.com-20120820105252-o1eqy5yfqb66hga9
2012-08-20 12:52:52 +02:00
Fabien Pinckaers
03f4b992ad
[IMP] need action & mails
...
bzr revid: fp@openerp.com-20120819145928-5bw5lo6dn4ni4gl7
2012-08-19 16:59:28 +02:00
Thibault Delavallée
65ef813eb0
[MERGE] Merged with main server.
...
bzr revid: tde@openerp.com-20120815193149-k1ue0t3i035gvyu9
2012-08-15 21:31:49 +02:00
niv-openerp
1885387ace
[IMP] added html field
...
bzr revid: nicolas.vanhoren@openerp.com-20120814130656-4pa91mud8u30mqr5
2012-08-14 15:06:56 +02:00
Thibault Delavallée
c9fda0b13a
[MERGE] Merged with server/trunk.
...
bzr revid: tde@openerp.com-20120813181359-s0hhsdp6ev7dtznr
bzr revid: tde@openerp.com-20120814114047-z3guxfe9zxmsrk46
2012-08-14 13:40:47 +02:00
niv-openerp
11780a2267
Added some code to sanitize html
...
bzr revid: nicolas.vanhoren@openerp.com-20120813125307-d8cycdvtd7ad0f8e
2012-08-13 14:53:07 +02:00
niv-openerp
7341bd30cc
Added html field type
...
bzr revid: nicolas.vanhoren@openerp.com-20120813114619-lqr9zu0rkz6737rp
2012-08-13 13:46:19 +02:00
Thibault Delavallée
a82ae8d83e
[CLEAN] Removed unnecessary \(.
...
bzr revid: tde@openerp.com-20120809144526-8mhbrr56mfjodygq
2012-08-09 16:45:26 +02:00
Thibault Delavallée
5ce0720b75
[IMP] fields: many2many: extracted query generation, to ease overrides.
...
bzr revid: tde@openerp.com-20120809144203-sm93gsl2db608z85
2012-08-09 16:42:03 +02:00
Thibault Delavallée
616e7a92ec
[IMP] orm: added a deprecated attribute on fields. If not False, is a string, and make the ORM print a warning telling the field is deprecated.
...
Use: 'my_field': fields.char('Old field', size=64, deprecated="This field will be removed as of version 42 of OpenERP. Please update your module to use 'my_new_field' instead.")
bzr revid: tde@openerp.com-20120809083103-pjc9ynvmtojnfnah
2012-08-09 10:31:03 +02:00
Antony Lesuisse
67a9ddd3f8
[REM] fields float integer useless warning, required can be used to color the field in blue on form view
...
bzr revid: al@openerp.com-20120806104514-3cx1dm2bewhmlvbo
2012-08-06 12:45:14 +02:00
Olivier Dony
da9ccf503a
[FIX] fields.reference: missing coercion to int for res_id, as pointed out by XMO
...
bzr revid: odo@openerp.com-20120803134111-jrzrszqobm0r02on
2012-08-03 15:41:11 +02:00
Olivier Dony
bc70c8711b
[IMP] name_get: support more field types and improve previous name_get changes
...
bzr revid: odo@openerp.com-20120802170244-t1z5gogwgybtavrm
2012-08-02 19:02:44 +02:00
Xavier Morel
ce02c0887a
[IMP] coerce 'falsy' char sizes to None
...
Otherwise users using fields.char(size=False) will see their content disappear without warning, not cool
bzr revid: xmo@openerp.com-20120723140502-nrtgw0o47ewj25qa
2012-07-23 16:05:02 +02:00
Xavier Morel
8b0f8a0992
[IMP] replace equality None test by identity test
...
bzr revid: xmo@openerp.com-20120723135215-7n63uh4ikulsdc6r
2012-07-23 15:52:15 +02:00
Xavier Morel
c5db4ca91d
[IMP] field.char: make string and size optional
...
* Increases coherence with other fields (default string is 'unknown')
* Char fields defaut to unbounded, bounds are optional
bzr revid: xmo@openerp.com-20120723134931-b5moeenk0db5m2ss
2012-07-23 15:49:31 +02:00
tfr@openerp.com
cd3879f107
[FIX] fields.many2many : Always respect destination table order
...
bzr revid: tfr@openerp.com-20120619151651-fokfu5gkfk3qfhxs
2012-06-19 17:16:51 +02:00
Olivier Dony
7af2e71817
[FIX] fields: remove leftover print statement from r.4160
...
bzr revid: odo@openerp.com-20120521073851-0e9k8ujhexysg95v
2012-05-21 09:38:51 +02:00
Fabien Pinckaers
0a7c943856
[IMP] improved kanban view of modules
...
bzr revid: fp@openerp.com-20120519081408-vugv7qgzsqtlssj0
2012-05-19 10:14:08 +02:00
Olivier Dony
dbe7b45276
[IMP] orm: support model-level @groups attribute for access restriction
...
This is a partial implementation with no support for
restricting read/write access via RPC. This first
part only covers the removal of the restricted fields
from the client-side view, i.e. in the results of
fields_view_get() and fields_get().
The second part will come later and will cover the
real low-level access control.
bzr revid: odo@openerp.com-20120518143625-ps9db62vzrc2pylh
2012-05-18 16:36:25 +02:00
Xavier Morel
931c237686
[FIX] previous fix: actual module should be __builtin__
...
apparently we do weird things with __builtins__, on my machine it's consistently an alias to the __builtin__ importable module, but in the server it's a dict
bzr revid: xmo@openerp.com-20120419130245-ael83wc5h310m38s
2012-04-19 15:02:45 +02:00
Xavier Morel
8f5c30c7e9
[FIX] really convert to float when trying to convert to float
...
might work better than converting to a float field
bzr revid: xmo@openerp.com-20120419115504-2tic6l0qjb8zlhuh
2012-04-19 13:55:04 +02:00
Vo Minh Thu
05422654b6
[IMP+FIX] fields: removed references to one2one, but also
...
corrected some typo `.. in (xxx)` instead of `.. in (xxx,)` (Note the trailing comma).
There is still a (non-harmful) reference to one2one in the base_synchro addons.
bzr revid: vmt@openerp.com-20120322164540-9rl8iidj4wrjohru
2012-03-22 17:45:40 +01:00
Vo Minh Thu
46a190aaf8
[IMP] fields: removed any reference to integer_big.
...
bzr revid: vmt@openerp.com-20120322163850-sxfd9g1x96jstr51
2012-03-22 17:38:50 +01:00
Vo Minh Thu
c5ef5e1394
[IMP] fields: removed deprecated fields (time, integer_big, one2one).
...
bzr revid: vmt@openerp.com-20120322161825-dlbnj9p2xe0mhhxx
2012-03-22 17:18:25 +01:00
Raphael Collet
cd47a2fcaf
[MERGE] from trunk
...
bzr revid: rco@openerp.com-20120319092142-bk2yjoao67g712nb
2012-03-19 10:21:42 +01:00
Raphael Collet
82f492bc2c
[FIX] related fields: fix and simplify search (was wrong with a single indirection)
...
bzr revid: rco@openerp.com-20120309152938-n467ap8hnw406rau
2012-03-09 16:29:38 +01:00
Olivier Dony
b5db852b3a
[FIX] fields.binary: allow writing base64 unicode string values
...
The fields.binary type allows storing arbitrary
byte arrays, but it has been used historically
to store base64-encoded versions of the binaries.
This was partially related to the way these binary
values are serialized when transferred using the
standard XML-RPC protocol.
With the introduction of JSON-based RPC calls
alongside the 6.1 web client, these base64-encoded
binaries may now be deserialized as unicode ASCII
strings instead of 8-bit strings. That seems like
an acceptable behavior and we can simply coerce
these unicode strings to bytes strings as we know
they will be pure ASCII. Any non-ASCII unicode
value for binary field makes no sense and should
be passed as a byte string directly.
Thanks to Rui Barreiros for providing the final
hint in bug 919982 comments that lead to the
identification of this bug.
lp bug: https://launchpad.net/bugs/899794 fixed
bzr revid: odo@openerp.com-20120222093937-quifmtsfc9gaa9ar
2012-02-22 10:39:37 +01:00
Olivier Dony
e9143a0ba8
[FIX] reports: formatLang() should render datetime values in appropriate timezone
...
lp bug: https://launchpad.net/bugs/932170 fixed
bzr revid: odo@openerp.com-20120215133748-2iodxq0z1vqhyz13
2012-02-15 14:37:48 +01:00
Olivier Dony
3d637db6d0
[FIX] fields.sparse: fix multiple relational sparse fields on same model, courtesy of Guewen Baconnier (Camptocamp)
...
lp bug: https://launchpad.net/bugs/912203 fixed
bzr revid: odo@openerp.com-20120214125725-p2ayh1lckr50vebi
2012-02-14 13:57:25 +01:00
Olivier Dony
aa658124a6
[FIX] fields.date.context_today: proper signature for call by default_get()
...
The ORM automatically passes a Model instance
as the first argument to _default callables,
historically provided to give lambda functions
access to the Model instance.
context_today() does not need it but takes it
for compatibility purposes.
This also means that when called explicitly
within business code we should now pass a
Model instance as first argument, typically 'self'
bzr revid: odo@openerp.com-20120214122413-rznpdyqajrzswk4o
2012-02-14 13:24:13 +01:00
Olivier Dony
ed677bbfae
[IMP] fields.date.context_today: actually use the optional timestamp + better naming
...
- optional datetime was not being used
- parameter renamed to timestamp to better
indicate that it must be a datetime, not
a simple date
bzr revid: odo@openerp.com-20120214085044-unpa77hork25gtif
2012-02-14 09:50:44 +01:00
Olivier Dony
2b8a0616c7
[ADD] field.date.context_today: added function to use as _defaults for date fields
...
As discussed on bug 925361, in order to have
a consistent behavior everywhere we need default
values to be using the client's timezone, just
as if the user had set the value themselves
using their local clock.
Because fields.date values are timezone
agnostic by design, they must be correctly
initialized from the start, no conversion
happens later.
The new context_today method is mean to be
easily usable as _defaults initialize, i.e.:
'date_field': fields.date.context_today
is all that is needed.
It also avoids the classical mistake of
forgetting to make the default value
dynamic and directly passing the result of
a time.strftime() call.
lp bug: https://launchpad.net/bugs/925361 fixed
bzr revid: odo@openerp.com-20120213180355-ruyw5j2w7r06kyue
2012-02-13 19:03:55 +01:00
Vo Minh Thu
79d7e883f5
[IMP] fields: turn the warning() in a debug() for the required bool/int/float deprecation message.
...
bzr revid: vmt@openerp.com-20120209094342-n1n7ex5ef25bjvfw
2012-02-09 10:43:42 +01:00
Vo Minh Thu
283304f9a2
[IMP] warnings: turn warnings.warn into logging.warning:
...
Warnings are handled with the other logs (and not always sent to stderr),
they also appear under a module __name__ channel instead of py.warn.
The disadvantage is that there is no longer specific warnings,
such as pending deprecation warning or deprecation warning.
bzr revid: vmt@openerp.com-20120125132407-u33idc0qh7ecs1i5
2012-01-25 14:24:07 +01:00
Vo Minh Thu
0f9721533d
[IMP] fields: use simplejson instead of json (for consistency with orm.py).
...
bzr revid: vmt@openerp.com-20120118123334-xxunyo1ph8jiwxc0
2012-01-18 13:33:34 +01:00
Olivier Dony
4dfc1e53f5
[FIX] fields.o2m: respect static @domain when clearing a field (writing [(5,..)])
...
bzr revid: odo@openerp.com-20120109140432-3np49l2esds0l1yb
2012-01-09 15:04:32 +01:00
Guewen Baconnier
8b8a0234f0
[FIX] Sparse field: get relation of the correct field
...
bzr revid: guewen.baconnier@camptocamp.com-20120105104051-7jn2n5kd92nexa31
2012-01-05 11:40:51 +01:00
Olivier Dony
bdce754108
[IMP] cleanup deprecated method=True param for function fields
...
bzr revid: odo@openerp.com-20120104133027-oaydmngk2dfc22mk
2012-01-04 14:30:27 +01:00
Olivier Dony
482aee1951
[IMP] fields.sparse: custom sparse field creation now working + handle deleted resources properly
...
bzr revid: odo@openerp.com-20111222182405-425rzyl6idg9aocu
2011-12-22 19:24:05 +01:00
Olivier Dony
d925235e62
[MERGE] sync with trunk
...
bzr revid: odo@openerp.com-20111222102555-bydsozbdu6urkj31
2011-12-22 11:25:55 +01:00
Olivier Dony
f93bb856e2
[MERGE] Fix bug 891544 - prevent double-encoding of binary fields
...
lp bug: https://launchpad.net/bugs/891544 fixed
bzr revid: odo@openerp.com-20111128124535-s8cesplj379ssfqm
2011-11-28 13:45:35 +01:00
Naresh (OpenERP)
c11d1f06a9
[FIX]:Incorect format of report in OpenOffice
...
lp bug: https://launchpad.net/bugs/891544 fixed
bzr revid: nch@tinyerp.com-20111128100836-ad40b5hvoeqyoggm
2011-11-28 15:38:36 +05:30
Olivier Dony
29574262c5
[FIX] fields.related: lazy init should avoid race conditions as much as possible
...
bzr revid: odo@openerp.com-20111118131104-a16vg7q2ws8se2ob
2011-11-18 14:11:04 +01:00
Olivier Dony
ca5fcc2bdf
[IMP] orm,fields: some cleanup for sparse field implementation (wip)
...
bzr revid: odo@openerp.com-20111117143010-9nv7inr5ijzykgem
2011-11-17 15:30:10 +01:00
Olivier Dony
3bf3279f25
[MERGE] Implementation of sparse field (to review), by Sebastien Beau, Akretion
...
bzr revid: odo@openerp.com-20111116172525-rmri79n9hpf2plwg
2011-11-16 18:25:25 +01:00
Olivier Dony
ca05a8dbc6
[ADD] orm.fields_get: include `relation_field` for one2many fields
...
bzr revid: odo@openerp.com-20111109155645-f7u5z14xhju271d5
2011-11-09 16:56:45 +01:00
Guewen Baconnier
a59c66ed40
[FIX] fields.sparse: do not store the keys with null values anymore. We don't need them (and this will help to keep clean json fields) and this caused problems at the read from client because None values were sent by XMLRPC
...
bzr revid: guewen.baconnier@camptocamp.com-20111101151639-rcos08pbnxhhxfxa
2011-11-01 16:16:39 +01:00
Olivier Dony
956ed719ae
[IMP] fields.boolean,integer,float: warning when required=True, as it has no effect
...
A PendingDeprecationWarning is used in order to reduce the
verbosity of the logging, and to indicate that we might
forbid passing required=True in a future OpenERP version
for fields types where it makes no sense.
bzr revid: odo@openerp.com-20111021142836-0k4qruhe1vgodysu
2011-10-21 16:28:36 +02:00
Quentin (OpenERP)
2be7586c54
[FIX] fields.related: fix example in docstring
...
bzr revid: qdp-launchpad@openerp.com-20111013093423-lynuxoan01327jv9
2011-10-13 11:34:23 +02:00
Vo Minh Thu
f8e797ea28
[MERGE] fields.property: correctly tests for many2one/relative fields.
...
bzr revid: vmt@openerp.com-20111006074753-e505g95tcz8js5ju
2011-10-06 09:47:53 +02:00
Vo Minh Thu
491dc693d6
[IMP] fields.property: be more explicit when testing if something is a browse_record.
...
bzr revid: vmt@openerp.com-20111005154857-ic3yzb3dead33us3
2011-10-05 17:48:57 +02:00
Vo Minh Thu
c629763a0f
[FIX] two loops one loop (a previous commit) was wrongly done :(.
...
bzr revid: vmt@openerp.com-20111005135549-xvhtt57fl1ib7o6e
2011-10-05 15:55:49 +02:00
Vo Minh Thu
7ccc7f388f
[IMP] fields.reference: two loops one loop.
...
bzr revid: vmt@openerp.com-20111005105103-cutnuvfkgsjej3vc
2011-10-05 12:51:03 +02:00
Yogesh (OpenERP)
2fd484263a
[MERGE] Merge wtih trunk server upto revision no 3722.
...
bzr revid: ysa@tinyerp.com-20111005071001-x8cdfvarwfk4brkb
2011-10-05 12:40:01 +05:30
Yogesh (OpenERP)
4de6b85979
[FIX] fix problem of poperty filed. if property field have a default value then check the id.
...
bzr revid: ysa@tinyerp.com-20111005065155-nfwersyv05ddjq40
2011-10-05 12:21:55 +05:30
Yogesh (OpenERP)
92b6181556
[MERGE] Merge wtih trunk server upto revision no 3722.
...
bzr revid: ysa@tinyerp.com-20111005055756-h6fp84gpjwg42w2v
2011-10-05 11:27:56 +05:30
Olivier Dony
f4ffbd79f4
[IMP] field.m2m: better doc for auto-named m2m relationships
...
bzr revid: odo@openerp.com-20111003132653-413c41exoj64q416
2011-10-03 15:26:53 +02:00
Olivier Dony
babb7aa0ec
[FIX] fields: m2m SQL names may be dynamic now, care for it in field_to_dict()
...
Also cleaned up field_to_dict signature and callers to
honor conventions.
lp bug: https://launchpad.net/bugs/863019 fixed
bzr revid: odo@openerp.com-20110930112348-4c8undh1d6h1y3ps
2011-09-30 13:23:48 +02:00
Olivier Dony
ad4a216e7d
[IMP] fields.m2m: support implicit generation of m2m SQL names
...
This allows for transparent inheritance of m2m columns via _inherit,
as long as the m2m relationship table is not explicitly named in
the declaration.
bzr revid: odo@openerp.com-20110926171451-n2jg8pbl5mq715vk
2011-09-26 19:14:51 +02:00
Olivier Dony
f81fe2dc6e
[IMP] orm: enforce proper m2o ondelete rules between TransientModels and Models
...
bzr revid: odo@openerp.com-20110926111226-fu834vqwm4gbxk8l
2011-09-26 13:12:26 +02:00
Olivier Dony
f2f3c916c9
[REM] orm: m2m._no_foreign_keys attribute removed, replaced by SQL check
...
bzr revid: odo@openerp.com-20110923162929-nhl32ie6zc6uuj8h
2011-09-23 18:29:29 +02:00
Olivier Dony
0d3085d14f
[MERGE] sync with latest trunk
...
bzr revid: odo@openerp.com-20110922154155-jq811w768d9zfgim
2011-09-22 17:41:55 +02:00
Naresh (OpenERP)
1d71f8484a
[MERGE FROM TRUNK]
...
bzr revid: nch@tinyerp.com-20110919093224-5i3dslmw5ubatdjt
2011-09-19 15:02:24 +05:30
sebastien beau
926980b325
[IMP] add a new class sparse
...
bzr revid: sebastien.beau@akretion.com.br-20110917100538-63iyfpcuyhff4z5d
2011-09-17 12:05:38 +02:00
Vo Minh Thu
cd89f5a5a4
[MERGE] fields: correct (5,_) operation on many2many (delete instead of set null).
...
lp bug: https://launchpad.net/bugs/818189 fixed
bzr revid: vmt@openerp.com-20110915152052-ujbfj2zgv06eairy
2011-09-15 17:20:52 +02:00
Olivier Dony
7d3d3a6aba
[FIX] fields.function: type=binary: workaround for the low byte values (<=0x1f) unsupported in XML
...
We have a workaround in place for fields.function of binary type
that may return values that are invalid in XML documents, and thus
in our XML-RPC protocol. But out workaround failed to care for the
invalid XML codepoints (below 0x1f) that are well valid in UTF-8
encoding.
Added a sanity check for that as well, using a terrible workaround
for this last resort case: b64-encode the bytes, to avoid crashing
the request.
bzr revid: odo@openerp.com-20110906173140-vc4tl6wstzt8h06o
2011-09-06 19:31:40 +02:00
sebastien beau
4fc1ffe10a
[REF] refactor serialized field based on a patch sent by xrg by email, thanks xrg ;)
...
bzr revid: sebastien.beau@akretion.com.br-20110904234304-6uablzky9kwn5x3k
2011-09-05 01:43:04 +02:00
Vo Minh Thu
e1b2dec200
[IMP] orm: option to make many2many relation tables without foreign key constaint.
...
The option is not completely flexible (no possibility to choose to have a foreign
key on one of the fields. No similar option is provided for many2one either.
It is seldom used (e.g. in account_followup addons).
bzr revid: vmt@openerp.com-20110829094354-0yf6t6329j8e765q
2011-08-29 11:43:54 +02:00
Vo Minh Thu
66f9426e9b
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20110826140542-5ii29az0e6czr29l
2011-08-26 16:05:42 +02:00
Naresh (OpenERP)
8d0cf999ac
[FIX]:_inherits for multilevel inheritence
...
lp bug: https://launchpad.net/bugs/823691 fixed
bzr revid: nch@tinyerp.com-20110826103516-o220jqwqdr3uwjhn
2011-08-26 16:05:16 +05:30
Vo Minh Thu
e10676bf66
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20110826074112-b2a4xm0cewwjqpcx
2011-08-26 09:41:12 +02:00
Xavier Morel
b5a429d008
[FIX] fnct_inv in client actions params, fix docstring for fnct_inv (fnct_inv only takes a single record id, not a sequence of ids)
...
bzr revid: xmo@openerp.com-20110825123049-bmvebm86gqgr6w43
2011-08-25 14:30:49 +02:00
Vo Minh Thu
c086f79ae1
[MERGE] merged trunk.
...
bzr revid: vmt@openerp.com-20110822111142-11251h9i4ueguq6g
2011-08-22 13:11:42 +02:00
Olivier Dony
8ac7724a67
[IMP] fields.function: don't wrap int values unless really needed
...
There was no need to wrap/cast int values for values less
than 2^31-1, which the highest XML-RPC int value.
Also, instead of wrapping them in strings, we can use
float values, which are 64bits based in the XMLRPC standard,
and closer to the real value (for comparisons, etc.).
Added note for integer_big, as a reminder of this possible
issue.
bzr revid: qdp-launchpad@openerp.com-20110818120550-ulvffm6ka9f3c5ym
2011-08-18 14:05:50 +02:00
gpa
5966666250
[FIX] Fixed problem of unlink tuple (5) in many2many
...
lp bug: https://launchpad.net/bugs/818189 fixed
bzr revid: gpa@tinyerp.com-20110817093542-bi6ges077dc7un3e
2011-08-17 15:05:42 +05:30
Vo Minh Thu
c462ff9ad4
[REF] fields: removed osv_memory-related methods ({set,get,search}_memory()).
...
bzr revid: vmt@openerp.com-20110816110234-8jw4pxjklip4kf43
2011-08-16 13:02:34 +02:00
Vo Minh Thu
83f10149d0
[REF] fields: renamed orm_template in orm (in the docstrings).
...
bzr revid: vmt@openerp.com-20110812143106-jk9ijbtc2yhal1sp
2011-08-12 16:31:06 +02:00
Vo Minh Thu
1f6833e708
[IMP] fields.py: removed unused import (and cyclic dependency!).
...
bzr revid: vmt@openerp.com-20110712083711-6serbntp8y5fn3qy
2011-07-12 10:37:11 +02:00
Vo Minh Thu
cadfd7d85f
[FIX] fields.property: typos/misnamed variables.
...
bzr revid: vmt@openerp.com-20110711161558-kac442kzcu3ujvj4
2011-07-11 18:15:58 +02:00
Vo Minh Thu
e3725cb3a6
[FIX] fields.property: set the m2o fields as False instead of browse_null.
...
bzr revid: vmt@openerp.com-20110711142503-pokzph1wgo2j3223
2011-07-11 16:25:03 +02:00
Vo Minh Thu
5265ceeffc
[IMP] fields.py: removed unnecessary initialization.
...
bzr revid: vmt@openerp.com-20110711131804-1p9qk2j9zp2uuevy
2011-07-11 15:18:04 +02:00
Vo Minh Thu
2fe91df6ad
[IMP] fields.py: tidying up before merging in trunk.
...
bzr revid: vmt@openerp.com-20110711123414-5nf29awpui5x0pp6
2011-07-11 14:34:14 +02:00
Quentin (OpenERP)
b363bfb392
[FIX] openerp/osv/fields.py: _get_defaults() and _fnct_read() of property fields cleaned and fixed as requested on merge proposal
...
-_get_defaults(): improved docstring in order to follow RST docstring format
-_get_defaults(): removed weird loop in _get_defaults as there is always 1 element only
-_fnct_read(): make name_get as root
-_fnct_read(): check existence for m2o fields (as root)
-_fnct_read(): check for type of property field is now done on reliable information
bzr revid: qdp-launchpad@openerp.com-20110708125106-0q0wj5zncaa7yp0w
2011-07-08 14:51:06 +02:00
Quentin (OpenERP)
760471863a
[FIX] fields.py: reading and writing on ir.property fields
...
bzr revid: qdp-launchpad@openerp.com-20110707140359-mxj1or10gzvde3te
2011-07-07 16:03:59 +02:00
Quentin (OpenERP)
1e57f21cb7
[IMP] openerp/osv/fields.py: reading a property field is now using the function get() of ir.property object.
...
bzr revid: qdp-launchpad@openerp.com-20110707133733-aua4dygdjjmhryap
2011-07-07 15:37:33 +02:00
niv-openerp
f7851b64ae
[merge]
...
bzr revid: nicolas.vanhoren@openerp.com-20110705085322-9maq2605k6dvnfho
2011-07-05 10:53:22 +02:00
niv-openerp
708855467f
[imp] changed meaning of operation 3 on o2m to behave like operation 5
...
bzr revid: nicolas.vanhoren@openerp.com-20110705085106-xepnebw12sbq8s9b
2011-07-05 10:51:06 +02:00
Olivier Dony
ce0d89e7e7
[IMP] fields.function: removed method=True param, added docstring
...
The 'method' param was quite useless, as 100% of functions
fields were using method=True. In addition, there is no need
to distinguish methods and functions, as methods are unbound
and passed as function objects in the declaration of a function
field, so they only need a proper signature.
Finally, docstring was added for fields.function class,
based on current doc from developer book (in preparation of
future API doc).
(A fix in addons follows, getting rid of all the useless
method=True params there too).
bzr revid: odo@openerp.com-20110701232328-flgxulxva70vnyxr
2011-07-02 01:23:28 +02:00
P. Christeas
7c8665bb69
[MERGE] docstrings improvements and preparation for api-doc structure
...
bzr revid: odo@openerp.com-20110701231956-93zu7xtibpo06eqm
2011-07-02 01:19:56 +02:00
niv-openerp
4dcc76071e
[imp] small bug in o2m 5 improvement
...
bzr revid: nicolas.vanhoren@openerp.com-20110630100404-5tkdsafuf9ju4xcw
2011-06-30 12:04:04 +02:00
niv-openerp
350de710c4
[merge]
...
bzr revid: nicolas.vanhoren@openerp.com-20110630100025-fdjv3f9rsa10u47d
2011-06-30 12:00:25 +02:00
niv-openerp
fa19ca6e47
[imp] modified meaning of operation 5 on o2m to delete the pointed rows if on delete cascade
...
bzr revid: nicolas.vanhoren@openerp.com-20110629162746-dn0tosycss4a0cne
2011-06-29 18:27:46 +02:00
Vo Minh Thu
027d082936
[MERGE] some refactoring in fields_view_get.
...
bzr revid: vmt@openerp.com-20110627132601-qw6ejx2v4xywq4ai
2011-06-27 15:26:01 +02:00
Vo Minh Thu
82a3dca2d7
[FIX] fields: pass around the context in the create case of the many2many (thankks to rco).
...
bzr revid: vmt@openerp.com-20110624140103-z7t3c029mc4uq5wu
2011-06-24 16:01:03 +02:00
Yogesh (OpenERP)
b505076369
[FIX] add get method in refrence field and check if refrence id not exists then return false.
...
lp bug: https://launchpad.net/bugs/783961 fixed
bzr revid: ysa@tinyerp.com-20110624084656-c2jd3xskk10fwt35
2011-06-24 14:16:56 +05:30
P. Christeas
b0f06f7e52
orm, tools, addons: Doc strings improvements
...
bzr revid: xrg@linux.gr-20110623090228-4gn6xoyykcvfhv13
2011-06-23 12:02:28 +03:00
Vo Minh Thu
f3b7293c2e
[REF] orm: add a column_info class to represent entries in _inherit_fields,
...
code comes from the trunk-sharing-features branch (by odo).
bzr revid: vmt@openerp.com-20110621155342-8a3o153rkpsd5s12
2011-06-21 17:53:42 +02:00
Olivier Dony
66b4f6fbcd
[FIX] fields: function/property fields should perform their name_get() calls for m2o as uid 1
...
This is because the permissions for reading the display name
of a m2o record does not depend on access to the target table,
but depends on the user access to the current table.
Users that are denied read access to the target table may still
see the names of the records linked to the documents they can
read
bzr revid: odo@openerp.com-20110619171102-sh0derdj50epea7b
2011-06-19 19:11:02 +02:00
Vo Minh Thu
ccca7e938a
[REF] orm: fields_get in pieces, now with docstring.
...
bzr revid: vmt@openerp.com-20110617072608-5tmwf2g2qb0pwrhk
2011-06-17 09:26:08 +02:00
Vo Minh Thu
e4d8e91c4a
[MERGE] `multi` support for function fields.
...
bzr revid: vmt@openerp.com-20110615152659-1g2s5vc3outecd71
2011-06-15 17:26:59 +02:00
Yogesh (OpenERP)
45e8ba8474
[IMP] improve code.
...
bzr revid: ysa@tinyerp.com-20110615102551-np3mfev3eq5z4iwp
2011-06-15 15:55:51 +05:30
Yogesh (OpenERP)
2f635092d2
Improve code.
...
bzr revid: ysa@tinyerp.com-20110615084717-ya7v52ngikwn4zy8
2011-06-15 14:17:17 +05:30
Yogesh (OpenERP)
a0eba446d9
[IMP] improve get method of function field.
...
bzr revid: ysa@tinyerp.com-20110613111949-u71pez6qpdfwk1iy
2011-06-13 16:49:49 +05:30