account invoice - only payable/receivable move lines must have partner_id
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
High
|
Jay Vora (Serpent Consulting Services) |
Bug Description
IMPORTANT/GRAVE
currently for all moves generated from invoices the partner_id is set
result - unusable for accountants.
* opening "All moves" from Partner shows not only the move lines related to the partners account (payable/
* the balance is always 0 - and not the partners balance
IMHO only move lines related to the partner should be shown here
a bug fix should also include a removal script for partner_id from all other accounts but those defined as payable/receivable for the partner for existing moves.
I have modified this already for "Entry by statement" thinking it's a local bug there.
see https:/
If the partner_id should (or must, what I do not hope) remain in the move line the XML must be heavily reworked , because the payable/receivable is a functional field which can not be filtered using domain.
IMHO should be discussed on account-experts list, because I might not have discovered all issues.
Related branches
Changed in openobject-addons: | |
importance: | Undecided → High |
Changed in openobject-addons: | |
assignee: | nobody → Jay (Open ERP) (jvo-openerp) |
Changed in openobject-addons: | |
status: | New → In Progress |
If I understood you correctly and when you say "All moves" you refer to "All account entries" then I agree with you that it makes more sense to have a listing of all moves related to the partner accounts ('receivable' and 'payable', maybe also when reconcile is True) when clicking the "All moves" rather than a listing of all types of accounts. id),('account_ id.type' ,'in',( 'receivable' ,'payable' ))] and you would get the behaviour you desire... Actions/ Window Actions" and editing the domain field. account_ invoice_ view.xml would be a better solution than changing the code that generates the account move for the invoice.
However the account type is not a functional field...
You can change the domain of "All moves" action from [('partner_id', '=', active_id)] to [('partner_id', '=', active_
You can test this on a working data base, search the "All Moves" (or "All account entries" in my case) action in "Administration/Low Level objects/
So I think changing this in the account/
Regards,
Hernán