Commit Graph

47 Commits

Author SHA1 Message Date
Olivier Dony 96402a8f3a [FIX] account: prevent crashes when mixing types in context parameters 2015-05-21 16:02:58 +02:00
Martin Trigaux 365eb138b4 [FIX] account: set reconciliation reference for opening entries
When opening entries are generated, the reconcile_id field is updated in SQL
(probably for performances reasons) but the computed and stored field
reconcile_ref is not recomputed by the ORM.
Force the recomputation of the field by calling ORM method _store_set_values.
Fixes #4267, opw 620369
2015-04-07 13:33:02 +02:00
Denis Ledoux ae65be2b2a [MERGE] forward port of branch saas-5 up to 0739bc4 2014-08-11 15:58:02 +02:00
Denis Ledoux 02bf0fd9c8 [MERGE] forward port of branch 7.0 up to a86dfb8 2014-08-07 18:20:13 +02:00
Humberto Arocha 629e3709d0 [FIX] Account: Consolidation Account should not be carried to next fiscalyear 2014-08-06 18:01:24 +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
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +02:00
Denis Ledoux 899166ecac [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9761 revid:dle@openerp.com-20140114164804-zhfy9lb308554kp1
bzr revid: dle@openerp.com-20140114173653-xhh85ubx27uu1306
2014-01-14 18:36:53 +01:00
Matthieu Dietrich 6fb32cc4d5 [FIX] lp:1257288 - fixed amount in foreign currency for opening entries
bzr revid: matthieu.dietrich@camptocamp.com-20131203144843-kbtd3atkryq8ryec
2013-12-03 15:48:43 +01:00
Christophe Simonis 6a9adbca62 [MERGE] forward port of branch 7.0 up to revid 9236 mat@openerp.com-20130613160953-itt79mu5xrl7suv4
bzr revid: chs@openerp.com-20130613181503-82234mo34wxb0oap
2013-06-13 20:15:03 +02:00
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Amit Dodiya fe8ccdf314 [FIX] [FIX] account: make the string translatable
bzr revid: ado@tinyerp.com-20130218122406-97nnt3py85i35s9u
2013-02-18 17:54:06 +05:30
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Quentin (OpenERP) 84050666ab [REF] some code/error message refactoring
[REM] account: removed _check_fiscal_year constraint on account.move.line (was made to ensure a journal item's date is included inbetween the date start and stop of the fiscalyear it belongs) over which we have a doubt
[FIX] account: fixed _check_currency_and_amount constraint on account.move.line (having 0 as amount_currency is a legal value since debit and credit can both be 0 (used in case of complex taxes))
[FIX] account_voucher: changed the behavior in order to restrict the update of the journal in a bank statement only when there is a voucher already created/generated for that, because previous check was too restrictive.

bzr revid: qdp-launchpad@openerp.com-20121122142819-wvqak470vn3ete27
2012-11-22 15:28:19 +01:00
Quentin (OpenERP) df1569f9f1 [MERGE] trunk
bzr revid: qdp-launchpad@openerp.com-20121122140800-1z8t57k0c2leaaqx
2012-11-22 15:08:00 +01:00
Fabien Pinckaers 0cd2294f75 [MERGE] fiscalyear small bugfix
bzr revid: fp@tinyerp.com-20121112084817-x3gr534gfwtbuh6v
2012-11-12 09:48:17 +01:00
Mayur Maheshwari (OpenERP) 651f8f8994 [FIX]account : Generate Opening Entries wizard should not generate credit and debit entries with amount 0.0 at the time of balance transfer before closing the year
bzr revid: mma@tinyerp.com-20121101095754-rczv2nvmk0mdqsdb
2012-11-01 15:27:54 +05:30
Joël Grand-Guillaume 227738dedb [IMP] Forbid to remove the reconcile on opening entries, we introduce a new boolean field to identify the reconciliation made by the closing process from others.
bzr revid: joel.grandguillaume@camptocamp.com-20121026135415-k1q0yq5zxngmfm5k
2012-10-26 15:54:15 +02:00
Antonin Bourguignon 59aa37f0e4 [IMP] all the warning messages now start with 'Warning\!' (not 'Warning' or 'Warning \!')
bzr revid: abo@openerp.com-20120807113414-7mryqyt3jnq8shsa
2012-08-07 13:34:14 +02:00
Antonin Bourguignon b0e8ae4c7d [IMP] error messages
fix errors ending with an exclamation point; use a point instead
remove uniques (or almost) error messages titles, like 'Encoding Error' (1 occurrence in addons), 'Integrity Error' (1 occurrence in addons), 'Report Name' (1 occurrence in addons), 'Value Error' (1 occurrence in addons), 'Wrong Period Code' (1 occurrence in addons); replace these with 'Error'
add newline character after some messages titles, when necessary
fix 'UserError': should be 'User Error'
remove spaces before exclamation marks
add capital letters to messages titles words (e.g.: 'Invalid action' becomes 'Invalid Action')

bzr revid: abo@openerp.com-20120807110616-u3nlnybtgaebro18
2012-08-07 13:06:16 +02:00
Antonin Bourguignon 48e0915804 [IMP] rephrase some error and warning messages in account
remove exclamation marks at the end of messages
remove first person usage ('I' and 'We')
remove unjustified capital letters
rephrase the clumsy form 'No <some attribute> is defined'

bzr revid: abo@openerp.com-20120806154410-kbf9aai2uzq2b0c4
2012-08-06 17:44:10 +02:00
pso (OpenERP) 238bbc539a [IMP] Improved warning messages for account module
bzr revid: pso@tinyerp.com-20120725073357-kcdgglpmbxrtbq6d
2012-07-25 13:03:57 +05:30
Quentin (OpenERP) 5c57613d08 [FIX] account, fiscalyear closing wizard: moved out the reconciliation part from account_move_line.reconcile() function and made it a private function dedicated to this wizard. This was necessary because the original function is doing too much things that arenrt useful in this case. Moreover we may need to reconcile thousands of journal entries so we have to speed it up as much as possible
bzr revid: qdp-launchpad@openerp.com-20120209170333-8xu7r21hencjwu73
2012-02-09 18:03:33 +01:00
Quentin (OpenERP) ef08879085 [FIX] account, fiscalyear close wizard: fix related to multi company
bzr revid: qdp-launchpad@openerp.com-20120209161641-4o6pk6nw1gupjrt7
2012-02-09 17:16:41 +01:00
hbto(humbertoarocha) 4cc5c14273 [FIX] account: add Missing date on fiscalyear clousure wizard account.fiscalyear.close
lp bug: https://launchpad.net/bugs/912623 fixed

bzr revid: jap@tinyerp.com-20120112092149-ism5impd38iliz2u
2012-01-12 14:51:49 +05:30
Raphael Collet 60b7b6e10c [MERGE] lp:868224
bzr revid: rco@openerp.com-20111108155818-fx5yeq0fq2ihslr8
2011-11-08 16:58:18 +01:00
Bharat (OpenERP) e4a103cfa0 [FIX] account : generate open entries is not seems to working
lp bug: https://launchpad.net/bugs/868224 fixed

bzr revid: bde@tinyerp.com-20111012123500-j4mb4p50k26nhw8c
2011-10-12 18:05:00 +05:30
Quentin (OpenERP) 029a636f4e [FIX] account: fiscalyear closure wizard
bzr revid: qdp-launchpad@openerp.com-20110923134827-0o64yz7letsop1n6
2011-09-23 15:48:27 +02:00
Quentin (OpenERP) 016eff262b [FIX] account: opening entries didn't bring forward the amount in currency when closing a fiscalyear. The centralisation had to take care on that too.
lp bug: https://launchpad.net/bugs/736890 fixed

bzr revid: qdp-launchpad@openerp.com-20110621125248-xec0ogl2v1hwxsmo
2011-06-21 14:52:48 +02:00
Rifakat Haradwala (Open ERP) a313f724ba [IMP]: Account: improvement in osv memory wizards
bzr revid: rha@tinyerp.com-20110215092057-lpki1kg79dnya96g
2011-02-15 14:50:57 +05:30
Olivier Dony 3f96ef97a7 [WIP] all: (work in progress) changing wizards to avoid using read() or at least take proper care of m2o fields
This is in preparation of the fix for m2o.get() on osv_memory objects, to make
it consistent with the regular read on osv objects. Previously on osv_memory
objects it was only returned the id, instead of the pair (id, name) as is appropriate
to avoid an additional name_get RPC call after each read.
Unfortunately many wizards were using direct read() instead of browse() and
relying on the fact that the returned dict contained a bare id value for
many2one fields.

bzr revid: odo@openerp.com-20110201210839-hwmk60ygksm805c4
2011-02-01 22:08:39 +01:00
uco (OpenERP) c3098f4f43 [FIX] account..l10n_ch: Pass return {'type': 'ir.actions.act_window_close'} instead of return {} in osv_memory/normal wizards.(lp:691544)
bzr revid: uco@tinyerp.com-20101228104445-h5q9jg8mq7dmdc51
2010-12-28 16:14:45 +05:30
qdp-launchpad@tinyerp.com 014cd44400 [IMP] account, fiscalyear end of year entries generation: small misc improvments
bzr revid: qdp-launchpad@tinyerp.com-20101116121658-31enzyskxpceo312
2010-11-16 13:16:58 +01:00
Jay (OpenERP) b42f8f310d [FIX] Account : Correction on closing fiscalyear:journal should be centralizaed and the boolean of skip draft state should be False
bzr revid: jvo@tinyerp.com-20101020134332-tzd7uf13nk4vigom
2010-10-20 19:13:32 +05:30
ARA (OpenERP) 8b2622b607 [REF] account wizard: code clean
bzr revid: ara@tinyerp.com-20101015133522-dmxhk5szekf7ybap
2010-10-15 19:05:22 +05:30
Mustufa Rangwala 0dc5d800f2 [REF] cleaing account
bzr revid: mra@mra-laptop-20101015063348-1karrzxmopp28zlz
2010-10-15 12:03:48 +05:30
ARA (OpenERP) 8e2271abcd [IMP] Improve view of account wizard
bzr revid: ara@tinyerp.com-20101014091155-lfzcu4fct83r4loy
2010-10-14 14:41:55 +05:30
vth 685489a172 [REF] account
bzr revid: vth@tinyerp.com-20101011055153-h8hygvtjqkxc8004
2010-10-11 11:21:53 +05:30
Mustufa Rangwala 42e8cd0749 [IMP] Account: Add method on account move line => which unlink related reconcile ids for moves, Use that method on unreconcile wizard as well as fiscalyear closing with generating entries
bzr revid: mra@mra-laptop-20100907050352-07x1e8yxb9d8jlcm
2010-09-07 10:33:52 +05:30
Mustufa Rangwala ec4865d167 [IMP] Account: Improve generaticing entries for clossing fiscal year => Also unlink moves
bzr revid: mra@mra-laptop-20100907043949-0lx5h72m41vfc1o5
2010-09-07 10:09:49 +05:30
PSI(OpenERP) ee7772b9e9 [IMP] Account: Generating entries for closing fiscal year => Add company_id in query, remove raise when there is some entries on journals (unlink those entries)
bzr revid: mra@mra-laptop-20100907042831-4og1w4qcnn6ofks3
2010-09-07 09:58:31 +05:30
qdp-launchpad@tinyerp.com 6e3b302b03 [IMP] account: usability changes in fiscalyear wizards
bzr revid: qdp-launchpad@tinyerp.com-20100902110010-gimh7ati0mvof96r
2010-09-02 13:00:10 +02:00
RHA (Open ERP) d5ad0b8ff1 [CLEAN]: Removed commented codes, unnecessary spaces.
bzr revid: uco@tinyerp.com-20100819115157-sfsmbnjdgpp4wl12
2010-08-19 17:21:57 +05:30
Anup (OpenERP) 6844dd588b [FIX] account: fiscalyear closing wizard: entries of account with defferal method=='unreconciled' that are reconciled on a next fiscalyear
bzr revid: ach@tinyerp.com-20100623133332-ezf32tdffz3rpzi9
2010-06-23 19:03:32 +05:30
JMA (OpenERP) 4cf1362e3b [FIX] Security fixes for sql injections
bzr revid: jma@tinyerp.com-20100610133419-fwbc1xp0xoq77n90
2010-06-10 19:04:19 +05:30
mra (Open ERP) 88a85cf5f3 [IMP] Account: Clean close fiscal year wizard
bzr revid: mra@tinyerp.com-20100409114813-26ysnzsdn95te4l4
2010-04-09 17:18:13 +05:30
Vir (Open ERP) c0596f6d58 [ADD] account : account_fiscal_year_close wizard converted into osv memory wizard
bzr revid: vir@tinyerp.com-20100409110959-l6km0qr6k89mztbb
2010-04-09 16:39:59 +05:30