跳至内容
菜单
此问题已终结
2074 查看

I wonder if i can use 2 pages in a notebook to show different fields from the same model

like


class ImportTemplate(models.Model):
_name = 'comex'
...
producto_line = fields.One2many('comex.line','producto_id', string='linea producto', copy=True, auto_join=True)

class ImportTemplate_line(models.Model):
_name = 'comex.line'
...
producto_id = fields.Many2one('comex',string ='id producto',required=True, ondelete='cascade', index=True, copy=False)
nombre = fields.Many2one('product.template',string="Descripcion",required=True)
dolar = fields.Float(default='1')
cantidad = fields.Integer(string='Cantidad',required=True, default='1')
total = fields.Float(string = "Total FOB")
totalx = fields.Float(string = "Total extra (CIF)")



    

    
        
            
            
            
        
    
    

    
    
        
            
            
            
        
    
    
 


until now i can't but i wonder if there is a way to do this

形象
丢弃
相关帖文 回复 查看 活动
2
12月 23
14711
0
10月 23
33
3
10月 23
788
1
10月 23
569
1
8月 23
2446