Closed hugho-ad closed 9 years ago
Hello,
Could you please provide us with the error message so we can determine what you problem exactly is ? And please, either past code or links to something like http://pastebin.com/, but not screenshots of code, thank you.
Regards, David
Hello @dmo-odoo , I have already corrected the comment, added a link with the code and the complete error.
Hello, An apology for the way you attach the code. We are trying to use parent for a field 'one2many', this we try to use the invisible attribute it, but we we throws the error.
No more for now, I hope to answer regards
2015-03-04 2:47 GMT-06:00 David Monjoie notifications@github.com:
Hello,
Could you please provide us with the error message so we can determine what you problem exactly is ? And please, either past code or links to something like http://pastebin.com/, but not screenshots of code, thank you.
Regards, David
— Reply to this email directly or view it on GitHub https://github.com/odoo/odoo/issues/5564#issuecomment-77117795.
Hello,
Try quoting parent.partner_id so it reads 'partner.partner_id' instead of partner.partner_id.
Best regards, David
Hello, I made the switch without getting success, so I see this wrong, but the problem is not partner.partner_id , is parent.partner_id
no more for now, I hope your answer.
regards, Hugo
Hello David,
I have posted one more comments in github page Espero tu respuesta
Regards,
2015-03-06 3:17 GMT-06:00 David Monjoie notifications@github.com:
Hello,
Try quoting parent.partner_id so it reads:
Instead of:
Best regards, David
— Reply to this email directly or view it on GitHub https://github.com/odoo/odoo/issues/5564#issuecomment-77528671.
Hello,
Yes sorry, it was parent and not partner, but it was not the solution anyway as you pointed out. Try to replace parent.partner_id by "invoice_id.partner_id" with the quotes, they are important. If it still doesn't work, try "partner_id" instead of parent.partner_id, don't forget the quotes.
Best regards, David
Hello I've already tried that with no results, there will be some way to iterate from the attr as well as in the domain
field name = "invoice_broker_id" domain = "[('id', '! =', parent.id), ('type', '=', 'in_invoice')]"
Not sure you can write '! =' with a space like that instead of '!=' ... What are you trying to do actually ? Because this domain is very different that the one in your original question?
Sorry, you're right, it "! =" And not "! =" Error finger, Anyway, I'm trying to iterate through a view, access the attributes of the parent model in the same way it is done in the domain.
You are mistaking account.invoice and account.invoice.line. Your invoice_broker_id field is on the account.invoice.line level, but the type field is on the account.invoice level.
Issue
When a field is added to account invoice line for later use in a view by adding the invisible attribute flag error be charged.
http://pastebin.com/70HaU8Z1
Code to reproduce issue
http://pastebin.com/QvKMM4bH
in View: http://pastebin.com/uXiT5wXH
Expected results
Being able to iterate over another model at the hearing
bug_followup@vauxoo.com