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

Hello all, 

I am using odoo online SaaS. We make monthly a one single invoice (to each customer) coming from multiple sales orders. I want to add in each invoice line the related sales order number. I've tried to do this with studio app but no chance. 

As far as I know I have to edit models or create a new one with many2many relation but my knowledge is not high so will appreciate if you can specify all the steps. 

Thank you a lot in advance

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

Hello Nomad, thank you very much for your reply, now it works.

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

Hi poef,

You have to add a many2many relation on your invoice lines. Relation should be towards existing sales order model.
Check out the following images so you can have an idea of how it is done.
You can change the many2many widget to display the records in different manners. In my example I used many2many_tags widget.

https://ibb.co/Qdh7Bq9
https://ibb.co/T18DhdM
https://ibb.co/4SpQtXB

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 25
1249
2
thg 3 24
3674
2
thg 1 21
4371
0
thg 9 19
2870
0
thg 2 19
4536