Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

how to add taxes code account and tax account on existing chart of account by using custom module?

By
Anil R. Kesariya
on 8/17/15, 5:53 AM 988 views

Hello everyone,

I have created new custom module want to add few tax account and account in running database.

Demo data created for taxes and account in template model as those are created by existing/base module.

Module installed sucessfully but records are only appears in both templates account.account.template, account.tax.code.template.

But i want them in account.account and account.tax.code as well.

How would i resolve this issue?

I have tested with new database works well. creating entries in both tables for each account.

But not working in existing one.

Why we have restriction on creating other records in account.account table and account.tax by using demo data.

Any idea or guidance will be appreciated.


Thanks &  Regards,

Anil.


1

Anil R. Kesariya

--Anil R. Kesariya--
4321
| 6 5 8
Gandhinagar, India
--Anil R. Kesariya--
ERP Consultant

Key Skill
-
Technical & Functional Expert
Anil R. Kesariya
On 8/18/15, 3:24 AM

Hi All,

As i have checked many alternative ways to find solution for adding new accounts in both templates and default model table couldn't find the way.

I go through this way this works for me.

As we know when we install any chart of account as demo data in chart of account module having information of all these tables.

account.account.template, account.tax.code.template, account.tax.template.

when we install specific chart of account which helps us to creates records inside these tables

acccount.account, account.tax.code and account.tax

But from custom module it is not possible to add new accounts records in all the template tabels (account.account.template) which creates records in related tables too!

I have directly created records inside account.account, account.tax.code and account.tax.

Would it affect if we don't have those accounts records in template tables?

Thanks

Rgds,

Anil.






Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/17/15, 5:53 AM
Seen: 988 times
Last updated: 9/8/15, 5:20 AM