openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #06876
[Bug 922148] Re: [6.1][POS] creates debit and credit lines on identical account
Hi Thibault,
here are the exact steps to reproduce this problem from scratch, on
today's bzr branches.
- Create a database
- Install account module
- Give admin user all permissions
- Configure chart of accounts (Dutch)
(this sets property_account_receivable to 'Debiteuren')
- Install point_of_sale
- Create a product 'P' with Point of sale category 'Other',
with price = €1
- Mark cash journal as PoS Payment Method
(this journal has default debit account 'Cash'
and default credit account also 'Cash')
- Open POS interface, open registers
- Click on product 'P'
- Click on Cash button
- Click on Validate
- Close POS interface, close registers
- Go to Accounting -> Journal Items
Two journal items are created:
Cash: debit - €1
Cash: credit - €1
This should be:
Cash: debit - €1
Debiteuren: credit - €1
If it works for you, I would be curious to know your setup!
Cheers,
Stefan.
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/922148
Title:
[6.1][POS] creates debit and credit lines on identical account
Status in OpenERP Addons (modules):
Confirmed
Bug description:
Hi,
in point_of_sale, a payment creates a move with debit and credit moves
on an identical account. I.e. it has a balance of zero.
A payment creates an account.bank.statement.line with a value for the
field 'account_id' that is derived from the field 'account_id' on the
account.bank.statement. This is the journal's default debit account.
This account will be credited when an amount is paid into the cash
register. Now as per create_move_from_statement_line, the journal's
default debit account is also the account that will be debited when an
amount is paid into the cash register.
Instead, I would suggest that the payment be created with the value of
property_account_receivable instead.
Cheers,
Stefan.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/922148/+subscriptions
References