Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong UserError when journal has account_control_ids and invoice/bill has sections or notes #49692

Open
maringuadarrama opened this issue Apr 16, 2020 · 4 comments

Comments

@maringuadarrama
Copy link

Impacted versions: 13, guess also affects 12 and 11

Steps to reproduce:

-Set a payable/receivable journal with account_control_ids
-Create a bill/invoice that contains both or at least a section line or a note line
-Try to publish the bill/invoice

Current behavior:
-A UserError is raised when trying to publish

Expected behavior:
The bill/invoice is correctly published without user error

Video/Screenshot link (optional):

@pedrobaeza
Copy link
Collaborator

What "-Set a payable/receivable journal with account_control_ids" means?

@pedrobaeza pedrobaeza added the Need information the reports lacks of information label Apr 17, 2020
@maringuadarrama
Copy link
Author

Hi @pedrobaeza, you can configure journals with allowed accounts, so when creating an accounting move that contains other accounts than the authorized a usererror is raised,

I think since odoo 11 invoice lines can also have sections and notes, the method "_check_constrains_account_id" responsible doesnt consider the before said

Greetings

@pedrobaeza pedrobaeza added 13.0 Accounting and removed Need information the reports lacks of information labels Apr 18, 2020
@pedrobaeza
Copy link
Collaborator

OK, understood. This is only a problem of v13, as journal items are the same as invoice lines.

@oco-odoo can you please take a look to this?

@oco-odoo
Copy link
Contributor

Should be okay with this ;) #50120

@luismaring Thanks for reporting :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants