I would like to be able to retrieve the terms and conditions (invoice_terms) who are in the settings in order to put them in the "narration" field of an invoice that I automatically generate in my new module.
My problem comes from my access to the invoice_terms field with the model creating my invoice. I cannot find the syntax allowing this.
I tested with :
Rib_recup = fields.Char(related='account.move.narration')
But also with the self.env[].
But i don't find any solution, it would crash or only add None.None in the narration field.