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

Hello,

I've created it a new modele and attach it to my account.invoice as many2one. I've also modified the form of invoices , hence everything is working well: 

  • When you create a new invoice, you have to provide a value for the new field

  • When you search invoices, you can filter by the new field


Now my goal is to be able to have the same information in the invoice report. I've tried to add this new field to the following modele "account.invoice.report" but it is not working. 
Any idea how can I propagate custom fields from invoice to invoice report?


thank you very much



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

Do you have studio? The easiest part is to use Odoo studio and add the fields to the view, otherwise inherit the QWeb report and add your custom code there to add in the new fields.

Maybe you can create a field in "account.invoice.report" related to the Many2one field in "account.invoice". Field has an attribute named "related".

أفضل إجابة

Have google translate the following aids:

https://celebraciones.com.mx/anadir-campo-personalizado-a-una-factura-odoo-v-12/

http://jhomartinez.blogspot.com/2015/03/reportes-en-odoo.html

(For step 5 there is a new way in V12, go to technical-reports and activate the menu print option at the right hand side of the screen).

Good luck and please upvote if helpful.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مايو 20
4834
2
نوفمبر 18
4231
0
يناير 22
3373
3
فبراير 20
16340
1
ديسمبر 19
4470