OCA / l10n-france

France Localization for Odoo
GNU Affero General Public License v3.0
42 stars 118 forks source link

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

Open risto42 opened 2 months ago

risto42 commented 2 months ago

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.