콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
7608 화면

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

아바타
취소

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

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

베스트 답변

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.

아바타
취소
관련 게시물 답글 화면 활동
4
12월 24
11889
10
9월 20
28685
1
2월 17
4678
2
5월 16
17347
1
5월 15
4513