<field eval="[(6,0,[])]" name="child_consol_ids"/>
Hello, i'm asking if someone can help me and explain to me what this code return :
<field eval="[(6,0,[])]" name="child_
"child_consol_ids" is a field in account_account and his type is "one2many"
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- aymen
- Solved:
- Last query:
- Last reply:
Revision history for this message
![]() |
#1 |
This erases the value of the many2many, or one2many field 'child_consol_ids' by writing an empty set of ids. More about manipulating x2many field values here: http://
Revision history for this message
![]() |
#2 |
Aymen,
This specifies that the 'child_console_ids' field of your model does not contain any value by specifying [].
Functionally, there are no consolidated accounts when the articular account was created.
Thanks.
Revision history for this message
![]() |
#3 |
Stefan, Serpent,
Thank you so much for your answers , that helped me so much
Revision history for this message
![]() |
#4 |
Hello, i tried to do as u said and as it's mentioned on the link but it doesn't work.
i tried to do this : <field name="child_
'account231000' is the id of a record
Thereare nor errors but it does'nt return any result
Revision history for this message
![]() |
#5 |
Try module.xml_id. I've experienced this for csv Id not being recognized.
Otherwise, trace ORM, you will get the reason why.
Thanks.
Revision history for this message
![]() |
#6 |
I tried that but i have the same result. Otherwise, i think that may not have any effects because i work on the same module, so there are no differences between putting the name of the module or not
Revision history for this message
![]() |
#7 |
The next big thing is:
1. Make sure you xml gets encountered or not.
2. debug what is being considered when your xml is getting parsed!
Thanks.
Revision history for this message
![]() |
#8 |
i checked everything, all records are generated just the field "child_consol_ids" is still empty
Revision history for this message
![]() |
#9 |
Interesting,
Would you please send some code here if you want us to help you?
Thanks.
Revision history for this message
![]() |
#10 |
I'm trying to generate accounts from a template, i created the accounts by
the following manner :
<record id="account21" model="
<field name="code"
<field eval="1" name="reconcile"/>
<field name="name"
<field model="
search="[('name', '=', u'Vue')]"/>
<field name="parent_id" ref="account2"/>
<field name="type"
</record>
but in some accounts i need to specify some consolidated child, so i tried
to do that by this code:
<record id="accountBA11
<field name="code"
<field eval="0" name="reconcile"/>
<field name="name"
<field model="
search="[('name', '=', u'Vue')]"/>
<field name="parent_id" ref="accountBA1
<field name="child_
eval="[
<field name="type"
</record>
this works normally in some other modules, but i don't know why it didn't
work here
2013/4/2 Serpent Consulting Services <email address hidden>
> Your question #225368 on OpenERP Addons changed:
> https:/
>
> Serpent Consulting Services proposed the following answer:
> Interesting,
>
> Would you please send some code here if you want us to help you?
>
> Thanks.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https:/
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https:/
>
> You received this question notification because you asked the question.
>
--
Cordialement,
ALAYA Mohamed Aymen
Élève ingénieur en Ingénierie Logicielle et Systèmes d'Information
*É*cole *N*ationale des *S*ciences de l'*I*nformatique
Revision history for this message
![]() |
#11 |
Aymen,
child_console_ids canot be added to template, this is not one of the fields for template, but is for account.
Thanks.
Revision history for this message
![]() |
#12 |
I created a class which inherits from account_
Revision history for this message
![]() |
#13 |
Override create() and see whether the table gets filled up with the values or not!
Revision history for this message
![]() |
#14 |
sorry but i didn't understand you, could you explain to me what i have to do exactly?
Revision history for this message
![]() |
#15 |
Are you aware about create()? If yes, override to see what gets counted for creation of template!
Thanks.
Revision history for this message
![]() |
#16 |
the problem were in the method "generate account" , i had to add the field child_consol_ids in the account_
i specify the values by this manner:
when i put :<field name="child_
when i want to add other values like this:
<field name="child_
Revision history for this message
![]() |
#17 |
i tried also this : <field name="child_
Revision history for this message
![]() |
#18 |
Its a bug then!
Revision history for this message
![]() |
#20 |
sorry for the disturbance but i will be so grateful if you help me to understand this. I would like to know the difference between writing ( eval="[
Thanks
Revision history for this message
![]() |
#21 |
The ref(XMLID) will give you the database referential id of the record for which the xmlid exists.
[account21] is of no use!
Thanks.
Revision history for this message
![]() |
#22 |
thank you so much, i have solved the problem. I have forgot to put the parent_id of an account, so it will not be generated because it is not linked to the root, then i tried to associate it to child_consol_ids, so the error