Comments (2)
Consider whether this is likely to be an issue in:
- 8.0
- 10.0
- 11.0
- 12.0
Fix the issue in:
- 8.0
from mtd.
Effectively, there are at least two taxes that satisfy the following condition in the database in question:
self.output_account_type = self.env['account.account.type'].search([
('code', '=', 'Output Tax'),
('name', '=', 'Output Tax')])
but when assigning to a many2one there can only be zero or one records (this makes sense if you think about it).
There's a possibility the line below it might also suffer the same fate, which does similar in the same way but looks for Input Tax.
We need to decide if it's a data bug or it's reasonable to have this situation and therefore should handle it in the code. If it's a data bug, we could at least trap the >2 matches case and throw a more user-friendly error message.
from mtd.
Related Issues (19)
- account_mtid_vat v8.0 inheritance chain broken HOT 1
- [account_mtd_vat] Re-check obligation on click of submit button HOT 1
- [account_mtd_vat] Determine whether box 5 was originally negative from GUI in view vat return form HOT 1
- [account_mtd_vat] Create log entry as early as possible in submission process
- [account_mtd_vat] Ability to continue to the reconciliation if code failed after successful submission to HMRC for any reason
- [account_mtd_vat] response_from_hmrc field ends up blank in 'redirect_uri is invalid' scenario
- [account_mtd_vat] Warnings about unknown fields in vat_detailed_submission_logs
- [account_mtd*] rename `record` variables and parameters in various places
- [8.0 account_mtd_vat] Refreshing browser after drill-down to journal items from chart of taxes shows wrong set of results
- View VAT Returns box number correction.
- Unknown comodel_name in mtd_vat.vat_detailed_submission_logs
- [8.0 account_mtd_vat] Override of _sum_year may be dead or need changing
- [MTD] Sequencing required on VAT endpoints
- [8.0 account_mtd_vat] Two code paths configuring the chart of taxes
- redirect url exposes ERP server to attacks from outside
- [account_mtd_vat] Missing tests
- [MTD] Separate odoo-version-specific code into a models/version_specific.py
- [account_mtd_vat] Get rid of parallel ifs and God View
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mtd.