Commit Graph

519 Commits

Author SHA1 Message Date
Denis Ledoux 0b5271e90d [FIX] account: always use a copy when altering a context
To avoid wrong context propagation
2015-02-12 11:03:54 +01:00
dhr-odoo b2cb31c0fb [FIX] account: return format of function field
When no result is found on the function field 'invoice' (account.move.line), instead of returning {move_id: (False, '')}, return {move_id: False} (expected for m2o fields)
Fixes #2138, opw 613096
2014-10-03 09:59:38 +02:00
Humberto Arocha 6d3855e9dc [FIX] account: remove orphan analytic lines
If the analytic account is not present on an entry, still removes the Analytic Journal Items linked to it.
Fixes #1194, opw 610784
2014-10-01 16:18:47 +02:00
Olivier Dony 971ffa3db1 [FIX] account: reconcile: no useless revalidation
Avoid revalidating the complete account moves
that contain the lines being reconciled.
The reconciliation does not change the validity
of those moves anyway.
This represents a very important speed up of
reconciliation when moves with several hundred
lines are involved.
2014-08-14 16:51:37 +02:00
Humberto Arocha 3fe508f200 [FIX] account: no journal items on consolidation accounts
As for the view accounts, the consolidation accounts should not allow to create journal items.
Fixes #1090
2014-07-28 12:55:58 +02:00
Martin Trigaux c58bf1e3bc [FIX] account: better error message when regenarating opening entries (opw 606923)
If we try to generate twice entries on the same fiscal year, we can get completly unrelated errors ("You can only reconcile journal items with the same partner").
With this, we make sure people will first cancel the entries before regeneraing the entries.
2014-07-18 16:53:01 +02:00
Alexandre Fayolle 0ceee2a120 [IMP] add an index on account_move_line(date, id)
fixes https://launchpad.net/bugs/1311004
2014-06-06 14:47:33 +02:00
Martin Trigaux e0fb0a6434 [FIX] account: when creating partial reconcilation after unreconciliating one invoice, make sure we create this partial reconcilation only if we have at least two lines
bzr revid: mat@openerp.com-20140507133552-v4qsdp7qdp9iwewi
2014-05-07 15:35:52 +02:00
Amit Dodiya e270940c5f [FIX] account_voucher & account_move_line: while we have partial payment and we cancel one payment it also unlink the reconcile/partial reconcile tag from other payment entries also
bzr revid: ado@tinyerp.com-20140422101128-ugudle2s7ysc6n1p
2014-04-22 15:41:28 +05:30
Amit Dodiya d50a5c7efc [FIX] account_voucher & account_move_line: while we have partial payment and we cancel one payment it also unlink the reconcile/partial reconcile tag from other payment entries also
bzr revid: ado@tinyerp.com-20140410095132-wx29csixtxsf6gdv
2014-04-10 15:21:32 +05:30
Olivier Dony cc5d5bb2bf [FIX] account: restore cross-account reconciliation check, disabled by mistake in v6.1
Both the FY closing change and the removal of the
check occurred in v6.1 at revision 6529
revid:qdp-launchpad@openerp.com-20120209170333-8xu7r21hencjwu73.

Also removed code specific to fiscal year closing
in the regular reconciliation operation, as the
FY closing is now using a dedication reconciliation
algorithm.

This is a forward-port of the corresponding patch in v6.1,
at revno 7295 rev-id: odo@openerp.com-20140110154023-12rqfeuwx5fqpdau.

bzr revid: odo@openerp.com-20140110161519-qsocx6xgqsmbe6dt
2014-01-10 17:15:19 +01:00
Quentin (OpenERP) 81ac1302f6 [FIX] account: amount in secondary currency shouldn't be recomputed if 0 is given as value
bzr revid: qdp-launchpad@openerp.com-20140108160444-v2noeye7ftl32jgi
2014-01-08 17:04:44 +01:00
Martin Trigaux 56dc173361 [FIX] _auto_init: return a value to _auto_init calls. Backport of trunk revision 8679
bzr revid: mat@openerp.com-20140107145142-zm48pcjvqp42cfjg
2014-01-07 15:51:42 +01:00
Martin Trigaux 8be311d950 [FIX] account: performance improvement on analytic line creation
remove analytic lines (to avoid duplicates) only when create new one instead of each validation of the account move
don't create new analytic lines at move creation, will do it once the move is balanced (unbalanced move should not create analytic lines yet)

bzr revid: mat@openerp.com-20131206104659-vct8a5l9o4nmhwqs
2013-12-06 11:46:59 +01:00
Denis Ledoux 5a0e603589 [FIX]account: fix _balance func field on account.move.line to always return a result for the request ids
bzr revid: dle@openerp.com-20131120142131-s333lyva85cyn41o
2013-11-20 15:21:31 +01:00
Martin Trigaux f37b2a0db4 [IMP] account: performance improvement on the creation of new account.move (opw #597719)
bzr revid: mat@openerp.com-20130918143146-bnmoje96alatdyc1
2013-09-18 16:31:46 +02:00
Martin Trigaux 1bdd49c23a [FIX] account: pass context to move line reconciliation creation (opw #594546)
bzr revid: mat@openerp.com-20130812094859-gyg5d1jz69zikt7s
2013-08-12 11:48:59 +02:00
Martin Trigaux cf4b1f7950 [MERGE] [FIX] account: better check of context when writing account.move.line
bzr revid: mat@openerp.com-20130613113305-j7j6rgj1lzkzdf9q
2013-06-13 13:33:05 +02:00
Christophe Matthieu 9d9e3d2ef8 [IMP] Improve typos in warning (Grammar mistake, Capitalize title, Typos)
bzr revid: chm@openerp.com-20130607113829-1mi6jk18c2v3jjhn
2013-06-07 13:38:29 +02:00
Quentin (OpenERP) 2ae76572ea [FIX] account: fixed bad constraint message
bzr revid: qdp-launchpad@openerp.com-20130425124453-gc42mimtn6dfec3u
2013-04-25 14:44:53 +02:00
Quentin (OpenERP) 46e95cb136 [FIX] account, account.move.line form view: the same method was defined twice, differently, and parameters were not correctly passed in onchanges
bzr revid: qdp-launchpad@openerp.com-20130418134032-t3y4dk4sp4eu2031
2013-04-18 15:40:32 +02:00
Quentin (OpenERP) c46929268d [FIX] account* modules: added 'account_period_prefer_normal':True in context when trying to find the period related to a date.
This patch will be forward ported in trunk by changing the behaviour of account_period.find() in order to fetch the normal periods by default (account_period_prefer_normal will be True by default) because there are no business case i could think of where you'd like to get the opening period (except in the closure but it's held in a different way there). On the other hand, it's pretty easy to forget to put that key in the context and introduce a new bug that will select the opening period instead of the wanted one

bzr revid: qdp-launchpad@openerp.com-20130418102433-t52uj23trkpr8vnb
2013-04-18 12:24:33 +02:00
Chris Biersbach 002f6aa7c1 [FIX] account_move_line: takes into account the ir_rules when listing the partenrs to reconcile
bzr revid: cbi@openerp.com-20130326093413-j0e8hpb0eqig1too
2013-03-26 10:34:13 +01:00
Quentin (OpenERP) 0094cebad9 [FIX] account: manual reconciliation was not showing partners if the payment was encoded the same day than the last_reconciliation_date
bzr revid: qdp-launchpad@openerp.com-20130322143458-3tgw6pjmxetuomeq
2013-03-22 15:34:58 +01:00
Josse Colpaert 772b7d3035 [FIX] Use created date instead of account move line date for manual reconcil
bzr revid: jco@openerp.com-20130322113253-tkmb1bygozymsixl
2013-03-22 12:32:53 +01:00
Quentin (OpenERP) 2bfbe50079 [FIX] account: fixed the filter used in manual reconciliation process
bzr revid: qdp-launchpad@openerp.com-20130318144342-16w1dreej7yzr51n
2013-03-18 15:43:42 +01:00
Josse Colpaert 26e769eb88 [FIX] Change SQL query for manual reconciliation partners such that partners appear when needed
bzr revid: jco@openerp.com-20130318113043-fm2gc0yrln630vjf
2013-03-18 12:30:43 +01:00
Xavier ALT c805a9bdce [MERGE] OPW 582763: account: improve error message for already reconciled entries
forward-port of v6.0 revid: xal@openerp.com-20120306123612-uk96sxe4z8iub6z2

bzr revid: xal@openerp.com-20130226154928-peisqxf77c7uyxn8
2013-02-26 16:49:28 +01:00
Quentin (OpenERP) 04f75c1833 [FIX] account: when editing an account.move, don't crash at the creation of account.move.line because the date isn't given, if it already exists in the parent move
bzr revid: qdp-launchpad@openerp.com-20130111135426-f68wteyccd3nqani
2013-01-11 14:54:26 +01:00
Olivier Dony fc0c2942ba [MERGE] Another batch of bugfixes from 6.1
bzr revid: odo@openerp.com-20121218175547-7c1uxq4ypbi314gx
2012-12-18 18:55:47 +01:00
Olivier Dony 84d7987f33 [MERGE] Bugfixes from 6.1 until revision 6900
rev.6900 = xal@openerp.com-20120720134532-t07xr3lp8ouhn2dv

bzr revid: odo@openerp.com-20121218021123-9ligpn7bkr9zo4n7
2012-12-18 03:11:23 +01:00
Cecile Tonglet a3939acfa5 [FIX] replace from/import decimal_precision by from/import openerp.addons.decimal_precision
bzr revid: cto@openerp.com-20121217152303-8e3b1x30rlw9cb0d
2012-12-17 16:23:03 +01:00
Vo Minh Thu 6072fd11af [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121210111654-0pm3pupnqqeip52n
2012-12-10 12:16:54 +01:00
Fabien Pinckaers 5c98593604 [IMP] fields name
bzr revid: fp@tinyerp.com-20121208104558-2jr4j84go4gcemrb
2012-12-08 11:45:58 +01:00
Olivier Dony e7b30b164e [MERGE] Another batch of Bugfixes from 6.1
Up to 6.1 revision 6800 olt@tinyerp.com-20120516065727-ghvzjttnncj8ryj0

bzr revid: odo@openerp.com-20121207183024-adx8vnq9cytxi2lu
2012-12-07 19:30:24 +01:00
Olivier Dony 5db87bea9c [MERGE] Bugfixes from 6.1 until revision 6800
bzr revid: odo@openerp.com-20121206153856-9y9v8ok6yxo6l5f0
2012-12-06 16:38:56 +01:00
Vo Minh Thu e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Josse Colpaert f67c93855a [IMP] Merge from trunk
bzr revid: jco@openerp.com-20121206110528-mpbuo0q3g4ntvdbz
2012-12-06 12:05:28 +01:00
Josse Colpaert cfd009394d [IMP] Search functions on amounts and dates in partner
bzr revid: jco@openerp.com-20121206110315-ddgp3qxwn3ezl06g
2012-12-06 12:03:15 +01:00
Paramjit Singh Sahota 875c27d45e [IMP] Rename string from 'Journal Entry' to 'Journal Entry Name','Reconcile' to 'Reconcile Name','amount_residual_currency' to 'Residual Amount Currency'.
bzr revid: psa@tinyerp.com-20121205104329-ff6pd8v6v2fpkgb8
2012-12-05 16:13:29 +05:30
nep-OpenERP aeddcb90db [IMP] account : Improved warning message for already reconciled entries
bzr revid: nep@tinyerp.com-20121205072543-26yhi9cywt8l9iva
2012-12-05 12:55:43 +05:30
Quentin (OpenERP) 966890c540 [MERGE] merged the branch with supplier payment term from alexis de Lattre (Akretion). Thanks for the nice proposal
bzr revid: qdp-launchpad@openerp.com-20121204103146-9mfmx56ulfxrlphj
2012-12-04 11:31:46 +01:00
Quentin (OpenERP) e786a1675b [MERGE] trunk
bzr revid: qdp-launchpad@openerp.com-20121130091824-e3xhak3k9z2anihv
2012-11-30 10:18:24 +01:00
Alexis de Lattre cad4abe56c Merge with addons/trunk revno 8168.
Adapt demo data to the rename of partner XML IDs in server/trunk.

bzr revid: alexis@via.ecp.fr-20121129222645-lm5ujxf4a1a83aoz
2012-11-29 23:26:45 +01:00
dle@openerp.com 514952bdd3 [MERGE]Latest trunk
bzr revid: dle@openerp.com-20121128164105-m3hgq38xw6ikewa5
2012-11-28 17:41:05 +01:00
Quentin (OpenERP) 928f7ecfe9 [MERGE] trunk
bzr revid: qdp-launchpad@openerp.com-20121127134541-t16ham0o3k4xx0f8
2012-11-27 14:45:41 +01:00
Denis Ledoux dle@openerp.com e046bb6650 [FIX]journal_id and period_id check wrong in _get_date
bzr revid: dle@openerp.com-20121127100418-iv8gkbh4r391qz6m
2012-11-27 11:04:18 +01:00
Quentin (OpenERP) a51dc81513 [REF] account, hr_timesheet_invoice: code refactoring
bzr revid: qdp-launchpad@openerp.com-20121126141137-18h8t0vusnhe4e0l
2012-11-26 15:11:37 +01:00
Quentin (OpenERP) 7db911f1c7 [REF] account: refactoring of default_get() of account.move.line
bzr revid: qdp-launchpad@openerp.com-20121123162758-qczz3bgbea2qzxjo
2012-11-23 17:27:58 +01:00
Josse Colpaert 205706f18d [IMP] Clean-up before multi-compny
bzr revid: jco@openerp.com-20121122153049-uuv02l05cqqed7br
2012-11-22 16:30:49 +01:00