Validation on export data for one2many field column in Odoo 13
问题 I want to show validation error when the user export records for state='draft'(in one2many field). I have done code for it and it's working fine. but when I put this code for one2many table then I unable to get a validation message. My code is below: class DailyTransaction(models.Model): _name = 'daily.transaction' _rec_name = 'batch_id' date = fields.Date() batch_id = fields.Char() daily_transaction = fields.One2many('transaction.log', 'daily_trans_log', string='Daily Transaction') class