-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] account_check: Support deposit and transfer checks from differe… (
#126) * [ADD] account_check: Support deposit and transfer checks from different currencies * [ADD] account_check: Support deposit and transfer checks from currencies different that the company. * [ADD] account_check: Hide exchange information when delivered_third_check * [IMP] deliverd third checks on other currency * [IMP] improve code for checks in other currency * [FIX] lint * [IMP]
- Loading branch information
1 parent
59852b2
commit 4f9399c
Showing
6 changed files
with
87 additions
and
16 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from openupgradelib import openupgrade | ||
import logging | ||
|
||
_logger = logging.getLogger(__name__) | ||
|
||
|
||
@openupgrade.migrate() | ||
def migrate(cr, version): | ||
|
||
_logger.info('Setting inital values for amount_company_currency') | ||
cr.execute(""" | ||
UPDATE account_check AS ac SET amount_company_currency = ac.amount | ||
FROM res_company AS rc | ||
WHERE rc.id = ac.company_id and ac.currency_id = rc.currency_id | ||
""") |
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
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
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
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