Hi everyone! Sorry I am new to Tryton, so I face a lot of problems even by adding very basic features.
Recently, I’ve added this field to POS Sale class and the problem I’m facing is that every time I am creating a new POS Sale entry I’ve to manually select party from the selection area (that magnifying icon). What I want to do instead is to have a default value for this thing, so I don’t have to manually select every time for new entry
I mean to say that the party section should not be blank it should have a default value
party = fields.Many2One('party.party', "Party", depends=['state'], states={
'required': Eval('state', 'open') == 'done',
'readonly': Eval('state', 'open') == 'posted'
})