Dheeraj Balodia
Dheeraj Balodia

Reputation: 252

How to setup default accounting entries in Odoo10?

I want to setup default account entries for creation of invoices. In that, I want to add just a customer name and the product details rest all should be there by default. I had already given default values at so many fields but it is working only for few fields.

I want to set default values for

  1. Account
  2. Journal
  3. Tax Account

In Partner Form -> Accounting

  1. Account Receivable
  2. Account Payable

So is there any way we can do that. For Reference check below given images

Account Info

Tax Account

Accounting

Upvotes: 0

Views: 2125

Answers (1)

Naglis Jonaitis
Naglis Jonaitis

Reputation: 2633

In order to set company default Account Receivable and Account Payable properties, as administrator user go to SettingsTechnicalCompany Properties. Find a property with name property_account_receivable_id where the Resource field is not set. If such entry does not exist, create it with the following values:

  • Nameproperty_account_receivable_id
  • FieldAccount Receivable (res.partner)
  • TypeMany2One
  • Valueaccount.account,<id>

Where <id> is the database ID of the account (model: account.account) you want to use as the default value (you can find all accounts by going to Invoicing / Accounting → Adviser → Chart of Accounts. You can find out the database ID from the URL (id=<id>) when you open a single record in a form view):

Creating a company property for default Account Receivable

For default Account Payable, analogically find or create a company property called property_account_payable_id with the following values:

  • Nameproperty_account_payable_id
  • FieldAccount Payable (res.partner)
  • TypeMany2One
  • Valueaccount.account,<id>

Where <id> is the database ID of the account (model: account.account) you want to use as the default value (you can find all accounts by going to Invoicing / Accounting → Adviser → Chart of Accounts. You can find out the database ID from the URL (id=<id>) when you open a single record in a form view):

Creating a company property for default Account Payable

To set the default journal on invoices, as administrator user go to SettingsTechnicalUser-defined Defaults and click Create and fill in the following values:

  • Namejournal_id
  • Model Nameaccount.invoice
  • Default value or action reference<id>

where <id> is the database ID of the journal (model: account.journal) you want to use as the default value (you can find all journals by going to Invoicing / Accounting → Configuration → AccountingJournals. You can find out the database ID from the URL (id=<id>) when you open a single record in a form view):

Setting default journal_id on Invoice

The value for Account on invoice will come from the Customer, once you select one, and Tax Account will come from taxes defined for a given product. You can configure taxes by going to Invoicing / Accounting → Configuration → AccountingTaxes. Alternatively, you could set user-definde default values (like for journal_id) for taxes, with the following values:

  • Nameaccount_id
  • Model Nameaccount.tax
  • Default value or action reference<id>

where <id> is the database ID of the account (model: account.account) you want to use as the default value (you can find all accounts by going to Invoicing / Accounting → Adviser → Chart of Accounts. You can find out the database ID from the URL (id=<id>) when you open a single record in a form view):

Setting default account_id on Account Tax

Upvotes: 5

Related Questions