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

accounts 4x17 don't seem to have the correct account_type #567

Open
risto42 opened this issue Sep 18, 2024 · 0 comments
Open

accounts 4x17 don't seem to have the correct account_type #567

risto42 opened this issue Sep 18, 2024 · 0 comments
Labels

Comments

@risto42
Copy link

risto42 commented Sep 18, 2024

l10n_fr_oca uses the following account_types for the 4x17

data/account.account.template.csv:pcg_4017,Fournisseurs - Retenues de garantie,401700,liability_payable,l10n_fr_oca.l10n_fr_pcg_chart_template,,True
data/account.account.template.csv:pcg_4117,Clients - Retenues de garantie,411700,asset_receivable,l10n_fr_oca.l10n_fr_pcg_chart_template,,True

whereas in practice, the following seems more appropriate:

env['account.account'].search([('code', '=like', '401700')], limit=1).account_type = 'liability_current'
env['account.account'].search([('code', '=like', '411700')], limit=1).account_type = 'asset_current'

This is because, by definition (and by law), the amounts in these accounts are not payable/receivable prior to 12 months after the date of reception of the work being invoiced.

@risto42 risto42 added the bug label Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant