Hi,
I was a common issue with reference field, specially with origin of account.move. When only the model is filled but not the record, tryton stores it as -1. Is there a way to validate a field before to save making the model and record required?
Thanks in advance!
Required works as you would expect trytond: a6ba95b555c3
I would expect that if I modify model I require to add a record, but at the moment I can only edit the model without the need to add a record.
I found a working example in https://github.com/tryton/sale_advance_payment/blob/f7ef932d3f274b988f4dedb8e727fc17b21b8e2f/sale.py#L87
I will try with it.
Only if the field is required.