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

Hi,

I've created a new text field in Sales Order called Event Location which I want to automatically appear in the Invoice. 

I'm only able to use Odoo Studio and can't do code.

Any advice would be appreciated. Thanks. 

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

Hi,

Please refer the video: https://youtu.be/c4fKA_997sk

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

Brilliant! Thanks for this!

Thank you.

Tác giả Câu trả lời hay nhất

Thanks for the response. Is it possible to go through it step by step? I'm reading what computed fields are and i'm lost. 

I've tried add Related Fields > Sales Order > Location added to the invoice. But when creating the invoice from the sales order, the Location field is empty.

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

Hi,
You can do it via a computed field using studio/from the front end. In invoice line, there is relation to sale order line (field: sale_line_ids) and from sale order line you can get sale order and then new field.

So using this relation, build a compute field logic to get the new value

Thanks

Ảnh đại diện
Huỷ bỏ