c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #26834
[Bug 399826] Re: Confirming payment in account_payment does not create entries in journals/accounts; wizard missing?
If you are a small company you probably use "pay invoice" directly under
supplier invoice.
Larger organizations have accounting staff with different
responsibilities.
1. Choose which invoices are ok to pay
2. export these invoices to the bank for payment
3. manually or automatically import the changes on the account and match to invoices
Using the pay button on the invoice form will do everything for you but
you will then have to make actual payments manually (i.e. no connection
with the bank).
In essence. Nothing has happened on the bank account until the bank
provides a statement indicating that this has actually happened.
At the end of the day it depends on how you work. Larger organizations
tend to do things in batch mode compared to smaller organizations that
manage one invoice at a time.
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/399826
Title:
Confirming payment in account_payment does not create entries in
journals/accounts; wizard missing?
Status in OpenERP Localization for Argentina:
New
Status in OpenERP Modules (addons):
Invalid
Bug description:
Confirming payment in payment order will put the payment order in
'done' state however no corresponding entries are created in the
journals or accounts. Log file displays an error as "No wizard found
for the payment type 'Bla'".
Digging into the code it appears that in the file wizard/wizard_pay.py in 5.0 & trunk of account_payment there are some lines of code:
gw= order_ref.get_wizard(t)
if not gw:
order_ref.set_done(cr,uid,data['id'],context)
return {}
<other code below if gw=true, presumably related to the wizard and updating journals/accounts?>
tracing back order_ref (class payment_order in payment.py) yields get_wizard(type) as noted below
def get_wizard(self,type):
logger = netsvc.Logger()
logger.notifyChannel("warning", netsvc.LOG_WARNING,
"No wizard found for the payment type '%s'." % type)
return None
So from what I gather, get_wizard will always return None, so the if
statement above will always execute. Thusthe code beyond the if
statement will never execute. End result is that the payment order is
set to 'done' and nothing else happens. Presumably entries should be
created in the corresponding journals and accounts but none of that
happens which makes this module rather useless!
Did I miss anything? (Hope I did!)
To manage notifications about this bug go to:
https://bugs.launchpad.net/openerp-argentina/+bug/399826/+subscriptions