Nicolas Martinelli
2c19e9be96
[FIX] base: cherry-pick 55fa0912 to 8.0
...
Backported to 8.0 following report at #12648
[FIX] base: use datetime instead of date
The variable `date` is compared to the field `name` in the selection
query. `name` is filled in with datetime data. In particular, in the
module currency_rate_live, datetime.now() is used in the name. It is
necessary to make an appropriate comparison to make sure we select the
updated rate right away.
Fixes #12648
2016-07-19 12:58:13 +02:00
Martin Trigaux
0af32f3f84
Revert "[FIX] res.currency: allow duplication"
...
This reverts commit d780f9476d
.
Did not work due to the size=3 on name field that strips the code to the first
three letters only (removing the " (copy)" part).
Copying a currency has a few business cases as the rates are not copied.
As can not increase the size of a field in stable, remove the method that had no
effect.
Fixes #11036
2016-05-23 10:39:15 +02:00
Colin Newell
84857a3f4f
[FIX] currency: simple quote in currency symbols
...
Escape the currency symbol to prevent javascript errors,
for instance when reconciling a bank statement
(with the special reconciliation widget)
Closes #8216
2015-08-27 17:45:59 +02:00
David Beal
d780f9476d
[FIX] res.currency: allow duplication
...
Currencies must be unique per company.
Therefore, without this revision, adding `(Copy)`
to the currency name on duplication, this
is simply not possible to duplicate a currency.
Closes #2443
2015-07-09 17:15:30 +02:00
Denis Ledoux
2883e3f67d
[MERGE] forward port of branch saas-3 up to ba5c972
2015-01-30 16:55:36 +01:00
Denis Ledoux
ba5c972c3e
[MERGE] forward port of branch 7.0 up to 05c907b
2015-01-30 16:52:41 +01:00
Denis Ledoux
05c907b60b
[FIX] res: currency, rates name_search
...
In currencies, advanced search with "equals" or "not equals" on rates
was not possible for something else than a date, in server format (crash).
This is because the name field of the model res.currency.rate is a date
This is now possible to search rates with just a float and the equal operators,
it returns currencies which are having at least one rate set to this float value
This is also possible to search rates with the equal operators with a date in
user (context) date format.
2015-01-30 15:04:20 +01:00
Arthur Maniet
35431de125
[FIX] res.currency: correctly compute the number of decimal places for currencies formatting in 'get_format_currencies_js_function'.
2014-12-04 10:51:54 +01:00
qdp-odoo
f4e350ca36
[FIX] account: several fixes on the new bank statement reconciliation widget
2014-09-04 11:32:16 +02:00
Raphael Collet
cbe2dbb672
[MERGE] new v8 api by rco
...
A squashed merge is required as the conversion of the apiculture branch from
bzr to git was not correctly done. The git history contains irrelevant blobs
and commits. This branch brings a lot of changes and fixes, too many to list
exhaustively.
- New orm api, objects are now used instead of ids
- Environements to encapsulates cr uid context while maintaining backward compatibility
- Field compute attribute is a new object oriented way to define function fields
- Shared browse record cache
- New onchange protocol
- Optional copy flag on fields
- Documentation update
- Dead code cleanup
- Lots of fixes
2014-07-06 17:05:41 +02:00
Fabien Pinckaers
5cc81dd64f
Fixes
2014-07-02 18:18:29 +02:00
Jaydeep Barot
026e38b48f
[REM] Unnecessary `size` parameters on char fields
2014-06-25 17:13:43 +02:00
Antony Lesuisse
8d04c66dc3
[IMP] cleanups, move tests, remove deprecated model instantiation
...
bzr revid: al@openerp.com-20140501184217-pgi1gzbdpysdybog
2014-05-01 20:42:17 +02:00
Richard Mathot (OpenERP)
22df13f4fd
[FIX] res_currency: Removing unnecessary 'browse'
...
bzr revid: rim@openerp.com-20140423073511-kkjkt0a0baxz3466
2014-04-23 09:35:11 +02:00
Bharat R. Devnani (OpenERP)
b0c17397df
[IMP] improved the code to get the name of currency instead of id
...
bzr revid: bde@tinyerp.com-20140212114611-et0fw2dlwwjuq39p
2014-02-12 17:16:11 +05:30
Bharat R. Devnani (OpenERP)
7a672f0bb5
[IMP] improved
...
bzr revid: bde@tinyerp.com-20140212101334-mdhimtwrjn98d6g6
2014-02-12 15:43:34 +05:30
Bharat R. Devnani (OpenERP)
e2410358cd
[IMP] improved
...
bzr revid: bde@tinyerp.com-20140212101245-bhp1ncpuvckvex4m
2014-02-12 15:42:45 +05:30
Bharat R. Devnani (OpenERP)
6dca8bf3fb
[MERGE] merged with latest server
...
bzr revid: bde@tinyerp.com-20140212100909-rbfkncfa5i9gn7rv
2014-02-12 15:39:09 +05:30
Bharat R. Devnani (OpenERP)
2a8182a07f
[IMP] improved the code
...
bzr revid: bde@tinyerp.com-20131203092056-l6c8x116iwv9oax6
2013-12-03 14:50:56 +05:30
Bharat R. Devnani (OpenERP)
953c8d7633
[IMP] improved the code
...
bzr revid: bde@tinyerp.com-20131202085930-zinqv4q332iuqql0
2013-12-02 14:29:30 +05:30
Bharat R. Devnani (OpenERP)
ead4272652
[IMP] improved the code
...
bzr revid: bde@tinyerp.com-20131202085833-sp33bs3syiqaybsg
2013-12-02 14:28:33 +05:30
Bharat R. Devnani (OpenERP)
77fa521db5
[IMP] improve warning message
...
bzr revid: bde@tinyerp.com-20131202084244-oc0gs75vwix3wgv3
2013-12-02 14:12:44 +05:30
Xavier Morel
8e78b40e6a
[MERGE] from trunk
...
bzr revid: xmo@openerp.com-20131115132553-9eqxggih8be63i36
2013-11-15 14:25:53 +01:00
Quentin (OpenERP)
8a52fe77f8
[IMP] base, currency: second attempt to include this patch (previously added in revision 4982 then reverted in revision 4984 because of a bug in the server that was making an infinite loop -which has been fixed in previous revision-). Updated the type of name field of res.currency.rate in <datetime> instead of <date> for those who need to update the rate of currencies several times per day
...
bzr revid: qdp-launchpad@openerp.com-20131104134618-oujlfwmnpc1xbvml
2013-11-04 14:46:18 +01:00
Quentin (OpenERP)
ca92afb39a
[REV] base, res.currency: reverted revision 4982 because it was causing an error when a res.currency.rate was searched with a domain like [('name', '=', '30-20-2013')]. This patch will be back with a graceful solution to fix the error
...
bzr revid: qdp-launchpad@openerp.com-20131030172805-7ndvj8vj4h31wre8
2013-10-30 18:28:05 +01:00
Quentin (OpenERP)
d6e3f655b5
[IMP] base, res_currency: changed the type of name of res_currency_rate from date to datetime for those who need to update the rate of a currency several times per day
...
bzr revid: qdp-launchpad@openerp.com-20131028140333-nmvm07ay5xllo2zi
2013-10-28 15:03:33 +01:00
Xavier Morel
9cbc632fa1
[IMP] smartenify res_currency code
...
bzr revid: xmo@openerp.com-20131011105120-1d5fg06j6zsuxty2
2013-10-11 12:51:20 +02:00
Olivier Dony
fbd0758cb5
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5054 rev-id: odo@openerp.com-20130820091157-e5brwlxuhujf8rrd
...
bzr revid: chs@openerp.com-20130724085026-525l9apggc9yzx0h
bzr revid: odo@openerp.com-20130730140644-1xih0as5jsks4pub
bzr revid: dle@openerp.com-20130801130723-khgwjkglgsdn34fj
bzr revid: odo@openerp.com-20130820091638-jpbcmh653bpa29em
2013-08-20 11:16:38 +02:00
Martin Trigaux
ef3e11c03d
[FIX] res_currency: pass context to currency function
...
bzr revid: mat@openerp.com-20130731123812-oztjyktifs23lhi9
2013-07-31 14:38:12 +02:00
Martin Trigaux
fc2eb46b40
[IMP] res_currency: more modular solution
...
bzr revid: mat@openerp.com-20130731110525-garlkomohzcyp4pd
2013-07-31 13:05:25 +02:00
Martin Trigaux
48daabd465
[FIX] res_currency: avoid getting blocked when creating a curreny without rates
...
bzr revid: mat@openerp.com-20130731100626-kgxpvfkwkg13lpy1
2013-07-31 12:06:26 +02:00
Thibault Delavallée
1d5068b63e
[FORWARD] Forward port of server 7.0 until revision 4988
...
bzr revid: tde@openerp.com-20130528102733-bsszxp6nvy8yws3t
2013-05-28 12:27:33 +02:00
cbi@openerp.my.openerp.com
3d9c8b0513
[FIX] missing multi company currency access rules, set currency.company_id to False by default
...
lp bug: https://launchpad.net/bugs/1111298 fixed
bzr revid: alexandre.fayolle@camptocamp.com-20130517080246-k23d8hd0ks36cr5l
2013-05-17 10:02:46 +02:00
Quentin (OpenERP)
4d519be0b4
[IMP] base, res_currency: added an indirection on _current_rate() function to allow a clean overwriting
...
bzr revid: qdp-launchpad@openerp.com-20130507120149-p2m4ug20nfny234v
2013-05-07 14:01:49 +02:00
Quentin (OpenERP)
64502253b8
[FIX] base, res_currency: raise an error if a currency doesn't have any rate associated to the given period (if any)
...
bzr revid: qdp-launchpad@openerp.com-20130314153800-wl48wkp5f3zz0pb6
2013-03-14 16:38:00 +01:00
Cedric Snauwaert
b5129816dc
[FIX]res_currency: change value from 0 to 1 when no rate is associated to a given period of time
...
in order to prevent division by zero error
bzr revid: csn@openerp.com-20130313154342-g1d1jj3g061evf56
2013-03-13 16:43:42 +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
Vo Minh Thu
509a084e79
[IMP] use the openerp namespace.
...
bzr revid: vmt@openerp.com-20121210152723-mv4dykfu6ip1991h
2012-12-10 16:27:23 +01:00
Fabien Pinckaers
2a7a50dd3f
[IMP] useability currencies name_get only return name
...
bzr revid: fp@tinyerp.com-20121124175433-0fro2ufrs3b9feev
2012-11-24 18:54:33 +01:00
Xavier Morel
5bd939f0ac
[REM] useless intermediate lambdas in default values
...
bzr revid: xmo@openerp.com-20121102094705-6vcutz0bv4dc0jkl
2012-11-02 10:47:05 +01:00
pso (OpenERP)
ecb67b4b81
[MERGE] Merged with main branch
...
bzr revid: pso@tinyerp.com-20120830084954-jneto8bxd6hjf8e6
2012-08-30 14:19:54 +05:30
Jignesh Rathod (Open ERP)
18ffbff5f1
[FIX] read of a single id in int in res.currency
...
lp bug: https://launchpad.net/bugs/965148 fixed
bzr revid: jir@tinyerp.com-20120822095433-55l2n56fplfiglwv
2012-08-22 15:24:33 +05:30
Hardik
af91896fbd
[IMP]view improved for country form and change label name of currency field
...
bzr revid: hsa@tinyerp.com-20120723113240-mopd8ufl80705o6m
2012-07-23 17:02:40 +05:30
Divyesh Makwana (Open ERP)
9fbdc7c526
[IMP] Improved the typos.
...
bzr revid: mdi@tinyerp.com-20120423102313-0mboqhctzoje5ize
2012-04-23 15:53:13 +05:30
Antony Lesuisse
d8ed922e26
[FIX] res_currency remove warning about float field
...
bzr revid: al@openerp.com-20120208224031-korqq1crt0u3wpuh
2012-02-08 23:40:31 +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
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
ffe640cece
[IMP] tools.float_*: added tests and docstrings
...
bzr revid: odo@openerp.com-20111114182310-kkzh78uej0uuwhaz
2011-11-14 19:23:10 +01:00