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

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


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

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


Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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:


Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
3638
1
thg 7 25
395
3
thg 7 25
3070
2
thg 7 25
578
1
thg 7 25
1646