-
Committer:
Alexandre Fayolle
-
Author(s):
nicolas.bessi at camptocamp
-
Date:
2013-04-25 13:38:42 UTC
-
mfrom:
(89.1.44 bank-statement-reconcile)
-
Revision ID:
alexandre.fayolle@camptocamp.com-20130425133842-43ho9vq5ob1k88r8
[MRG] Major refactoring of statement import and completion:
Fix the way to look default account on partner:
- If master account is provided in profile it will be forced
- If the customer checkbox is checked on the found partner, type and account will be customer and receivable
- If the supplier checkbox is checked on the found partner, type and account will be supplier and payable
- If both checkbox are checked or none of them, it'll be based on the amount :
If amount is positif the type and account will be customer and receivable,
If amount is negativ, the type and account will be supplier and payable
Completion:
-Fix and refactor the the invoices lookup for completion
-Various fixes in completion rules
- Non matches lines are not mark as completed.
Optimisation:
Refactoring of statement import:
We by pass ORM to increase performances.
TODO support of sparse field
Refactoring of completion.
We have done some structural changes in order to avoid a lot of un needed call to ORM.
Bypass orm when writing to database.
These merge is required in order to fix transaction id completion rules and import +
Handle the new semantic change in OpenERP partner model