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

Hello there,

In accounting -> Configuration -> Taxes -> Taxes, I edit a tax.

I click to add a Children/Sub Taxe to this edited taxe. A new window appears :


At this place, we have to imperatively create a new tax. Impossible to select an already existing taxe in the Tax Name textbox... 


The only way I have found to add an existing child taxe to a taxe is directly in the database (pgadmin), in the model account.tax. There, I modify the column parent_id manually.

Thanks to help.




Awatar
Odrzuć
Najlepsza odpowiedź

Child/Sub Taxes is one2many field, hence we follow to keep many2one field hidden related to main form where this one2many relation is defined.

You can either add parent_id at database level, or If you wish to add parent_id through front end, you can make parent_id field visible in form view. So selecting parent_id through front end will solve your problem.

Awatar
Odrzuć
Autor

Great! Thanks!

Powiązane posty Odpowiedzi Widoki Czynność
1
lip 25
2727
1
lip 25
7606
1
mar 25
2031
2
sie 24
2710
1
gru 23
11769