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

Which table in the database  is keeping the tax amount for pos order line in odoo?

아바타
취소
베스트 답변

Hi,

there is one field "amount_tax" is define into "pos.order" model. But that field is not stored into any of the table because it is calculative field and not stored into database. 

In Odoo fields.function without "store" parameter never become a field of any table.

I hope that it is helpful to you.

아바타
취소
베스트 답변

Hi jc,

The table is pos.order.
You can find the table and field name by activating the technical features and hovering over the field. It shows the model and fieldname then.

아바타
취소
작성자

Yenthe, I can find that at database structure model in odoo but when I use pgadmin to view the table in the database, it did not show tax amount, do you know the reason? is there a way I can use sql to retrieve the tax amount?

The field amount_tax is in the table pos.order, I can see it in the Odoo interface so the field has to be in the psql database too. Why would you use SQL when you can use the Odoo api to get the data field?

관련 게시물 답글 화면 활동
1
12월 17
3862
1
7월 25
2284
4
8월 25
3651
0
3월 25
1521
2
1월 25
2835