Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
3 Replies
5024 Tampilan

In case you work with another system or huge quotation that you would like to import, you sometimes need to add sections and/or note on the quotation/sale order lines. 
See below how you can add section/note via import. 

Avatar
Buang
Penulis Jawaban Terbai

In order to import a quotation with a note / section on the line, you need to use two different fields : 

1/ Field "Description" to indicate the title of the section or the note you would like to put

2/ Field "display/type" to indicate that the line you are importing is a section/note. 
            a. If it is a section, please enter "Section" in your import file (See number "1" from screenshot)

            b. If it is a note, please enter "Note"  in your import file (See number "2" from screenshot)


See below a screenshot of the Quotation in the front-end odoo : 



And for the import, it will be these fields (indicated in yellow) 


Warning : we here put ("order_line") as a prefix for the fields as we are on the sale order line. 
Also, in order to import SO+SO lines, you don't need to put each time the info linked to the SO. (e.g. we don't put 5 times S00080)



Avatar
Buang
Jawaban Terbai

Hi  Valentin,

I think this video can help you:

https://www.youtube.com/watch?v=etMYrOJyaiU&list=PLSKcWRTtEl5qzvRaI-VTGavfReiHS_EEb&index=2 (starting at minute 55 in this video)

Avatar
Buang
Jawaban Terbai

orden_line = models.execute_kw(db, uid, password,'sale.order.line', 'create',
[{'display_type': 'line_note',  (Note ->line_note, Section ->line_section) 
'name': 'XXXXX',
'order_id': order }])

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Agu 25
654
2
Agu 25
851
3
Jul 25
3423
1
Jun 25
1632
5
Jun 25
17535