Hi guys ,
If I have field FA in class CA in module MA , and field FB in class CB in module MB,
i want that the value of FA (entry) display in field FB
Any suggestions PPPLLLZZZ !!!!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi guys ,
If I have field FA in class CA in module MA , and field FB in class CB in module MB,
i want that the value of FA (entry) display in field FB
Any suggestions PPPLLLZZZ !!!!
Hi, thak you for your answer , it tried related field before and its didn't worked , and it now that I noticed that i didn't had FB field in xml, it was in comment ( just in python) hhhhhhhh, and now its work .
Thank you again
use Environment for that like this,
module MA->class CA
class ClassA(models.Model):
_name = 'modulea.classa'
fielda = fields.Char('Name', required=True,)
module MB->class CB
class ClassB(models.Model):
_name = 'moduleb.classb'
fieldb = fields.Char('Name', required=True,)
def get_recordes(self):
for record in self.env['modulea.classa']:
print record.fielda
I hope this works.
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
sty 17
|
2860 | ||
|
0
wrz 23
|
41 | ||
|
4
mar 23
|
16740 | ||
|
2
lip 22
|
3637 | ||
|
0
maj 22
|
1930 |