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

I want to create a custom module in order to have subtotals on quotations (so we can group sales order lines). How can i do that ? Thanks

Ảnh đại diện
Huỷ bỏ

You mean you want to calculate total amount from all quotations?

How can i calculate total amount of all quotations of a particular customer?

Câu trả lời hay nhất

In order to sort sale.order.line, you need to have something you can use to sort. You probably want to add a new field, which you fill when saving/modifying the sale.order.line.

This requires you (in global wordings):

  • to create your own module, which extends sale.order.line, and add the new sort field
  • change the default sort order
  • override create
  • override write

Also:

  • create a module which extends sale.order
  • at break of sort of sale.order.line, add a line subtotal

I probably have forgotten some things, but I hope you get the general idea.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 12 24
11655
10
thg 9 20
28467
1
thg 2 17
4475
2
thg 5 16
17138
1
thg 5 15
4364