-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
account_import_helper: backport improvements from v17
- Loading branch information
1 parent
352dd12
commit dbf5568
Showing
10 changed files
with
74 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
===================== | ||
Account Import Helper | ||
===================== | ||
|
||
This module provides methods to help on the import of accounting-related data, in particular the chart of accounts. | ||
|
||
First, in a standard test Odoo database with the chart of account of the official addons, use the wizard available via the menu *Configuration > Technical > Chart Generate > Chart Generate* to generate the file *account.account.csv*. | ||
|
||
Then, in the future production database, after the installation of the official addons that has the chart of accounts for the country: | ||
|
||
* Unconfigure the links to the accounts from several objects and ir.properties: | ||
|
||
.. code:: | ||
UPDATE account_journal set default_account_id=null, suspense_account_id=null; | ||
DELETE from pos_payment_method; | ||
UPDATE ir_property SET value_reference=null WHERE value_reference like 'account.account,%'; | ||
* Delete all accounts: | ||
|
||
.. code:: | ||
DELETE FROM account_account; | ||
* In the menu *Invoicing > Configuration > Accounting > Chart of accounts*, import the file *account.account.csv* with *Encoding* set to **utf-8** and *Use first row as header* enabled. | ||
|
||
* In the menu *Invoicing > Configuration > Accounting > Taxes*, reconfigure the account on taxes. | ||
|
||
* In the menu *Invoicing > Configuration > Accounting > Fiscal Positions*, on each fiscal position, configure the account mapping. | ||
|
||
* In the menu *Invoicing > Configuration > Accounting > Journals*, on each journal, configure all the fields that point to accounts. | ||
|
||
* On the page *Invoicing > Configuration > Settings*, update the section *Default Accounts* | ||
|
||
* In the menu *Settings > Technical > Parameters > Company Properties*, edit the 4 properties | ||
|
||
- property_account_receivable_id | ||
- property_account_payable_id | ||
- property_account_expense_categ_id | ||
- property_account_income_categ_id | ||
|
||
and set the field *value* with **account.account,67** where 67 is the ID of the account you want to have as default for that property. | ||
|
||
|
||
Contributors | ||
============ | ||
|
||
This module has been written by Alexis de Lattre <[email protected]> from `Akretion France <https://akretion.com/fr>`_. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
from . import account | ||
from . import models | ||
from . import wizard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,49 +8,6 @@ | |
"category": "Partner", | ||
"license": "AGPL-3", | ||
"summary": "Helper methods to import accounting-related data", | ||
"description": """ | ||
Account Import Helper | ||
===================== | ||
This module provides methods to help on the import of accounting-related data, in particular the chart of accounts. | ||
First, in a standard test Odoo database with the chart of account of the official addons, use the wizard available via the menu *Configuration > Technical > Chart Generate > Chart Generate* to generate the file *account.account.csv*. | ||
Then, in the future production database, after the installation of the official addons that has the chart of accounts for the country: | ||
* Unconfigure the links to the accounts from several objects and ir.properties: | ||
UPDATE account_journal set default_account_id=null, suspense_account_id=null; | ||
DELETE from pos_payment_method; | ||
UPDATE ir_property SET value_reference=null WHERE value_reference like 'account.account,%'; | ||
* Delete all accounts: | ||
DELETE FROM account_account; | ||
* Go to the menu *Invoicing > Configuration > Accounting > Chart of accounts* and import the file *account.account.csv* with Encoding = UTF-8 | ||
* In the menu *Accounting > Configuration > Accounting > Taxes* and reconfigure the account on taxes. | ||
* In the menu *Accounting > Configuration > Accounting > Fiscal Positions*, on each fiscal position, configure the account mapping. | ||
* In the menu *Accounting > Configuration > Accounting > Journals*, on each journal, configure all the fields that point to accounts. | ||
* On the page *Accounting > Configuration > Settings*, configure the *Inter-Banks Transfer Account* (field displayed by my module account_usability) | ||
* In the menu *Settings > Technical > Parameters > Company Properties*, edit the 4 properties | ||
- property_account_receivable_id | ||
- property_account_payable_id | ||
- property_account_expense_categ_id | ||
- property_account_income_categ_id | ||
and set the field *value* with *account.account,67* where 67 is the ID of the account you want to have as default for that property. | ||
This module has been written by Alexis de Lattre <[email protected]> from Akretion. | ||
""", | ||
"author": "Akretion", | ||
"website": "https://github.com/akretion/odoo-import-helper", | ||
"depends": ["account"], | ||
|
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import res_company |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters