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

I'm modifying the layout of an invoice and quotation. I want it to show the item number in the quotation, example:

No.  |  Description       | Tax  |  Quantity  |  Unit Price    | Price    |

1     | Car                     | 4%  |  1.00         | $10.00          | $10.00 |

2     | Bus                     | 4%  |  1.00         | $10.00          | $10.00 |

3     | Laptop                | 4%  |  1.00         | $10.00          | $10.00 |

What tag should I use to create that 1,2,3 Item squence in the No. Column?

I'm using the OpenERP Report Designer with OpenOffice to create the reports.

Thanks!

 

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

On most objects in OpenERP there is a field named "sequence". It usually contains an integer specifically for this purpose. Try that one.

If you cannot find it or the sequence does not matter, try checking the "_order" column on the object. That tells you what default field is used for ordering the object.

Ảnh đại diện
Huỷ bỏ
Tác giả

sequence is working but every products gets a value of '10'. Is there any way of changing this to be auto-increment for each quotation?

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
5606
1
thg 3 15
4061
0
thg 3 15
3700
1
thg 4 25
1821
1
thg 9 24
2165