Commit Graph

83 Commits

Author SHA1 Message Date
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
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
Olivier Dony 4140e3546a [FIX] expression: proper handling of empty string in m2o domain criterions
Also fixed incorrect name_search() implementations in
res.partner and res.currency, and added corresponding
tests.

lp bug: https://launchpad.net/bugs/861350 fixed

bzr revid: odo@openerp.com-20111011163435-szj9vm6x9x8nryn8
2011-10-11 18:34:35 +02:00
Olivier Dony a25933be83 [IMP] res.currency: better/working default values
bzr revid: odo@openerp.com-20111005002956-1tfe5u13qid3intk
2011-10-05 02:29:56 +02:00
Olivier Dony 5cc7c4002e [IMP] res.currency: name_search() implementation to match name_get()
bzr revid: odo@openerp.com-20111005002416-vz0vzfpb2uosxu4c
2011-10-05 02:24:16 +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
Antony Lesuisse c1026977ab [MERGE] currency position dsh
bzr revid: al@openerp.com-20110921232150-c1rpri2650363fkd
2011-09-22 01:21:50 +02:00
Olivier Dony 705f238f08 [MERGE] missing res.currency.rate.type access rights
bzr revid: odo@openerp.com-20110919173606-1izhy7i9dt25lm45
2011-09-19 19:36:06 +02:00
Olivier Dony 8c5cb638b9 [MERGE] enforce unique `key` attribute for res.currency, ir.model, res.company
For res.company the constraint is made of 2 parts:
 - one normal unique constraint (name,company_id) to catch
   most cases and define the user error message
 - one additional unique index to enforce the unique currency
   name even for multiple entries with NULL company_id, not
   caught by the constraint. The index is named with the 
   constraint name as prefix, in order to automatically
   share the user error message

Also, cleanup up the res.currency views a bit, and improved
field labels in ir.model to make them easier to understand.

lp bug: https://launchpad.net/bugs/789019 fixed

bzr revid: odo@openerp.com-20110919144821-708avl7t9q7g8vpr
2011-09-19 16:48:21 +02:00
Stephane Wirtel 73f8c52ad2 [FIX] base: res_currency#company_id remove the default value based on the currency of the company
bzr revid: stw@openerp.com-20110915142638-gmpk24otjtrv0jtz
2011-09-15 16:26:38 +02:00
Dhara (OpenERP) b9c10b045c [IMP] currency position for report
bzr revid: dhara_openerp-20110913043809-2gq0chqs4m0yq1nq
2011-09-12 21:38:09 -07:00