-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] internal_transfer_with_agreed_amount: modify write vals in one …
…method Modify in a single method the values that will be written in the account move lines so that the method can be inherited in case it is necessary to modify more values in the lines. In addition, two methods are added to pre and post process payments, to be used if modifications are required in an inheritance. Finally, obtaining currencies related to the internal transfer have been moved to a separate method to facilitate the inheritance of the method that validates the number of currencies. Changelog: - Set debit and credit values to write in _prepare_values_from_lines method when the exchange currency is the same as the company currency. - Add methods to be inherited when payments also needs modifications. - Get the currencies in a new method named _get_currencies.
- Loading branch information
Showing
1 changed file
with
26 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters