I'm trying to assign account Id to quote, but i can't even compile code, becouse of this error message: Field is not writeable: Quote.AccountId
Sample code:
Account acc = new Account(name='Test Acc');
insert acc;
Quote qu = new Quote(name='01010', accountId=acc.Id);
I know, that Quote has some required fields, but for the sake of simplicity, this sample code is assigning just accountId.
Is there some known workaround?