تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3538 أدوات العرض

I am using odoo version 12 and I have created a char field in sale.order model with Studio and I want to access that field info in the accounting app, specifically in the invoice form and later in its report.


The field is for adding a name to each quotation, so I need that field to appear in the invoice.


Thanks in advance.

الصورة الرمزية
إهمال

You can add it as a related field on the invoice line, but not on the invoice header.

أفضل إجابة

Hi Francisco,

In order to be able to do this you will need two things. First you need a reference from the invoice (account.invoice) to the sale order (sale.order). If you have this field you have the link between the two tabels. After this link you can create a related field through the new many2one field that links both tabels. The value from the sale order will be shown on the invoice the moment you've filled in the many2one field with the right order. Here is a video to show you (I already made those two fields with studio before, you would have to choose new fields first): https://youtu.be/zKuxRTHONDA

P.S: If you want to have the many2one - so the link between the sale order and the invoice filled - you will need to come up with an automated action or default values to get it set.

Regards,
Yenthe

الصورة الرمزية
إهمال
الكاتب

Thanks Yenthe, It was a great help!

You're welcome, best of luck with Odoo.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
فبراير 25
1020
1
مارس 23
4704
2
سبتمبر 21
5521
Editing Fields تم الحل
2
نوفمبر 20
3384
Editing Fields تم الحل
2
نوفمبر 20
8038