Commit Graph

356 Commits

Author SHA1 Message Date
Olivier Dony 788eb29237 [MERGE] Forward-port of 7.0 bugfixes up to rev.9369 rev-id: launchpad_translations_on_behalf_of_openerp-20130820051502-deoiql3lru7goosd
bzr revid: odo@openerp.com-20130820152607-0p0fx87v1rqhk3vy
2013-08-20 17:26:07 +02:00
Martin Trigaux 44f7a82281 [FIX] account_voucher: evaluate move line account with correct precision
This bug may have generated incorrect account_voucher_line when validating a voucher with amount less than 1. This patch will avoid reproducing the problem on new lines but not fix already existing vouchers. To do so apply the following steps:

1. apply this patch
2. do a manual reconciliation of the account.move.lines with amount less than 1 (use the manual reconciliation menu to see every line, included 0-0 lines)
3. execute the following SQL query

DELETE FROM account_voucher_line WHERE id IN (SELECT l.id FROM account_voucher_line AS l JOIN account_voucher AS v ON (v.id = l.voucher_id) JOIN account_move_line AS ml ON (l.move_line_id = ml.id) WHERE l.amount = 0 AND v.state = 'draft' AND ml.debit = ml.credit AND ml.credit = 0);

that will remove account voucher lines from draft vouchers linked to an empty move lines

bzr revid: mat@openerp.com-20130802120311-oh64d47t8x6t1wf9
2013-08-02 14:03:11 +02:00
Denis Ledoux 1a04d7b128 [FIX]account_voucher: change signature of _get_current_rate according to res_currency from server
bzr revid: dle@openerp.com-20130801131234-p63bhee1aqrs9n8o
2013-08-01 15:12:34 +02:00
Denis Ledoux a99b5786d1 [MERGE] Forward-port of 7.0 bugfixes up to rev. 9337 (dle@openerp.com-20130731153129-8hmqrgsg3e9d533f)
bzr revid: mat@openerp.com-20130726073123-6buqe3rg321gj5rw
bzr revid: odo@openerp.com-20130730110536-a74ea14pwb2y03ay
bzr revid: dle@openerp.com-20130801123703-frjhpeqwocsjo7ge
2013-08-01 14:37:03 +02:00
Martin Trigaux 30f07ee98d [FIX] account_voucher: better voucher payment screen
revert commit 9310 with incorrect writeoff amount
hide writeoff reconcilation fields when no price difference
hide analytic_id (Write-Off Analytic Account) when not with_writeoff

bzr revid: mat@openerp.com-20130724094023-fbd1hqwe9hdh28id
2013-07-24 11:40:23 +02:00
Martin Trigaux 3b61eb8627 [FIX] account_voucher: writeoff amount on unreconciled amount instead of price to allow negative writeoff (eg: negative currency change rate difference) (opw #593977)
bzr revid: mat@openerp.com-20130723141734-8wtbyn4ubz8rwfj1
2013-07-23 16:17:34 +02:00
Christophe Simonis bf29a2ebc7 [MERGE] forward port of branch 7.0 up to revid 9302 chs@openerp.com-20130718111616-apacuhc2qhquobtc
bzr revid: dle@openerp.com-20130627104833-b9zgtu8urj43f12b
bzr revid: mat@openerp.com-20130702135856-kmg7d8anw17nkbd8
bzr revid: chs@openerp.com-20130718115928-wpa84dqh8tcq31zt
2013-07-18 13:59:28 +02:00
Martin Trigaux 90350b5618 [FIX] account_voucher: while canceling avoid removing twice the same reconciled move
bzr revid: mat@openerp.com-20130710082743-mfimnve33j06hgu0
2013-07-10 10:27:43 +02: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
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
Thibault Delavallée a05b0bebbe [FORWARD] Forward port of 7.0 branch until revision 9143.
bzr revid: tde@openerp.com-20130521122359-b5vii7gv8arluz06
2013-05-21 14:23:59 +02:00
Quentin (OpenERP) bcf32c6d64 [MERGE] forward port of bugfixes made in addons v7 up to revision 9098.
bzr revid: qdp-launchpad@openerp.com-20130514120341-cvxysuez350hy9s2
2013-05-14 14:03:41 +02:00
Quentin (OpenERP) 5a367b4c9a [IMP] account_voucher, usability: added currency_help_label to help at the understanding when using the payment rate fields
bzr revid: qdp-launchpad@openerp.com-20130514115213-cklf7s6r889ahen7
2013-05-14 13:52:13 +02:00
Quentin (OpenERP) 9b01552b79 [IMP] account_voucher, usability: reset the amount to 0 in the 'pay invoice wizard' if the currency is not the same than the invoice currency to avoid a common mistake
bzr revid: qdp-launchpad@openerp.com-20130513142116-wyuud8n9fcnafc7l
2013-05-13 16:21:16 +02:00
Quentin (OpenERP) 0b7b321310 [FIX] account_voucher: display the multi-currency options each time needed
bzr revid: qdp-launchpad@openerp.com-20130513132422-q78dopdnnyd2x8dy
2013-05-13 15:24:22 +02:00
Quentin (OpenERP) 65713a5dc9 [FIX] account_voucher: post accounting entry related to a currency rate difference in all cases
bzr revid: qdp-launchpad@openerp.com-20130507130520-3zndk5mt7mlvv3i7
2013-05-07 15:05:20 +02:00
Quentin (OpenERP) 976b8f6d33 [FIX] account_voucher: display the payment_rate_currency_id field when needed
bzr revid: qdp-launchpad@openerp.com-20130507124513-2st24rthgg8dlcv0
2013-05-07 14:45:13 +02:00
Quentin (OpenERP) e02c15ed61 [FIX] account_voucher: typo
bzr revid: qdp-launchpad@openerp.com-20130503115711-bm693r6yjjsvspz5
2013-05-03 13:57:11 +02:00
Quentin (OpenERP) 709fc0ca29 [FIX] account_voucher: complete fixing of vouchers in multi-currency.
*uniformized the computation in multi-currency in order to always use res_currency.compute()
*make sure to pass the right conversion rate to _current_rate() function using the context if it is specified on the voucher and, in this function, used the info from the context instead of the computed one if relevant. (This involves an ugly overwriting of the 'rate' field that will disappear in trunk: to stay backward compatible and avoid any update of 'base' module it has to be done this way).
*replace the currency_id field on the voucher by a fields.function (was a fields.related) in order to always have a currency, even if it's a voucher in the company currency. (makes the treatment easier and more consistent. Less error prone)
*misc code reaftoring

bzr revid: qdp-launchpad@openerp.com-20130502225937-ya45q2wvgqy7zo1c
2013-05-03 00:59:37 +02:00
Olivier Dony 9c08e12962 [MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 9085
revision-id: odo@openerp.com-20130429105458-r89mnkx8okdxsdld

bzr revid: odo@openerp.com-20130429151410-54y94063gijyk16o
2013-04-29 17:14:10 +02:00
Quentin (OpenERP) b507941664 [FIX] account_voucher: usability improvement related to multi currency
bzr revid: qdp-launchpad@openerp.com-20130425124404-t22dzpv0rtohoh9y
2013-04-25 14:44:04 +02:00
Quentin (OpenERP) 11ac47133e [FIX] account_voucher: pay invoice 'wizard' now displays 1) the monetary widget even if the journal is in the company currency and 2) the writeoff fields
bzr revid: qdp-launchpad@openerp.com-20130425121815-nbooi3hpah8wqdxc
2013-04-25 14:18:15 +02:00
Cedric Snauwaert 630f1eb42d [FIX]account_voucher: change payment view to add some field and currency when it is the same than company.
Also add some missing field in account voucher sale form

bzr revid: csn@openerp.com-20130423152439-ixdfgasutdv1pj62
2013-04-23 17:24:39 +02:00
Quentin (OpenERP) 2bc4260c54 [FIX] account_voucher: fix in amount_currency computation when the rate is specified on the voucher and the voucher is in the company currency
bzr revid: qdp-launchpad@openerp.com-20130423135028-70887smme8mxv0tn
2013-04-23 15:50:28 +02:00
Quentin (OpenERP) 429ef87172 [MERGE] accounts* modules: forward port of revision 9033 of addons v7 that was passing 'account_period_prefer_normal=True' in the context in each and every call to account_period.find(). The behaviour is modified in order to search only on normal periods by default
bzr revid: qdp-launchpad@openerp.com-20130418094147-q2ks4w47sn4fxdv2
bzr revid: qdp-launchpad@openerp.com-20130418103907-0qom5yfcq8osnovp
2013-04-18 12:39:07 +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
Vo Minh Thu e69326ee3b [REF] removed explicit model instanciations.
bzr revid: vmt@openerp.com-20130415102349-vgcrfok2k5y10cwz
2013-04-15 12:23:49 +02:00
Quentin (OpenERP) 3fe67314cc [MERGE] forward port of fixes made in version 7
bzr revid: qdp-launchpad@openerp.com-20130214100628-0eaudbqhflpmjjyf
2013-02-14 11:06:28 +01:00
Quentin (OpenERP) 57ac1b0f04 [MERGE] fix of lp bug 1076509
lp bug: https://launchpad.net/bugs/1076509 fixed

bzr revid: qdp-launchpad@openerp.com-20130213164157-6ojykbl1w1on8ng8
2013-02-13 17:41:57 +01:00
Raphael Collet 5f855a1ddb [MERGE] from trunk
bzr revid: rco@openerp.com-20130213083519-3nbg40h5em0gfeu3
2013-02-13 09:35:19 +01:00
Quentin (OpenERP) b389ebdb1f [FIX] account_voucher: when picking the next move number, put the fiscalyear in context in case the sequence is dependant of it + period_id field is required on voucher
bzr revid: qdp-launchpad@openerp.com-20130205102314-y2giy53cr8vpv6yv
2013-02-05 11:23:14 +01:00
Ajay Chauhan (OpenERP) d4328ba8d5 [IMP] account_voucher: : use the new ORM methods create_workflow, delete_workflow, redirect_workflow.
bzr revid: cha@tinyerp.com-20130131115954-54u8z5ibntrs4sco
2013-01-31 17:29:54 +05:30
Vo Minh Thu ca919bec2c [IMP] account_voucher: use the new signal_xxx methods instead of trg_validate.
bzr revid: vmt@openerp.com-20130128145143-w68s6z1kuulqk6ig
2013-01-28 15:51:43 +01:00
Quentin (OpenERP) 912533f1f3 [MERGE] payment of invoice with amount_total = 0 is a valid operation, and is now supported in account_voucher
bzr revid: qdp-launchpad@openerp.com-20121221163252-q0hi14lrdcnnz5wm
2012-12-21 17:32:52 +01:00
dle@openerp.com 9128ad1481 [MERGE]Latest trunk + [FIX]Useless id in account invoice and
bzr revid: dle@openerp.com-20121221151350-8o8xri9jk3zs0x2e
2012-12-21 16:13:50 +01:00
dle@openerp.com 31d8bdaa34 [FIX]payment/receipt of amount 0, not just invoices : )
bzr revid: dle@openerp.com-20121221143637-wqmjg91g185s1val
2012-12-21 15:36:37 +01:00
Quentin (OpenERP) e9f9e1191c [FIX] account_voucher: bug fixed in the supplier partial payment. There is no need to take care of the sign as the residual amount of account.move.line is already taking care of it
bzr revid: qdp-launchpad@openerp.com-20121221130302-23v55ygcqekdlywi
2012-12-21 14:03:02 +01:00
dle@openerp.com 84bef2751c [FIX]Wrong condition and message
bzr revid: dle@openerp.com-20121221124441-lklcl8b2bmp5wo27
2012-12-21 13:44:41 +01:00
dle@openerp.com 9b7b831608 [MERGE]Latest trunk
bzr revid: dle@openerp.com-20121221101215-8k320vze3pma2wjl
2012-12-21 11:12:15 +01:00
Quentin (OpenERP) 118316430a [FIX] account_voucher; when making a payment directly from an invoice, copy the invoice description as payment reference (instead of number, which should never be filled except by the voucher validation) + open a correct view with improved usability on partner_id field
bzr revid: qdp-launchpad@openerp.com-20121221095844-5029t8z6twv67dsc
2012-12-21 10:58:44 +01:00
Thibault Delavallée e3c31cab9e [IMP] track_visibility atribute: moved onto explicit strings.
bzr revid: tde@openerp.com-20121220114730-nip8qaaajr5mqw6s
2012-12-20 12:47:30 +01:00
Josse Colpaert a02e894bfc [FIX] Correction when no account or no company
bzr revid: jco@openerp.com-20121219115517-uj3t8embox155kty
2012-12-19 12:55:17 +01:00
Josse Colpaert dc47ad6c73 [FIX] Added onchange_company for gain and loss accounts in config settings
lp bug: https://launchpad.net/bugs/1076509 fixed

bzr revid: jco@openerp.com-20121219092235-wci6jo81q2ihgpgd
2012-12-19 10:22:35 +01:00
Thibault Delavallée 884c76a1f0 [REF] account_voucher: chatter messages replaced by a track on state, with a _track on model with subtype state_change.
bzr revid: tde@openerp.com-20121218172330-dsy8dth8reafgq2i
2012-12-18 18:23:30 +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 e7f4891d46 [IMP] use the openerp namespace.
bzr revid: vmt@openerp.com-20121206145632-0h1coh5aaem65wsy
2012-12-06 15:56:32 +01:00
Nimesh (Open ERP) 2b0a7a5776 [FIX] fix the problem of partial payment and purchase invoice will go to paid status even if the price is 0 in product.
bzr revid: nco@tinyerp.com-20121204100106-64i2borf2dyj8jt8
2012-12-04 15:31:06 +05:30
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 bfe22e3c72 [MERGE] fix voucher multi-lines rounding on taxes
bzr revid: fp@tinyerp.com-20121114111705-0ic4me8loy4jq3fl
2012-11-14 12:17:05 +01:00