Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
4936 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Autor

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?

Powiązane posty Odpowiedzi Widoki Czynność
1
gru 17
3654
1
lip 25
1988
4
sie 25
3239
0
mar 25
1252
2
sty 25
2397