-
Notifications
You must be signed in to change notification settings - Fork 1
Currency Rounding Script
When trying to manually change the currency rounding in a running database (contains data already), Odoo will throw an error warning to prevent it. To circumvent this issue, we can run a script by putting it on a server action as such
env.cr.execute('''update res_currency set rounding = 0.01, decimal_places = 2 where name = 'THB';''')
env.cr.execute('''update account_move_line set debit = round(debit, 2), credit = round(credit, 2), balance = round(balance, 2), amount_residual = round(amount_residual, 2), amount_currency = round(amount_currency, 2), amount_residual_currency = round(amount_residual_currency, 2);''')General Rules
Presales
What counts as LOC
Training Request
Third Party App
Third Party App for Sales
Integrations for Sales and FC
Saas to SH
HK Tech Onboarding
Pre Commit Setup
Visual Code Setup
Creating New SH Project
Upgrade/Migration Scripts (Technical)
Currency Rounding Script
Saas Customization
New
Analysis
Waiting for Client Go
Planning
Development
Code Review
Functional Testing
Client Validation
Fail Validation
Merge
Done
Help & Training
--> New Project
--> Project follow-up
--> New Pack (Upsell)
--> Project handover
--> Unassigned
--> Assigned
--> Kickoff and Qualification
--> Configuration
--> Production
--> In support
--> Cancelled
--> Upsell Done
--> On Hold
--> Churn
--> Introduction
--> Upgrade Workflow
--> Timesheeting for FC
--> FAQ Upgrade
--> Additional Documentations/References