Skip to Content
Menu
This question has been flagged
1 Reply
2092 Views

hi , i am new in odoo i have to module (account_cetic and l 10n_dz ) in account_cetic that inherit from account_account i add tow field 

_inherit = 'account.account'

is_section_management = fields.Boolean(string='Section Gestion ',
help="Check this box if this account have a section management.")
is_partner = fields.Boolean(string='Tiers ',
help="Check this box if this account have a partner.")
and in l10n_dz in the data file i call to this to filed in the chart of account 
<record id="pcg_1010" model="account.account.template">
<field name="name">Capital social</field>
<field name="code">1010</field>
<field name="is_section_management" eval='False'/>
<field name="is_partner" eval='True'/>
<field name="user_type_id" ref="account.data_account_type_equity"/>
<field name="chart_template_id" ref="l10n_dz_pcg_chart_template"/>
<field name="group_id" ref="l10n_dz.account_group_101" />
<field name="reconcile" eval="True"/>
</record>
averthing add from the data to the chart of account but the tow field doesnt make the change of data file i add account_cetic to deppends of l10n_dz but it doesn't work any help please
Avatar
Discard
Best Answer

Hello Asma,

Try to add those two fields in account.account.template level instead of account.account.

Thanks,

Avatar
Discard
Related Posts Replies Views Activity
9
Jun 23
11127
2
Jan 22
2729
2
Dec 21
6265
0
Jun 21
1005
0
Feb 21
1540