Commit Graph

23 Commits

Author SHA1 Message Date
Denis Ledoux d98ac716c1 [FIX] account: account type of account created on bank account creation
When creating a new bank account
e.g. Accounting > Configuration > Accounts >
Setup your Bank Accounts

When the user leaves the journal blank,
a journal, and an account associated to this
journal, are automatically created.

The account type of the account created could be wrong,
as it used the account type of the parent of the first
account of internal type `Liquidity`, which
could not be an account of account type Cash or Bank, but of
account type 'View', and such an account type does not
have the right delivery forward method, in order to report
correctly the amounts when closing a fiscal year.

Instead of using the account type of the parent,
it should actually uses the account type of the sibbling,
which have a correct delivery forward method

opw-647311
2015-08-14 10:46:05 +02:00
Martin Trigaux 7fc8a83b4b [FIX] account: restrict bank account post creation for account and journal
Do not create account and journal when there no liquidity account with a parent.
This removes a traceback but may lead to no auto configuration. This is not considered as critical as we prefer that instead of configuring wrongly accounts and journals

bzr revid: mat@openerp.com-20130610110401-1pgpql7r688et8sp
2013-06-10 13:04:01 +02:00
Olivier Dony 9b3e333d67 [MERGE] account: safer handling of acc_number values
l10n_fr_rib makes the field not mandatory, which is kind of illegal.
Short of changing that behavior, a quick fix is to be more lenient
with missing acc_number values.

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

bzr revid: odo@openerp.com-20130131133011-bfzfzmjh049tg3kd
2013-01-31 14:30:11 +01:00
Josse Colpaert 02908db002 name journal when bank account number does not exist
bzr revid: jco@openerp.com-20130129124151-ywtwxgpu4ciwl9sp
2013-01-29 13:41:51 +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
dle@openerp.com 514952bdd3 [MERGE]Latest trunk
bzr revid: dle@openerp.com-20121128164105-m3hgq38xw6ikewa5
2012-11-28 17:41:05 +01:00
Cedric Snauwaert 8ccbcb8171 [FIX]gave an error if data['currency_id'] exists but has value false
bzr revid: csn@openerp.com-20121123103657-jgewk23zrz3xo5ty
2012-11-23 11:36:57 +01:00
Cedric Snauwaert 2c0b28c27a [FIX]traceback when trying to add bank account to a company
bzr revid: csn@openerp.com-20121123095337-jqoqzpab4iyreh2s
2012-11-23 10:53:37 +01:00
Denis Ledoux dle@openerp.com 7e1ffaf613 [REM]Remove all account.journal.view and account.journal.column references
bzr revid: dle@openerp.com-20121122104504-ezgj2666zkhgybpj
2012-11-22 11:45:04 +01:00
Antonin Bourguignon 1653332080 [MERGE] trunk
bzr revid: abo@openerp.com-20121002102915-424prxd74izb1szw
2012-10-02 12:29:15 +02:00
Raphael Collet a44eb10af4 [IMP] account: adapt _prepare_name_get() of res.partner.bank to its new api
bzr revid: rco@openerp.com-20120913114609-pff1x0spvb0gja2u
2012-09-13 13:46:09 +02:00
Alexis de Lattre c62b820d51 Add ability to have %(currency_name)s in the format_layout of res.partner.bank.type
bzr revid: alexis@via.ecp.fr-20120710233503-i2b9g62syvz02gra
2012-07-11 01:35:03 +02:00
Olivier Dony 8c3890a893 [FIX] res.partner.bank: respect company restrictions when assign parent account for new bank GL account
bzr revid: odo@openerp.com-20120309105659-ijcyersotc96uwp8
2012-03-09 11:56:59 +01:00
Numerigraphe - Lionel Sausin f120f5aa5b [FIX] unmutable default in account
bzr revid: ls@numerigraphe.fr-20120305174111-zf5j02cm7veyvzs4
2012-03-05 18:41:11 +01:00
Raphael Collet bd566a401b [MERGE] account: add currency field on bank accounts (from Akretion)
bzr revid: rco@openerp.com-20120201125042-cd5omabmubyazd25
2012-02-01 13:50:42 +01:00
Alexis de Lattre d3d72dc943 Add related field currency_id on res.partner.bank.
Display it in the corresponding tree and form views.

bzr revid: alexis@via.ecp.fr-20120201100727-007fkyhltwewtbyy
2012-02-01 11:07:27 +01:00
Fabien Pinckaers 9faffcdb03 [FIX] no secondary currency on bank accounts to allow payment
bzr revid: fp@tinyerp.com-20111230102007-8qgqht1vv9xe62qq
2011-12-30 11:20:07 +01:00
Vo Minh Thu bca8a89bc5 [FIX] clean some warnings.
bzr revid: vmt@openerp.com-20111206101354-snbya2xtl8pjwskc
2011-12-06 11:13:54 +01:00
Numerigraphe - Lionel Sausin 779fa653c1 [IMP] Added missing vim mode lines
lp bug: https://launchpad.net/bugs/524279 fixed

bzr revid: ls@numerigraphe.fr-20111122085138-x6u2lcl6vrpyybp9
2011-11-22 09:51:38 +01:00
Vo Minh Thu b860abd1c2 [FIX] account: account_bank.post_write() accepts a single id, just like write().
bzr revid: vmt@openerp.com-20111115124226-v7lb3r5kpr1p3eis
2011-11-15 13:42:26 +01:00
Yannick Vaucher b9f57dfef7 [FIX] account : account_bank - post_write method not single id safe
lp bug: https://launchpad.net/bugs/888135 fixed

bzr revid: bde@tinyerp.com-20111115064057-osliuwprypaawyy5
2011-11-15 12:10:57 +05:30
Quentin (OpenERP) a3d158bc75 [IMP] account: defined a new method to prepare the name to use at the time of journal creation from a res.partner.bank object, in order to increase the possibility of overriding/inheritancy.
bzr revid: qdp-launchpad@openerp.com-20111107124337-x09b8wz6gcxxzer7
2011-11-07 13:43:37 +01:00
fp fa7874cddc [IMP] Improved bank account management, report footer, stages by default on projects
bzr revid: fp@fp-laptop-20110815142141-938zg1laoe8wtbkd
2011-08-15 16:21:41 +02:00