Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1637 Переглядів

Hi,

Lets Create a Demo for question !

class Characters(models.Model):
_name = "santex.characters"
​licensor_brand = fields.Many2one("santex.licensor_brands", string="Licensor Brand",
​domain="????????????????") # todo


class LicensorBrands(models.Model):
_name = "santex.licensor_brands"


​licensor_brands = fields.Many2one("res.partner", string="Licensor")


class LicenseContracts(models.Model):
_name = "santex.license_contracts"

licensor_contracts = fields.Many2one("res.partner")

Here is my question:
For licensor_brand field i need a Domain. This domain should be  match "licensor_brands" from "santex.licensor_brands" to
"licensor_contracts" from "santex.license_contracts".

Dummuy-Domain: [(santex.licanse_contracts.licensor_contracts), = ,(santex.licensor_brands.licensor_brands)]

THANKS FOR TAKING YOUR TIME !!!



Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
1
січ. 23
3236
1
квіт. 22
2522
0
лют. 16
4331
1
жовт. 23
2897
1
жовт. 23
2663