Error: psycopg2.errors.ForeignKeyViolation: insert or update on table "pma_contract" violates foreign key constraint "pma_contract_lessor_fkey"
DETAIL:  Key (lessor)=(2) is not present in table "pma_contract_lessor_profile".
In model "pma.contract.lessor.profile", I create a new field:
 contract_id = fields.One2many("pma.contract", "lessor", string="Contract member")
In model "pma_contract, I changed:
    lessor = fields.Many2one("res.users",
		string="Party A (Lessor)",
		store=True,  required=True,  tracking=True)to:
 
    lessor = fields.Many2one("pma.contract.lessor.profile",
		string="Party A (Lessor)",
		 store=True,  required=True,  tracking=True 
