Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
2611 มุมมอง

When the description gets printed in an invoice report the name gets copied and printed as well.


For example 

product name: ball

description: football sized euro


The invoice shows:

Product: ball

Description: ball  football sized euro


Is it possible to remove the "ball" product name from the description in the invoice? This is a double of the product name that is already listed.


TIA


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Inherit "account.move.line" model and  override the method "_get_computed_name". Customize it as you want. This method return the value which you see in the invoice as description. Thank You.

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

@shivoham @ray, any ideas how to change this please?


Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Check your Odoo database for customizations.


The default behavior for an Invoice that looks like this on the screen:


Is to show it like this via the PDF report:


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello,

Yes you can remove the name. For that you have to apply the changes from python code or you can set the fixed string for description field.

shivoham.odoo@gmail.com

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
3651
change between 2 Invoice formats แก้ไขแล้ว
1
ก.ค. 25
446
3
ก.ค. 25
3097
2
ก.ค. 25
621
1
ก.ค. 25
1694