[trunk V6] Partner included in Bank Statement can be deleted

Bug #685974 reported by Els Van Vossel (Foxy)
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Low
OpenERP R&D Addons Team 3

Bug Description

Bank Statements in V6

Create new bank statement.
Add new line with any partner (e.g. axelor), select Supplier, key in an amount.
=> What you do is just create an advance payment. (Make sure no invoices are linked to the partner)

Then you confirm the bank statement (of course, change the closing balance to match the correct amount).

Then go to the partner Axelor and delete it.
You can perfectly delete this partner! This should be impossible.

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

I have checked this issue. This may be the problem related to the "Partner" filed in "Bank statement" which is not required.

Thanks.

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
rvo(Open ERP) (rvo-openerp) wrote :

 Hello Els Van Vossel,

I have checked the issue. However, we cannot make partner as a required field in bank statement line as partner is not required in move line too. Also, it allows to confirm bank statement without partner for accounts not of type Receivable/Payable.

As of now, this bug won't be fixed.

Thanks.

Revision history for this message
Els Van Vossel (Foxy) (els-vanvossel) wrote :

I hope you are kidding me?

Revision history for this message
qdp (OpenERP) (qdp) wrote :

yes it has indeed to be fixed! but not by putting required=True on the partner_id field, you have to set ondelete=restrict on the field partner_id of the account.move.line object

thanks

Revision history for this message
rvo(Open ERP) (rvo-openerp) wrote :

Hello Els Van Vossel,

It has been fixed in Addons3 branch.

revision-id: mra@mra-laptop-20101209072935-cizg6tnfvmyegtvp
revno: 4731
branch-nick: trunk-dev-addons3

Thanks.

Changed in openobject-addons:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.