Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
6437 Lượt xem

Hello ,

I need to show the field with same data that is in sales order (created by me) in different module like account module especially in customer invoice form....

Can any one help me...

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You have to just put the _columuns{your fields} to the destination class

otherwise you make a new module which inherit the account module

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you for your quick reply Mr.Kazim Mirza , what i really need is i created one field called e-sugam in sales order form i just want to pass that field with data that i gave in that field to customer invoice form how can i do this could you help me....

It's little bit complicated , if you change at sale order like, you make a new fields on sale order its not automatically pass to invoice , you have to send the value to sale order to invoice order .

Câu trả lời hay nhất

You can use here related field like

'sale_order_order':fields.many2one('purchase.order', 'Purchase Order'),
'amt_total':fields.related('sale_order', 'amount_total', type='float', relation='sale.order', string="Amount", readonly=True),

this is the use of related field

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
785
2
thg 7 25
890
1
thg 7 25
1953
3
thg 4 25
1978
3
thg 4 25
2947