Commit Graph

1204 Commits

Author SHA1 Message Date
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
Martin Trigaux b38a129d71 [FIX] account: move translatable tag
The field note on account.fiscal.position and account.fiscal.position.template should not be translatable in classic modules.
The l10n_multilang module is intendend to make chart of accounts multilang and is the place to set translate=True
2014-06-11 14:53:59 +02:00
Martin Trigaux 29565d96fe [MERGE] [FIX] account: when computing a tax with include_base_amount enabled, include the child tax amounts into the sum for the next tax 2014-05-14 13:02:01 +02:00
Martin Trigaux 23268ad677 [FIX] account: avoid tax on name search to execute request with empty journal (if context == {'journal_id': False}) (opw 606875)
bzr revid: mat@openerp.com-20140422135012-6faelx7cf0p8cvab
2014-04-22 15:50:12 +02:00
Ravi Gohil (OpenERP) 70dc4456d7 [FIX] account: Advance search on 'Tax' from journal items leads to traceback if we do not select any journal. (Maintenance Case: 606875)
bzr revid: rgo@tinyerp.com-20140422111115-17e6juruftp3oj2r
2014-04-22 16:41:15 +05:30
Denis Ledoux c3300dce7a [FIX] account: name_search methods used '=' or 'ilike' to search, instead of the actual operator
Therefore, for example, searching invoices for journals doesnt containing 'sales' actually returned invoices with journal containing 'sales'.

bzr revid: dle@openerp.com-20140414121930-xbawuj93ddifhf4m
2014-04-14 14:19:30 +02:00
Najlaâ 6ab74d0d8d [FIX] account: change decimal precision to avoid erasing tax and base values when updating a tax with coefficients on more than 2 decimals
bzr revid: nel@tinyerp.com-20140312130522-qr5e010onc7ejrz5
2014-03-12 14:05:22 +01:00
Denis Ledoux 1a5d2e77c4 [FIX] account: using float_round instead of native python round method, to apply half-up tie-breaking rule (1.655 with precision 2 is now 1.66 instead of 1.65).
bzr revid: dle@openerp.com-20140312120904-ucixsl1szfi1q0ea
2014-03-12 13:09:04 +01:00
Martin Trigaux aa9efd6dab [FIX] account: correct name_search on account to be validated even at negation
added test checking every combinaison of name_search

bzr revid: mat@openerp.com-20131206170012-991vs7pa1yzxvav8
2013-12-06 18:00:12 +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 fc4eca01e7 [FIX] {account, sale_stock}: res_config: set_default as SUPERUSER_ID. check user group to avoid passthrough access rights security
bzr revid: dle@openerp.com-20131129154714-pogix71b73nz11qp
2013-11-29 16:47:14 +01:00
Martin Trigaux d3e25aa5e9 [IMP] account: cleanup
bzr revid: mat@openerp.com-20131118165631-13pfg3w6ri0zbuau
2013-11-18 17:56:31 +01:00
cto 9849e23204 [MERGE] [FIX] account: unlink method on account.move accepts one argument (opw 592795)
bzr revid: mat@openerp.com-20131118130622-5sbeznvfv1unnpxx
2013-11-18 14:06:22 +01:00
Olivier Dony 837196afbd [FIX] account: CoA installer: include parent charts when determining default taxes, otherwise they cannot be set during install
bzr revid: odo@openerp.com-20131003134820-ksc52izjwfpxn2ps
2013-10-03 15:48:20 +02: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
Thibault Delavallée fd5ad86c57 [FIX] account: fixed an error when using custom chart of accounts, could lead to no result in search in ir model data
bzr revid: tde@openerp.com-20130913082516-bv8lvmgmyay4o86s
2013-09-13 10:25:16 +02:00
Thibault Delavallée 6df4eaacd5 [MERGE] [FIX] charts of account: fixed currency not selected on COA, added some missing default values (US/MA/VE).
Currency is found by adding values in ir.values and retrieving it when installing the COA.

In trunk/8.0, a new currency_id field will be added allowing to retrieve directly the currency.

bzr revid: tde@openerp.com-20130912113247-esuwq1zppcq2gakk
2013-09-12 13:32:47 +02:00
Turkesh Patel (Open ERP) 2003332c63 [FIX] remove use of search_read method
bzr revid: tpa@tinyerp.com-20130910094112-1rb8aq23vwwpyw6v
2013-09-10 15:11:12 +05:30
Martin Trigaux 93e93e8d4e [IMP] account: don't write state as draft on lines that are already in draft state (performace improvement)
bzr revid: mat@openerp.com-20130909125751-we5n8e018bwqadvz
2013-09-09 14:57:51 +02:00
Turkesh Patel (Open ERP) 84872f59c8 [IMP] improved code
bzr revid: tpa@tinyerp.com-20130909065930-u9btuxnl7ot19fuo
2013-09-09 12:29:30 +05:30
Turkesh Patel (Open ERP) bf1649ff74 [ADD] remove currency_id logic and set currency_id based on ir.values
bzr revid: tpa@tinyerp.com-20130906090052-mr2hcurvsu573pm1
2013-09-06 14:30:52 +05:30
Turkesh Patel (Open ERP) 3bbe2330af [IMP] improved code to set default accounts in l10n_us,l10n_ma and added new currency_id field to set currency based on select coa, fixed installation time error of l10n_ve
bzr revid: tpa@tinyerp.com-20130903070707-7ib7qi5yubhr11u8
2013-09-03 12:37:07 +05:30
Denis Ledoux 641f19aedf [FIX]account: field partner_id, define store param to handle updates of partner changes in entries
bzr revid: dle@openerp.com-20130902124648-340vz90i1ng1zh01
2013-09-02 14:46:48 +02:00
Cecile Tonglet aef380c5c8 [FIX] account.account.type getter function of field report_type now handle ValueError raised by get_object_reference()
bzr revid: cto@openerp.com-20130827064025-ebw8skxpku1jad20
2013-08-27 08:40:25 +02:00
Dhruti Shastri (OpenERP) b3fb845dbb [account] : Missing a check in an unlink() overload (Case:592795)
bzr revid: dhs@tinyerp.com-20130617110044-ntskqznsilq32hx1
2013-06-17 16:30:44 +05:30
Rifakat 1dceb70f3b [FIX] account: if tax is , total base is
applied only on the main tax and does not carry the child tax amount into base, it is compulsory to add child tax amount to tax base
becuase the next tax i.e. VAT is applied on total tax base amount
2013-06-13 15:13:30 +05:30
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
Martin Trigaux 17a618eb89 [MERGE] [FIX] context is not propagated through account_period.name_search to account_period.search, courtesy of Guewen Baconnier (Camptocamp)
lp bug: https://launchpad.net/bugs/1177348 fixed

bzr revid: mat@openerp.com-20130528152327-zq382uvqn9h3ja83
2013-05-28 17:23:27 +02:00
Martin Trigaux a1bbb140b3 [IMP] account: use digits precision of account +3 for account.tax and templates
bzr revid: mat@openerp.com-20130527085957-xq6zwmc3lhn6yy83
2013-05-27 10:59:57 +02:00
Quentin (OpenERP) 7ca85ffbba [FIX] account: exclude company_id from build_ctx_periods()'s criteria to allow printing consolidated reports
bzr revid: qdp-launchpad@openerp.com-20130523122756-tpkc268q107hiqvy
2013-05-23 14:27:56 +02:00
Guewen Baconnier 1c4bdf3061 [FIX] context is not propagated through account_period.name_search to account_period.search
lp bug: https://launchpad.net/bugs/1177348 fixed

bzr revid: guewen.baconnier@camptocamp.com-20130507115306-lrnb0t3139lfxtie
2013-05-07 13:53:06 +02:00
Quentin (OpenERP) 7e46260474 [FIX] account: modified the constraint on account.move.reconcile in order to allow the reconciliation to be made on different partners if it doesn't concern a payable or receivable account
bzr revid: qdp-launchpad@openerp.com-20130423125731-dblhpx7zz4q9x464
2013-04-23 14:57:31 +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 d43b932270 [FIX] Forwardport of 6.1 fix by han: Do not copy the statement_id value when copying account moves
bzr revid: cbi@openerp.com-20130404090948-c7zw5yco1sply0b8
2013-04-04 11:09:48 +02:00
Rifakat d4fe5a47f3 [FIX] account: put a restriction to re-open a period which belongs to
> the closed fiscal year,
it must not be possible to re-open a period and post journal items when its fiscal year is closed

bzr revid: rha@tinyerp.com-20130123103911-trxfkv0kemltvdv5
2013-01-23 16:09:11 +05:30
Quentin (OpenERP) cd164a8bc9 [MERGE] v7
bzr revid: qdp-launchpad@openerp.com-20130313110304-8fivajfr9779x58s
2013-03-13 12:03:04 +01:00
Quentin (OpenERP) 9446f1d291 [MERGE] v7.0
bzr revid: qdp-launchpad@openerp.com-20130306162854-q3d41kqf51vnske8
2013-03-06 17:28:54 +01:00
Quentin (OpenERP) 1bed52ec67 [FIX] account, duplicate of account.tax: better fix for problem fixed in revision 8807.
fixed the duplicate of tax (wasn't working because of a unique constraint on name field). The previous fix was working only for taxes that doesn't have any child. The reason is that copy() is never called for one2many fields, only copy_data() is called (and give the same results for other fields)

bzr revid: qdp-launchpad@openerp.com-20130307090408-cxb1qcfz4n9ksrg5
2013-03-07 10:04:08 +01:00
Quentin (OpenERP) cdabf79cf2 [REF] hr_expense, creation of accounting entries from hr.expense: a lot of code refactoring. Still a huge work to be done in order to factorize some code with other objects (like account.invoice, account.voucher, account.asset...)
bzr revid: qdp-launchpad@openerp.com-20130306140554-fhs6fhkyb779t6re
2013-03-06 15:05:54 +01:00
Quentin (OpenERP) 7f8d7e3518 [FIX] account: fixed the duplicate of tax (wasn't working because of a unique constraint on name field)
bzr revid: qdp-launchpad@openerp.com-20130306132543-4kqiwuvoo61h18qs
2013-03-06 14:25:43 +01:00
csn-openerp efbb25bae3 [FIX] account: missing ondelete cascade rule on m2o between 2 TransientModels
bzr revid: csn@openerp.com-20130129133427-ar1wiknf0ck15257
2013-01-29 14:34:27 +01:00
Quentin (OpenERP) 26f5b8b7bf [FIX] account: when generating the opening entries, do not copy the last partner on the centralisation lines (was set in default_get) but force it to False
bzr revid: qdp-launchpad@openerp.com-20130107135507-jfm7ptd64zlldrqr
2013-01-07 14:55:07 +01:00
Randhir Mayatra (OpenERP) 0d8b961905 [IMP] improve the string in account
bzr revid: rma@tinyerp.com-20121219072915-bd84k8220m6dsgm1
2012-12-19 12:59:15 +05:30
Randhir Mayatra (OpenERP) bb43d29605 [IMP] improve the string in account
bzr revid: rma@tinyerp.com-20121219072537-8szdtp4nmz5xr2hh
2012-12-19 12:55:37 +05:30
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 b67f73c327 [MERGE] Sync with trunk
bzr revid: odo@openerp.com-20121218025230-zig415ldtmazgbxt
2012-12-18 03:52:30 +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 15fe515601 [MERGE] From trunk
bzr revid: cto@openerp.com-20121217144306-tkodwpox30cuvb28
2012-12-17 15:43:06 +01:00
Fabien Pinckaers d9b7d8155e [IMP] multi-currency stuff
bzr revid: fp@tinyerp.com-20121215162309-yav3g8hu50bp9wvv
2012-12-15 17:23:09 +01:00
Vo Minh Thu 6072fd11af [MERGE] merged trunk.
bzr revid: vmt@openerp.com-20121210111654-0pm3pupnqqeip52n
2012-12-10 12:16:54 +01:00