mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
Merge pull request #655 from OCA/11.0-fix-dunning-fees-broken-build
[FIX] account_credit_control_dunning_fees: Change currency by SQL
This commit is contained in:
@@ -15,7 +15,10 @@ class FixedFeesTester(common.TransactionCase):
|
||||
self.assertTrue(self.usd)
|
||||
|
||||
self.company = self.browse_ref('base.main_company')
|
||||
self.company.currency_id = self.euro
|
||||
self.env.cr.execute(
|
||||
"""UPDATE res_company SET currency_id = %s
|
||||
WHERE id = %s""", (self.company.id, self.euro.id),
|
||||
)
|
||||
|
||||
level_obj = self.env['credit.control.policy.level']
|
||||
self.euro_level = level_obj.new({
|
||||
|
||||
Reference in New Issue
Block a user