Hello, Odoo community!
I have a text field that fills with a list of a product like below, how can I write each product in a separate line.
food = ['Gouda Cheese', 'Pizza Italiana']
I want :
food = ['Gouda Cheese',
'Pizza Italiana']
my python code:
food = fields.Text(string = 'food')
    @api.onchange('date')
    def _onchange_food(self):
        d= datetime.datetime.strptime(self.date , "%Y-%m-%d").strftime('%A')
        self.food =self.env['lunch.menu'].search([('day', '=', d)]).mapped('product.name')
 
                        
Could you please explain more?