Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2579 Visualizzazioni

i have declared a new field in the res.users table 

     new_field = fields.Many2one('res.users', string="NewFIELD", index=True, ondelete='cascade')


and in the other side in the New_Model i inheritated the order.sales to be able to display our new_field.


    class SaleOrderLine(models.Model):

        _inherit = 'sale.order'

        profile_in = fields.One2many('res.users', 'profile', string='Profile') 

but instead of displaying the new_field values,  it displays the partner_id values. 

i usually use the get_name methode but on Odoo v13 i am affraid it dosent support it any more.

any solution ?  

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
feb 25
7414
1
nov 24
1194
1
apr 23
2562
7
feb 23
9078
0
set 22
1705