47 lines
1.5 KiB
Python
47 lines
1.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
{
|
|
'name': "Customer COGS Expense Account",
|
|
|
|
'summary': "Customer-specific income and expense accounts for sales transactions",
|
|
|
|
'description': """
|
|
This module extends Odoo 18's accounting functionality to support customer-specific
|
|
income and expense accounts for sales transactions. By default, Odoo creates journal
|
|
entries using the income and expense accounts defined in the product category. This
|
|
module allows defining income and expense accounts at the customer level, which take
|
|
precedence over the product category's accounts when processing sales orders.
|
|
|
|
Key Features:
|
|
- Add income and expense account fields to customer form
|
|
- Automatically use customer-specific accounts for invoice revenue entries
|
|
- Automatically use customer-specific accounts for COGS entries
|
|
- Fallback to product category accounts when customer accounts are not defined
|
|
- Audit trail showing which account source was used
|
|
- Full validation of account types and company assignments
|
|
""",
|
|
|
|
'author': "Your Company",
|
|
'website': "https://www.yourcompany.com",
|
|
|
|
'category': 'Accounting',
|
|
'version': '18.0.1.0.0',
|
|
|
|
# Dependencies
|
|
'depends': [
|
|
'account',
|
|
'stock_account',
|
|
'sale',
|
|
],
|
|
|
|
# Data files
|
|
'data': [
|
|
'views/res_partner_views.xml',
|
|
'views/account_move_views.xml',
|
|
],
|
|
|
|
'installable': True,
|
|
'application': False,
|
|
'auto_install': False,
|
|
'license': 'LGPL-3',
|
|
}
|