@ -0,0 +1,46 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg |
||||
|
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html |
||||
|
:alt: License: LGPL-3 |
||||
|
|
||||
|
Budget Management |
||||
|
================= |
||||
|
Budgets Management system for Odoo 19 Community edition. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
No configuration |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
General Public License, Version 3 (LGPL v3). |
||||
|
(http://www.gnu.org/licenses/lgpl-3.0-standalone.html) |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developer: (V19) Mohammed Irfan T , Contact: odoo@cybrosys.com |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
* Website : https://cybrosys.com |
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,30 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import models |
||||
|
|
||||
|
|
||||
|
def enable_analytic_accounting(env): |
||||
|
group = env.ref('analytic.group_analytic_accounting') |
||||
|
if group: |
||||
|
users = env['res.users'].search([('share', '=', False)]) |
||||
|
for user in users: |
||||
|
user.write({'group_ids': [(4, group.id)]}) |
@ -0,0 +1,51 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
{ |
||||
|
'name': 'Odoo 19 Budget Management', |
||||
|
'version': '19.0.1.0.0', |
||||
|
'category': 'Accounting', |
||||
|
'summary': """ Budget Management for Odoo 19 Community Edition. """, |
||||
|
'description': """ This module allows accountants to manage analytic and |
||||
|
budgets. Once the Budgets are defined (in Accounting/Accounting/Budgets), |
||||
|
the Project Managers can set the planned amount on each Analytic Account. |
||||
|
The accountant has the possibility to see the total of amount planned for |
||||
|
each Budget in order to ensure the total planned is not greater/lower |
||||
|
than what he planned for this Budget. Each list of record can also be |
||||
|
switched to a graphical view of it, odoo17, accounting, odoo17 accounting, odoo17 budget, odoo17""", |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': 'https://www.cybrosys.com', |
||||
|
'depends': ['base', 'account'], |
||||
|
'data': [ |
||||
|
'security/account_budget_security.xml', |
||||
|
'security/ir.model.access.csv', |
||||
|
'views/account_analytic_account_views.xml', |
||||
|
'views/account_budget_views.xml', |
||||
|
], |
||||
|
'post_init_hook': 'enable_analytic_accounting', |
||||
|
'images': ['static/description/banner.jpg'], |
||||
|
'license': 'LGPL-3', |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': False, |
||||
|
} |
@ -0,0 +1,6 @@ |
|||||
|
## Module <base_account_budget> |
||||
|
|
||||
|
#### 13.1009.2025 |
||||
|
#### Version 19.0.1.0.0 |
||||
|
#### ADD |
||||
|
- Initial commit for Budget Management |
@ -0,0 +1,410 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * base_account_budget |
||||
|
# |
||||
|
msgid "" |
||||
|
msgstr "" |
||||
|
"Project-Id-Version: Odoo Server 14.0\n" |
||||
|
"Report-Msgid-Bugs-To: \n" |
||||
|
"POT-Creation-Date: 2022-03-09 10:32+0000\n" |
||||
|
"PO-Revision-Date: 2022-03-10 08:50+0800\n" |
||||
|
"Last-Translator: \n" |
||||
|
"Language-Team: \n" |
||||
|
"MIME-Version: 1.0\n" |
||||
|
"Content-Type: text/plain; charset=UTF-8\n" |
||||
|
"Content-Transfer-Encoding: 8bit\n" |
||||
|
"Plural-Forms: \n" |
||||
|
"Language: zh_CN\n" |
||||
|
"X-Generator: Poedit 2.2\n" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model_terms:ir.actions.act_window,help:base_account_budget.act_budget_view |
||||
|
msgid "" |
||||
|
"A budget is a forecast of your company's income and/or expenses\n" |
||||
|
" expected for a period in the future. A budget is defined on some\n" |
||||
|
" financial accounts and/or analytic accounts (that may represent\n" |
||||
|
" projects, departments, categories of products, etc.)" |
||||
|
msgstr "" |
||||
|
"预算是对公司收入和/或支出的预测\n" |
||||
|
"预计在未来一段时间内。预算是在某些时间定义的\n" |
||||
|
"金融账户和/或分析账户(可能代表\n" |
||||
|
"项目、部门、产品类别等)" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_budget_post__account_ids |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.view_budget_post_form |
||||
|
msgid "Accounts" |
||||
|
msgstr "科目" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__percentage |
||||
|
msgid "Achievement" |
||||
|
msgstr "达成" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_needaction |
||||
|
msgid "Action Needed" |
||||
|
msgstr "需要采取的行动" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model,name:base_account_budget.model_account_analytic_account |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__analytic_account_id |
||||
|
msgid "Analytic Account" |
||||
|
msgstr "辅助核算" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
msgid "Approve" |
||||
|
msgstr "批准" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_attachment_count |
||||
|
msgid "Attachment Count" |
||||
|
msgstr "附件数量" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model,name:base_account_budget.model_budget_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__budget_id |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.budget_budget_view_tree |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
msgid "Budget" |
||||
|
msgstr "预算" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.view_account_analytic_account_form_inherit_budget |
||||
|
msgid "Budget Items" |
||||
|
msgstr "预算项目" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model,name:base_account_budget.model_budget_lines |
||||
|
msgid "Budget Line" |
||||
|
msgstr "预算明细" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_analytic_account__budget_line |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_budget_post__budget_line |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__budget_line |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.view_budget_line_form |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.view_budget_line_search |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.view_budget_line_tree |
||||
|
msgid "Budget Lines" |
||||
|
msgstr "预算明细" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__name |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
msgid "Budget Name" |
||||
|
msgstr "预算名称" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model,name:base_account_budget.model_account_budget_post |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__general_budget_id |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.view_budget_post_form |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.view_budget_post_search |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.view_budget_post_tree |
||||
|
msgid "Budgetary Position" |
||||
|
msgstr "预算状况" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.actions.act_window,name:base_account_budget.open_budget_post_form |
||||
|
#: model:ir.ui.menu,name:base_account_budget.menu_budget_post_form |
||||
|
msgid "Budgetary Positions" |
||||
|
msgstr "预算状况" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.actions.act_window,name:base_account_budget.act_budget_lines_view |
||||
|
#: model:ir.actions.act_window,name:base_account_budget.act_budget_view |
||||
|
#: model:ir.ui.menu,name:base_account_budget.menu_act_budget_view |
||||
|
#: model:ir.ui.menu,name:base_account_budget.menu_act_crossovered_budget_lines_view |
||||
|
msgid "Budgets" |
||||
|
msgstr "预算" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model_terms:ir.actions.act_window,help:base_account_budget.act_budget_view |
||||
|
msgid "" |
||||
|
"By keeping track of where your money goes, you may be less\n" |
||||
|
" likely to overspend, and more likely to meet your financial\n" |
||||
|
" goals. Forecast a budget by detailing the expected revenue per\n" |
||||
|
" analytic account and monitor its evolution based on the actuals\n" |
||||
|
" realised during that period." |
||||
|
msgstr "" |
||||
|
"通过跟踪资金流向,您可能会减少\n" |
||||
|
"可能会超支,更可能满足您的财务要求\n" |
||||
|
"目标。通过详细说明每个月的预期收入来预测预算\n" |
||||
|
"分析帐户并根据实际情况监控调整以达到预算目的。" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
msgid "Cancel Budget" |
||||
|
msgstr "取消预算" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields.selection,name:base_account_budget.selection__budget_budget__state__cancel |
||||
|
msgid "Cancelled" |
||||
|
msgstr "已取消" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model_terms:ir.actions.act_window,help:base_account_budget.act_budget_view |
||||
|
msgid "Click to create a new budget." |
||||
|
msgstr "单击以创建新预算" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_budget_post__company_id |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__company_id |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__company_id |
||||
|
msgid "Company" |
||||
|
msgstr "公司" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
msgid "Confirm" |
||||
|
msgstr "审核" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields.selection,name:base_account_budget.selection__budget_budget__state__confirm |
||||
|
msgid "Confirmed" |
||||
|
msgstr "已审核" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_budget_post__create_uid |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__create_uid |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__create_uid |
||||
|
msgid "Created by" |
||||
|
msgstr "创建人" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_budget_post__create_date |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__create_date |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__create_date |
||||
|
msgid "Created on" |
||||
|
msgstr "创建于" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_analytic_account__display_name |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_budget_post__display_name |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__display_name |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__display_name |
||||
|
msgid "Display Name" |
||||
|
msgstr "显示名称" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields.selection,name:base_account_budget.selection__budget_budget__state__done |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
msgid "Done" |
||||
|
msgstr "完成" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields.selection,name:base_account_budget.selection__budget_budget__state__draft |
||||
|
msgid "Draft" |
||||
|
msgstr "草稿" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__date_to |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__date_to |
||||
|
msgid "End Date" |
||||
|
msgstr "结束时间" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_follower_ids |
||||
|
msgid "Followers" |
||||
|
msgstr "相关人员" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_channel_ids |
||||
|
msgid "Followers (Channels)" |
||||
|
msgstr "相关人员(频道)" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_partner_ids |
||||
|
msgid "Followers (Partners)" |
||||
|
msgstr "相关人员(业务伙伴)" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
msgid "From" |
||||
|
msgstr "来自" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_analytic_account__id |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_budget_post__id |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__id |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__id |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,help:base_account_budget.field_budget_budget__message_needaction |
||||
|
#: model:ir.model.fields,help:base_account_budget.field_budget_budget__message_unread |
||||
|
msgid "If checked, new messages require your attention." |
||||
|
msgstr "确认后, 将会提示消息。" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,help:base_account_budget.field_budget_budget__message_has_error |
||||
|
#: model:ir.model.fields,help:base_account_budget.field_budget_budget__message_has_sms_error |
||||
|
msgid "If checked, some messages have a delivery error." |
||||
|
msgstr "如果勾选此项, 某些消息将会产生传递错误。" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_is_follower |
||||
|
msgid "Is Follower" |
||||
|
msgstr "是否相关人员" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_analytic_account____last_update |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_budget_post____last_update |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget____last_update |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines____last_update |
||||
|
msgid "Last Modified on" |
||||
|
msgstr "最后修改日" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_budget_post__write_uid |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__write_uid |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__write_uid |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "最后更新人" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_budget_post__write_date |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__write_date |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__write_date |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "最后更新日期" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_main_attachment_id |
||||
|
msgid "Main Attachment" |
||||
|
msgstr "主要附件" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_has_error |
||||
|
msgid "Message Delivery error" |
||||
|
msgstr "消息传递错误" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_ids |
||||
|
msgid "Messages" |
||||
|
msgstr "消息" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_account_budget_post__name |
||||
|
msgid "Name" |
||||
|
msgstr "名称" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_needaction_counter |
||||
|
msgid "Number of Actions" |
||||
|
msgstr "执行次数" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_has_error_counter |
||||
|
msgid "Number of errors" |
||||
|
msgstr "错误数" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,help:base_account_budget.field_budget_budget__message_needaction_counter |
||||
|
msgid "Number of messages which requires an action" |
||||
|
msgstr "需要处理的消息数量" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,help:base_account_budget.field_budget_budget__message_has_error_counter |
||||
|
msgid "Number of messages with delivery error" |
||||
|
msgstr "发送错误的消息数量" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,help:base_account_budget.field_budget_budget__message_unread_counter |
||||
|
msgid "Number of unread messages" |
||||
|
msgstr "未读消息数" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__paid_date |
||||
|
msgid "Paid Date" |
||||
|
msgstr "付款日期" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
msgid "Period" |
||||
|
msgstr "期间" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__planned_amount |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
msgid "Planned Amount" |
||||
|
msgstr "预算金额" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__practical_amount |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.view_account_analytic_account_form_inherit_budget |
||||
|
msgid "Practical Amount" |
||||
|
msgstr "实际金额" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
msgid "Reset to Draft" |
||||
|
msgstr "重置为草稿" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__creating_user_id |
||||
|
msgid "Responsible" |
||||
|
msgstr "负责人" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_has_sms_error |
||||
|
msgid "SMS Delivery error" |
||||
|
msgstr "短信发送错误" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__date_from |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__date_from |
||||
|
msgid "Start Date" |
||||
|
msgstr "开始日期" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__state |
||||
|
msgid "Status" |
||||
|
msgstr "状态" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: code:addons/base_account_budget/models/account_budget.py:0 |
||||
|
#, python-format |
||||
|
msgid "The budget must have at least one account." |
||||
|
msgstr "此预算必须至少需要有一个账户" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_lines__theoretical_amount |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.view_account_analytic_account_form_inherit_budget |
||||
|
msgid "Theoretical Amount" |
||||
|
msgstr "理论金额" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model_terms:ir.ui.view,arch_db:base_account_budget.crossovered_budget_view_form |
||||
|
msgid "To" |
||||
|
msgstr "按" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_unread |
||||
|
msgid "Unread Messages" |
||||
|
msgstr "未读邮件" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__message_unread_counter |
||||
|
msgid "Unread Messages Counter" |
||||
|
msgstr "未读邮件计数器" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields.selection,name:base_account_budget.selection__budget_budget__state__validate |
||||
|
msgid "Validated" |
||||
|
msgstr "已验证" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,field_description:base_account_budget.field_budget_budget__website_message_ids |
||||
|
msgid "Website Messages" |
||||
|
msgstr "网站消息" |
||||
|
|
||||
|
#. module: base_account_budget |
||||
|
#: model:ir.model.fields,help:base_account_budget.field_budget_budget__website_message_ids |
||||
|
msgid "Website communication history" |
||||
|
msgstr "网站浏览历史" |
@ -0,0 +1,23 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import account_budget |
||||
|
from . import account_analytic_account |
@ -0,0 +1,37 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import api, fields, models |
||||
|
|
||||
|
|
||||
|
class AccountAnalyticAccount(models.Model): |
||||
|
"""Inherits the AccountAnalytic model to add new budget line field that |
||||
|
connect with the budget line modules""" |
||||
|
_inherit = "account.analytic.account" |
||||
|
|
||||
|
budget_line = fields.One2many('budget.lines', |
||||
|
'analytic_account_id', |
||||
|
'Budget Lines') |
||||
|
|
||||
|
@api.model_create_multi |
||||
|
def create(self, vals_list): |
||||
|
res = super().create(vals_list) |
||||
|
return res |
@ -0,0 +1,197 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from odoo import api, fields, models, _ |
||||
|
from odoo.exceptions import ValidationError |
||||
|
|
||||
|
|
||||
|
class AccountBudgetPost(models.Model): |
||||
|
"""Model used to create the Budgetary Position for the account""" |
||||
|
_name = "account.budget.post" |
||||
|
_order = "name" |
||||
|
_description = "Budgetary Position" |
||||
|
|
||||
|
name = fields.Char('Name', required=True) |
||||
|
account_ids = fields.Many2many('account.account', 'account_budget_rel', |
||||
|
'budget_id', 'account_id', 'Accounts') |
||||
|
budget_line = fields.One2many('budget.lines', 'general_budget_id', |
||||
|
'Budget Lines') |
||||
|
company_id = fields.Many2one('res.company', 'Company', required=True, |
||||
|
default=lambda self: self.env.user.company_id) |
||||
|
|
||||
|
@api.constrains('account_ids') |
||||
|
def _check_account_ids(self): |
||||
|
for record in self: |
||||
|
if not record.account_ids: |
||||
|
raise ValidationError("The budget must have at least one account!") |
||||
|
|
||||
|
|
||||
|
class Budget(models.Model): |
||||
|
_name = "budget.budget" |
||||
|
_description = "Budget" |
||||
|
_inherit = ['mail.thread'] |
||||
|
|
||||
|
name = fields.Char('Budget Name', required=True) |
||||
|
creating_user_id = fields.Many2one('res.users', 'Responsible', |
||||
|
default=lambda self: self.env.user) |
||||
|
date_from = fields.Date('Start Date', required=True) |
||||
|
date_to = fields.Date('End Date', required=True) |
||||
|
state = fields.Selection([ |
||||
|
('draft', 'Draft'), |
||||
|
('cancel', 'Cancelled'), |
||||
|
('confirm', 'Confirmed'), |
||||
|
('validate', 'Validated'), |
||||
|
('done', 'Done') |
||||
|
], 'Status', default='draft', index=True, required=True, readonly=True, |
||||
|
copy=False, tracking=True) |
||||
|
budget_line = fields.One2many('budget.lines', 'budget_id', 'Budget Lines', |
||||
|
copy=True) |
||||
|
company_id = fields.Many2one('res.company', 'Company', required=True,default=lambda self: self.env.company) |
||||
|
|
||||
|
def action_budget_confirm(self): |
||||
|
self.write({'state': 'confirm'}) |
||||
|
|
||||
|
def action_budget_draft(self): |
||||
|
self.write({'state': 'draft'}) |
||||
|
|
||||
|
def action_budget_validate(self): |
||||
|
self.write({'state': 'validate'}) |
||||
|
|
||||
|
def action_budget_cancel(self): |
||||
|
self.write({'state': 'cancel'}) |
||||
|
|
||||
|
def action_budget_done(self): |
||||
|
self.write({'state': 'done'}) |
||||
|
|
||||
|
|
||||
|
class BudgetLines(models.Model): |
||||
|
_name = "budget.lines" |
||||
|
_rec_name = "budget_id" |
||||
|
_description = "Budget Line" |
||||
|
|
||||
|
budget_id = fields.Many2one('budget.budget', 'Budget', ondelete='cascade', |
||||
|
index=True, required=True) |
||||
|
analytic_account_id = fields.Many2one('account.analytic.account', |
||||
|
'Analytic Account') |
||||
|
general_budget_id = fields.Many2one('account.budget.post', |
||||
|
'Budgetary Position', required=True) |
||||
|
date_from = fields.Date('Start Date', required=True) |
||||
|
date_to = fields.Date('End Date', required=True) |
||||
|
paid_date = fields.Date('Paid Date') |
||||
|
planned_amount = fields.Float('Planned Amount', required=True, digits=0) |
||||
|
practical_amount = fields.Float(compute='_compute_practical_amount', |
||||
|
string='Practical Amount', digits=0) |
||||
|
theoretical_amount = fields.Float(compute='_compute_theoretical_amount', |
||||
|
string='Theoretical Amount', digits=0) |
||||
|
percentage = fields.Float(compute='_compute_percentage', |
||||
|
string='Achievement') |
||||
|
company_id = fields.Many2one(related='budget_id.company_id', |
||||
|
comodel_name='res.company', |
||||
|
string='Company', store=True, readonly=True) |
||||
|
|
||||
|
def _compute_practical_amount(self): |
||||
|
for line in self: |
||||
|
result = 0.0 |
||||
|
acc_ids = line.general_budget_id.account_ids.ids # Get the account IDs |
||||
|
date_to = self.env.context.get('wizard_date_to') or line.date_to |
||||
|
date_from = self.env.context.get( |
||||
|
'wizard_date_from') or line.date_from |
||||
|
if line.analytic_account_id.id: |
||||
|
query = """ |
||||
|
SELECT SUM(amount) |
||||
|
FROM account_analytic_line |
||||
|
WHERE account_id = %s |
||||
|
AND date BETWEEN %s AND %s |
||||
|
AND general_account_id = ANY(%s) |
||||
|
""" |
||||
|
params = (line.analytic_account_id.id, date_from, date_to, |
||||
|
'{' + ','.join(map(str, |
||||
|
acc_ids)) + '}') # Convert acc_ids to SQL array format |
||||
|
self.env.cr.execute(query, params) |
||||
|
result = self.env.cr.fetchone()[0] or 0.0 |
||||
|
line.practical_amount = result |
||||
|
|
||||
|
def _compute_theoretical_amount(self): |
||||
|
today = fields.Datetime.now() |
||||
|
for line in self: |
||||
|
if not line.date_from or not line.date_to: |
||||
|
line.theoretical_amount = 0 |
||||
|
continue |
||||
|
if self.env.context.get( |
||||
|
'wizard_date_from') and self.env.context.get( |
||||
|
'wizard_date_to'): |
||||
|
date_from = fields.Datetime.from_string( |
||||
|
self.env.context.get('wizard_date_from')) |
||||
|
date_to = fields.Datetime.from_string( |
||||
|
self.env.context.get('wizard_date_to')) |
||||
|
if date_from < fields.Datetime.from_string(line.date_from): |
||||
|
date_from = fields.Datetime.from_string(line.date_from) |
||||
|
elif date_from > fields.Datetime.from_string(line.date_to): |
||||
|
date_from = False |
||||
|
|
||||
|
if date_to > fields.Datetime.from_string(line.date_to): |
||||
|
date_to = fields.Datetime.from_string(line.date_to) |
||||
|
elif date_to < fields.Datetime.from_string(line.date_from): |
||||
|
date_to = False |
||||
|
|
||||
|
theo_amt = 0.00 |
||||
|
if date_from and date_to: |
||||
|
line_timedelta = fields.Datetime.from_string( |
||||
|
line.date_to) - fields.Datetime.from_string( |
||||
|
line.date_from) |
||||
|
elapsed_timedelta = date_to - date_from |
||||
|
if elapsed_timedelta.days > 0: |
||||
|
theo_amt = ( |
||||
|
elapsed_timedelta.total_seconds() / line_timedelta.total_seconds()) * line.planned_amount |
||||
|
else: |
||||
|
if line.paid_date: |
||||
|
if fields.Datetime.from_string( |
||||
|
line.date_to) <= fields.Datetime.from_string( |
||||
|
line.paid_date): |
||||
|
theo_amt = 0.00 |
||||
|
else: |
||||
|
theo_amt = line.planned_amount |
||||
|
else: |
||||
|
line_timedelta = fields.Datetime.from_string( |
||||
|
line.date_to) - fields.Datetime.from_string( |
||||
|
line.date_from) |
||||
|
elapsed_timedelta = fields.Datetime.from_string(today) - ( |
||||
|
fields.Datetime.from_string(line.date_from)) |
||||
|
if elapsed_timedelta.days < 0: |
||||
|
# If the budget line has not started yet, theoretical amount should be zero |
||||
|
theo_amt = 0.00 |
||||
|
elif line_timedelta.days > 0 and fields.Datetime.from_string( |
||||
|
today) < fields.Datetime.from_string(line.date_to): |
||||
|
total_days = (line.date_to - line.date_from).days + 1 |
||||
|
days_over = ( |
||||
|
fields.Date.today() - line.date_from).days + 1 |
||||
|
# If today is between the budget line date_from and date_to |
||||
|
theo_amt = line.planned_amount / total_days * days_over |
||||
|
else: |
||||
|
theo_amt = line.planned_amount |
||||
|
line.theoretical_amount = theo_amt |
||||
|
|
||||
|
def _compute_percentage(self): |
||||
|
for line in self: |
||||
|
if line.theoretical_amount != 0.00: |
||||
|
line.percentage = float((line.practical_amount or 0.0) / line.theoretical_amount) * 100 |
||||
|
else: |
||||
|
line.percentage = 0.00 |
@ -0,0 +1,31 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<data noupdate="1"> |
||||
|
<!-- Record rule for multi-company--> |
||||
|
<record id="budget_post_comp_rule" model="ir.rule"> |
||||
|
<field name="name">Budget post multi-company</field> |
||||
|
<field name="model_id" ref="model_account_budget_post"/> |
||||
|
<field eval="True" name="global"/> |
||||
|
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="budget_comp_rule" model="ir.rule"> |
||||
|
<field name="name">Budget multi-company</field> |
||||
|
<field name="model_id" ref="model_budget_budget"/> |
||||
|
<field eval="True" name="global"/> |
||||
|
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="budget_lines_comp_rule" model="ir.rule"> |
||||
|
<field name="name">Budget lines multi-company</field> |
||||
|
<field name="model_id" ref="model_budget_lines"/> |
||||
|
<field eval="True" name="global"/> |
||||
|
<field name="domain_force">['|',('company_id','=',False),('company_id','child_of',[user.company_id.id])]</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model="res.users" id="base.user_root"> |
||||
|
<field eval="[(4,ref('analytic.group_analytic_accounting'))]" name="group_ids"/> |
||||
|
</record> |
||||
|
|
||||
|
</data> |
||||
|
</odoo> |
|
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 738 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 926 B |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 800 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 875 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 87 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 83 KiB |
After Width: | Height: | Size: 90 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 95 KiB |
After Width: | Height: | Size: 62 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 164 KiB |
After Width: | Height: | Size: 60 KiB |
After Width: | Height: | Size: 142 KiB |
After Width: | Height: | Size: 683 KiB |
After Width: | Height: | Size: 38 KiB |
@ -0,0 +1,47 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- The form view of the Analytic accounts--> |
||||
|
<record id="view_account_analytic_account_form_inherit_budget" model="ir.ui.view"> |
||||
|
<field name="name">account.analytic.account.form.inherit.budget</field> |
||||
|
<field name="model">account.analytic.account</field> |
||||
|
<field name="inherit_id" |
||||
|
ref="analytic.view_account_analytic_account_form"/> |
||||
|
<field name="priority" eval="50"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//group[@name='main']" position='after'> |
||||
|
<notebook groups="account.group_account_user"> |
||||
|
<page string="Budget Items"> |
||||
|
<field name="budget_line" widget="one2many_list" |
||||
|
colspan="4" nolabel="1" mode="list"> |
||||
|
<list string="Budget Items" editable="top"> |
||||
|
<field name="budget_id"/> |
||||
|
<field name="general_budget_id"/> |
||||
|
<field name="date_from"/> |
||||
|
<field name="date_to"/> |
||||
|
<field name="paid_date"/> |
||||
|
<field name="planned_amount" |
||||
|
widget="monetary"/> |
||||
|
<field name="practical_amount" |
||||
|
sum="Practical Amount" |
||||
|
widget="monetary"/> |
||||
|
<field name="theoretical_amount" |
||||
|
sum="Theoretical Amount" |
||||
|
widget="monetary"/> |
||||
|
<field name="percentage"/> |
||||
|
</list> |
||||
|
<form string="Budget Items"> |
||||
|
<field name="budget_id"/> |
||||
|
<field name="general_budget_id"/> |
||||
|
<field name="date_from"/> |
||||
|
<field name="date_to"/> |
||||
|
<field name="paid_date"/> |
||||
|
<field name="planned_amount" |
||||
|
widget="monetary"/> |
||||
|
</form> |
||||
|
</field> |
||||
|
</page> |
||||
|
</notebook> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -0,0 +1,351 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
<!-- Budgetary Position views and actions--> |
||||
|
<record id="view_budget_post_search" model="ir.ui.view"> |
||||
|
<field name="name">account.budget.post.search</field> |
||||
|
<field name="model">account.budget.post</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<search string="Budgetary Position"> |
||||
|
<field name="name" filter_domain="[('name','ilike',self)]" |
||||
|
string="Budgetary Position"/> |
||||
|
<field name="company_id" groups="base.group_multi_company"/> |
||||
|
</search> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="view_budget_post_tree" model="ir.ui.view"> |
||||
|
<field name="name">account.budget.post.tree</field> |
||||
|
<field name="model">account.budget.post</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<list string="Budgetary Position"> |
||||
|
<field name="name"/> |
||||
|
<field name="company_id" options="{'no_create': True}" |
||||
|
groups="base.group_multi_company"/> |
||||
|
</list> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="open_budget_post_form" model="ir.actions.act_window"> |
||||
|
<field name="name">Budgetary Positions</field> |
||||
|
<field name="res_model">account.budget.post</field> |
||||
|
<field name="view_mode">list,kanban,form</field> |
||||
|
<field name="view_id" ref="view_budget_post_tree"/> |
||||
|
<field name="search_view_id" ref="view_budget_post_search"/> |
||||
|
</record> |
||||
|
|
||||
|
<menuitem action="open_budget_post_form" id="menu_budget_post_form" |
||||
|
parent="account.account_account_menu" |
||||
|
sequence="5"/> |
||||
|
|
||||
|
<record model="ir.ui.view" id="view_budget_post_form"> |
||||
|
<field name="name">account.budget.post.form</field> |
||||
|
<field name="model">account.budget.post</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Budgetary Position"> |
||||
|
<sheet> |
||||
|
<group col="4"> |
||||
|
<field name="name"/> |
||||
|
<field name="company_id" |
||||
|
groups="base.group_multi_company" |
||||
|
options="{'no_create': True}"/> |
||||
|
</group> |
||||
|
<notebook> |
||||
|
<page string="Accounts"> |
||||
|
<field name="account_ids"> |
||||
|
<list> |
||||
|
<field name="code"/> |
||||
|
<field name="name"/> |
||||
|
</list> |
||||
|
</field> |
||||
|
</page> |
||||
|
</notebook> |
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model="ir.ui.view" id="crossovered_budget_view_form"> |
||||
|
<field name="name">budget.view.form</field> |
||||
|
<field name="model">budget.budget</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Budget"> |
||||
|
<header> |
||||
|
<button string="Confirm" name="action_budget_confirm" |
||||
|
invisible="state != 'draft'" type="object" |
||||
|
class="oe_highlight"/> |
||||
|
<button string="Approve" name="action_budget_validate" |
||||
|
invisible="state != 'confirm'" type="object" |
||||
|
class="oe_highlight"/> |
||||
|
<button string="Done" name="action_budget_done" |
||||
|
invisible="state != 'validate'" type="object" |
||||
|
class="oe_highlight"/> |
||||
|
<button string="Reset to Draft" name="action_budget_draft" |
||||
|
invisible="state != 'cancel'" type="object"/> |
||||
|
<button string="Cancel Budget" name="action_budget_cancel" |
||||
|
invisible="state not in ('confirm','validate')" |
||||
|
type="object"/> |
||||
|
<field name="state" widget="statusbar" |
||||
|
statusbar_visible="draft,confirm"/> |
||||
|
</header> |
||||
|
<sheet string="Budget"> |
||||
|
<div class="oe_title"> |
||||
|
<label for="name" class="oe_edit_only"/> |
||||
|
<h1> |
||||
|
<field name="name" readonly="state != 'draft'" |
||||
|
placeholder="Budget Name"/> |
||||
|
</h1> |
||||
|
</div> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="creating_user_id" |
||||
|
readonly="state != 'draft'"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<label for="date_from" string="Period"/> |
||||
|
<div> |
||||
|
<field name="date_from" placeholder="From" |
||||
|
class="oe_inline" |
||||
|
readonly="state != 'draft'"/> |
||||
|
- |
||||
|
<field name="date_to" placeholder="To" |
||||
|
class="oe_inline" |
||||
|
readonly="state != 'draft'" |
||||
|
nolabel="1"/> |
||||
|
</div> |
||||
|
<field name="company_id" |
||||
|
groups="base.group_multi_company" |
||||
|
options="{'no_create': True}"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
<notebook> |
||||
|
<page string="Budget Lines"> |
||||
|
<field name="budget_line" |
||||
|
context="{'default_date_from': date_from,'default_date_to': date_to}" |
||||
|
colspan="4" |
||||
|
nolabel="1" readonly="state != 'draft'"> |
||||
|
<list string="Budget Lines"> |
||||
|
<field name="general_budget_id"/> |
||||
|
<field name="analytic_account_id" |
||||
|
groups="analytic.group_analytic_accounting" |
||||
|
required="1"/> |
||||
|
<field name="date_from"/> |
||||
|
<field name="date_to"/> |
||||
|
<field name="paid_date" |
||||
|
groups="base.group_no_one"/> |
||||
|
<field name="planned_amount" |
||||
|
sum="Planned Amount" |
||||
|
widget="monetary"/> |
||||
|
<field name="practical_amount" |
||||
|
sum="Practical Amount" |
||||
|
widget="monetary"/> |
||||
|
<field name="theoretical_amount" |
||||
|
sum="Theoretical Amount" |
||||
|
widget="monetary"/> |
||||
|
<field name="percentage"/> |
||||
|
</list> |
||||
|
<form string="Budget Lines"> |
||||
|
<group> |
||||
|
<group> |
||||
|
<field name="general_budget_id"/> |
||||
|
<field name="planned_amount" |
||||
|
widget="monetary"/> |
||||
|
<field name="analytic_account_id" |
||||
|
groups="analytic.group_analytic_accounting" |
||||
|
required="1"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<label for="date_from" |
||||
|
string="Period"/> |
||||
|
<div> |
||||
|
<field name="date_from" |
||||
|
placeholder="From" |
||||
|
class="oe_inline"/> |
||||
|
- |
||||
|
<field name="date_to" |
||||
|
placeholder="To" |
||||
|
class="oe_inline"/> |
||||
|
</div> |
||||
|
<field name="paid_date" |
||||
|
groups="base.group_no_one"/> |
||||
|
<field name="company_id" |
||||
|
options="{'no_create': True}" |
||||
|
groups="base.group_multi_company"/> |
||||
|
</group> |
||||
|
</group> |
||||
|
</form> |
||||
|
</field> |
||||
|
</page> |
||||
|
</notebook> |
||||
|
</sheet> |
||||
|
<chatter/> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model="ir.ui.view" id="budget_budget_view_tree"> |
||||
|
<field name="name">budget.view.tree</field> |
||||
|
<field name="model">budget.budget</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<list decoration-info="state == 'draft'" |
||||
|
decoration-muted="state in ('done','cancel')" |
||||
|
string="Budget"> |
||||
|
<field name="name" colspan="1"/> |
||||
|
<field name="date_from"/> |
||||
|
<field name="date_to"/> |
||||
|
<field name="company_id" options="{'no_create': True}" |
||||
|
groups="base.group_multi_company"/> |
||||
|
<field name="creating_user_id"/> |
||||
|
<field name="state"/> |
||||
|
</list> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="view_budget_kanban" model="ir.ui.view"> |
||||
|
<field name="name">budget.kanban</field> |
||||
|
<field name="model">budget.budget</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<kanban class="o_kanban_mobile"> |
||||
|
<field name="name"/> |
||||
|
<field name="date_from"/> |
||||
|
<field name="date_to"/> |
||||
|
<field name="creating_user_id"/> |
||||
|
<field name="state"/> |
||||
|
<templates> |
||||
|
<t t-name="card"> |
||||
|
<div t-attf-class="oe_kanban_global_click"> |
||||
|
<div class="row mb4"> |
||||
|
<div class="col-8"> |
||||
|
<strong> |
||||
|
<field name="name"/> |
||||
|
</strong> |
||||
|
</div> |
||||
|
<div class="col-4"> |
||||
|
<span class="float-right"> |
||||
|
<field name="state" |
||||
|
widget="label_selection" |
||||
|
options="{'classes': {'draft': 'default', 'done': 'success'}}"/> |
||||
|
</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="row"> |
||||
|
<div class="col-10"> |
||||
|
<i class="fa fa-clock-o"/> |
||||
|
<t t-esc="record.date_from.value"/>- |
||||
|
<t t-esc="record.date_to.value"/> |
||||
|
</div> |
||||
|
<div class="col-xs-2"> |
||||
|
<span class="float-right"> |
||||
|
<img alt="" |
||||
|
t-att-src="kanban_image('res.users', 'image_small', record.creating_user_id.raw_value)" |
||||
|
t-att-title="record.creating_user_id.value" |
||||
|
width="24" height="24" |
||||
|
class="oe_kanban_avatar float-right"/> |
||||
|
</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</t> |
||||
|
</templates> |
||||
|
</kanban> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model="ir.actions.act_window" id="act_budget_view"> |
||||
|
<field name="name">Budgets</field> |
||||
|
<field name="res_model">budget.budget</field> |
||||
|
<field name="view_mode">list,kanban,form</field> |
||||
|
<field name="view_id" ref="budget_budget_view_tree"/> |
||||
|
<field name="help" type="html"> |
||||
|
<p class="oe_view_nocontent_create"> |
||||
|
Click to create a new budget. |
||||
|
</p> |
||||
|
<p> |
||||
|
A budget is a forecast of your company's income and/or expenses |
||||
|
expected for a period in the future. A budget is defined on |
||||
|
some |
||||
|
financial accounts and/or analytic accounts (that may represent |
||||
|
projects, departments, categories of products, etc.) |
||||
|
</p> |
||||
|
<p> |
||||
|
By keeping track of where your money goes, you may be less |
||||
|
likely to overspend, and more likely to meet your financial |
||||
|
goals. Forecast a budget by detailing the expected revenue per |
||||
|
analytic account and monitor its evolution based on the actual |
||||
|
realised during that period. |
||||
|
</p> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<!-- <menuitem parent="account.menu_finance_entries_management"--> |
||||
|
<menuitem parent="account.menu_finance_entries" |
||||
|
id="menu_act_budget_view" |
||||
|
name="Budgets" |
||||
|
action="act_budget_view" sequence="60" |
||||
|
groups="account.group_account_user"/> |
||||
|
|
||||
|
<record id="view_budget_line_search" model="ir.ui.view"> |
||||
|
<field name="name">account.budget.line.search</field> |
||||
|
<field name="model">budget.lines</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<search string="Budget Lines"> |
||||
|
<field name="analytic_account_id"/> |
||||
|
</search> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model="ir.ui.view" id="view_budget_line_tree"> |
||||
|
<field name="name">budget.line.tree</field> |
||||
|
<field name="model">budget.lines</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<list string="Budget Lines"> |
||||
|
<field name="budget_id"/> |
||||
|
<field name="general_budget_id"/> |
||||
|
<field name="analytic_account_id" |
||||
|
groups="analytic.group_analytic_accounting"/> |
||||
|
<field name="date_from"/> |
||||
|
<field name="date_to"/> |
||||
|
<field name="paid_date" groups="base.group_no_one"/> |
||||
|
<field name="planned_amount" widget="monetary"/> |
||||
|
<field name="practical_amount" widget="monetary"/> |
||||
|
<field name="theoretical_amount" widget="monetary"/> |
||||
|
<field name="percentage"/> |
||||
|
</list> |
||||
|
</field> |
||||
|
</record> |
||||
|
<record model="ir.ui.view" id="view_budget_line_form"> |
||||
|
<field name="name">budget.line.form</field> |
||||
|
<field name="model">budget.lines</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Budget Lines"> |
||||
|
<sheet> |
||||
|
<group col="4"> |
||||
|
<field name="budget_id"/> |
||||
|
<field name="analytic_account_id"/> |
||||
|
<field name="general_budget_id"/> |
||||
|
<field name="date_from"/> |
||||
|
<field name="date_to"/> |
||||
|
<field name="paid_date"/> |
||||
|
<field name="planned_amount" widget="monetary"/> |
||||
|
<field name="practical_amount" widget="monetary"/> |
||||
|
<field name="theoretical_amount" widget="monetary"/> |
||||
|
<field name="percentage"/> |
||||
|
<field name="company_id" options="{'no_create': True}" |
||||
|
groups="base.group_multi_company"/> |
||||
|
</group> |
||||
|
</sheet> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model="ir.actions.act_window" id="act_budget_lines_view"> |
||||
|
<field name="name">Budgets</field> |
||||
|
<field name="res_model">budget.lines</field> |
||||
|
<field name="view_mode">list,form</field> |
||||
|
<field name="view_id" ref="view_budget_line_tree"/> |
||||
|
</record> |
||||
|
|
||||
|
<menuitem parent="account.account_reports_management_menu" |
||||
|
id="menu_act_crossovered_budget_lines_view" |
||||
|
action="act_budget_lines_view" sequence="20"/> |
||||
|
|
||||
|
</odoo> |
@ -0,0 +1,46 @@ |
|||||
|
.. image:: https://img.shields.io/badge/license-LGPL--3-blue.svg |
||||
|
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html |
||||
|
:alt: License: LGPL-3 |
||||
|
|
||||
|
Odoo 19 Full Accounting Kit for Community |
||||
|
========================================= |
||||
|
Full accounting kit for Odoo 18 community editions |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
No configuration |
||||
|
|
||||
|
Company |
||||
|
------- |
||||
|
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
||||
|
|
||||
|
License |
||||
|
------- |
||||
|
General Public License, Version 3 (LGPL v3). |
||||
|
(http://www.gnu.org/licenses/lgpl-3.0-standalone.html) |
||||
|
|
||||
|
Credits |
||||
|
------- |
||||
|
Developer: (V19) MohammedIrfan T, Ashik MA, Contact: odoo@cybrosys.com |
||||
|
|
||||
|
Contacts |
||||
|
-------- |
||||
|
* Mail Contact : odoo@cybrosys.com |
||||
|
* Website : https://cybrosys.com |
||||
|
|
||||
|
Bug Tracker |
||||
|
----------- |
||||
|
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
||||
|
|
||||
|
Maintainer |
||||
|
========== |
||||
|
.. image:: https://cybrosys.com/images/logo.png |
||||
|
:target: https://cybrosys.com |
||||
|
|
||||
|
This module is maintained by Cybrosys Technologies. |
||||
|
|
||||
|
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
||||
|
|
||||
|
Further information |
||||
|
=================== |
||||
|
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,24 @@ |
|||||
|
# -*- # -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
from . import models |
||||
|
from . import report |
||||
|
from . import wizard |
@ -0,0 +1,119 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
############################################################################# |
||||
|
# |
||||
|
# Cybrosys Technologies Pvt. Ltd. |
||||
|
# |
||||
|
# Copyright (C) 2025-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
||||
|
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>) |
||||
|
# |
||||
|
# You can modify it under the terms of the GNU LESSER |
||||
|
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
||||
|
# |
||||
|
# This program is distributed in the hope that it will be useful, |
||||
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
||||
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||||
|
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
||||
|
# |
||||
|
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
||||
|
# (LGPL v3) along with this program. |
||||
|
# If not, see <http://www.gnu.org/licenses/>. |
||||
|
# |
||||
|
############################################################################# |
||||
|
{ |
||||
|
'name': 'Odoo 19 Full Accounting Kit for Community', |
||||
|
'version': '19.0.1.0.0', |
||||
|
'category': 'Accounting', |
||||
|
'live_test_url': 'https://kit.easyinstance.com/web/login?redirect=/odoo/accounting', |
||||
|
'summary': """Odoo 19 Accounting, Odoo 19 Accounting Reports, Odoo18 Accounting, Odoo Accounting, Odoo19 Financial Reports, Odoo19 Asset, Odoo19 Profit and Loss, PDC, Followups, Odoo19, Accounting, Odoo Apps, Reports""", |
||||
|
'description': """ Odoo 19 Accounting, The module used to manage the Full |
||||
|
Account Features that can manage the Account Reports,Journals Asset and |
||||
|
Budget Management, Accounting Reports, PDC, Credit Limit, |
||||
|
Follow Ups, Day-Bank-Cash book report, Odoo 18 Accounting, odoo apps""", |
||||
|
'author': 'Cybrosys Techno Solutions', |
||||
|
'company': 'Cybrosys Techno Solutions', |
||||
|
'maintainer': 'Cybrosys Techno Solutions', |
||||
|
'website': "https://www.cybrosys.com", |
||||
|
'depends': ['account', 'sale', 'account_check_printing', 'analytic', |
||||
|
'base_account_budget'], |
||||
|
'data': [ |
||||
|
'security/security.xml', |
||||
|
'security/ir.model.access.csv', |
||||
|
'data/account_financial_report_data.xml', |
||||
|
'data/cash_flow_data.xml', |
||||
|
'data/followup_levels.xml', |
||||
|
'data/multiple_invoice_data.xml', |
||||
|
'data/recurring_entry_cron.xml', |
||||
|
'data/account_pdc_data.xml', |
||||
|
'views/reports_config_view.xml', |
||||
|
'views/accounting_menu.xml', |
||||
|
'views/account_group.xml', |
||||
|
'views/credit_limit_view.xml', |
||||
|
'views/account_configuration.xml', |
||||
|
'views/res_config_settings_views.xml', |
||||
|
'views/account_followup.xml', |
||||
|
'views/followup_line_views.xml', |
||||
|
'views/followup_report.xml', |
||||
|
'wizard/asset_depreciation_confirmation_views.xml', |
||||
|
'wizard/asset_modify_views.xml', |
||||
|
'views/account_asset_asset_views.xml', |
||||
|
'views/account_asset_category_views.xml', |
||||
|
'views/account_move_views.xml', |
||||
|
'views/product_template_views.xml', |
||||
|
'views/multiple_invoice_layout_view.xml', |
||||
|
'views/multiple_invoice_form.xml', |
||||
|
'views/account_journal_views.xml', |
||||
|
'wizard/financial_report_views.xml', |
||||
|
'wizard/account_report_general_ledger_views.xml', |
||||
|
'wizard/account_report_partner_ledger_views.xml', |
||||
|
'wizard/kit_account_tax_report_views.xml', |
||||
|
'wizard/account_balance_report_views.xml', |
||||
|
'wizard/account_aged_trial_balance_views.xml', |
||||
|
'wizard/account_print_journal_views.xml', |
||||
|
'wizard/cash_flow_report_views.xml', |
||||
|
'wizard/account_bank_book_report_views.xml', |
||||
|
'wizard/account_cash_book_report_views.xml', |
||||
|
'wizard/account_day_book_report_views.xml', |
||||
|
'report/report_financial_template.xml', |
||||
|
'report/general_ledger_report_template.xml', |
||||
|
'report/report_journal_audit_template.xml', |
||||
|
'report/report_aged_partner_template.xml', |
||||
|
'report/report_trial_balance_template.xml', |
||||
|
'report/report_tax_template.xml', |
||||
|
'report/report_partner_ledger_template.xml', |
||||
|
'report/cash_flow_report_template.xml', |
||||
|
'report/account_bank_book_template.xml', |
||||
|
'report/account_cash_book_template.xml', |
||||
|
'report/account_day_book_template.xml', |
||||
|
'report/account_asset_report_views.xml', |
||||
|
'report/report.xml', |
||||
|
'report/multiple_invoice_layouts.xml', |
||||
|
'report/multiple_invoice_report_template.xml', |
||||
|
'views/account_recurring_payments_view.xml', |
||||
|
'views/account_move_line_views.xml', |
||||
|
'views/account_bank_statement_views.xml', |
||||
|
'views/account_bank_statement_line_views.xml', |
||||
|
'views/account_payment_view.xml', |
||||
|
'wizard/account_lock_date_views.xml', |
||||
|
'wizard/import_bank_statement_views.xml', |
||||
|
], |
||||
|
'external_dependencies': { |
||||
|
'python': ['openpyxl', 'ofxparse', 'qifparse'] |
||||
|
}, |
||||
|
'assets': { |
||||
|
'web.assets_backend': [ |
||||
|
'base_accounting_kit/static/src/scss/style.scss', |
||||
|
'base_accounting_kit/static/src/scss/bank_rec_widget.css', |
||||
|
'base_accounting_kit/static/src/js/bank_reconcile_form_list_widget.js', |
||||
|
'base_accounting_kit/static/src/js/KanbanController.js', |
||||
|
'base_accounting_kit/static/src/js/ListController.js', |
||||
|
'base_accounting_kit/static/src/js/bank_reconcile_form_lines_widget.js', |
||||
|
'base_accounting_kit/static/src/xml/bank_rec_widget.xml', |
||||
|
'base_accounting_kit/static/src/xml/bank_reconcile_widget.xml', |
||||
|
] |
||||
|
}, |
||||
|
'license': 'LGPL-3', |
||||
|
'images': ['static/description/banner.gif'], |
||||
|
'installable': True, |
||||
|
'auto_install': False, |
||||
|
'application': True, |
||||
|
} |
@ -0,0 +1,152 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<odoo> |
||||
|
<data noupdate="1"> |
||||
|
<!-- Financial Reports data records in the model account.financial.report--> |
||||
|
<record id="account_financial_report_profitandloss0" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Profit and Loss</field> |
||||
|
<field name="sign" eval="'-1'"/> |
||||
|
<field name="type">sum</field> |
||||
|
</record> |
||||
|
<!-- Income report --> |
||||
|
<record id="account_financial_report_income0" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Income</field> |
||||
|
<field name="sign" eval="'-1'"/> |
||||
|
<field name="sequence">1</field> |
||||
|
<field name="parent_id" |
||||
|
ref="account_financial_report_profitandloss0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">sum</field> |
||||
|
</record> |
||||
|
<!-- Other Income --> |
||||
|
<record id="account_financial_report_other_income0" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Other Income</field> |
||||
|
<field name="sequence">10</field> |
||||
|
<field name="parent_id" |
||||
|
ref="account_financial_report_income0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">account_type</field> |
||||
|
<field name="account_type_ids">income_other</field> |
||||
|
</record> |
||||
|
<!-- Gross profit --> |
||||
|
<record id="financial_report_gross_profit" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Gross Profit</field> |
||||
|
<field name="parent_id" |
||||
|
ref="account_financial_report_income0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">sum</field> |
||||
|
<field name="sequence">3</field> |
||||
|
</record> |
||||
|
<!-- Cost of revenue --> |
||||
|
<record id="financial_report_cost_of_revenue" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Cost of Revenue</field> |
||||
|
<field name="sequence">10</field> |
||||
|
<field name="parent_id" |
||||
|
ref="financial_report_gross_profit"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">account_type</field> |
||||
|
<field name="account_type_ids">expense_direct_cost</field> |
||||
|
</record> |
||||
|
<!-- Operating Income --> |
||||
|
<record id="account_financial_report_operating_income0" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Operating Income</field> |
||||
|
<field name="sequence">1</field> |
||||
|
<field name="parent_id" |
||||
|
ref="financial_report_gross_profit"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">account_type</field> |
||||
|
<field name="account_type_ids">income</field> |
||||
|
</record> |
||||
|
<!-- Expense --> |
||||
|
<record id="account_financial_report_expense0" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Expense</field> |
||||
|
<field name="sign" eval="'-1'"/> |
||||
|
<field name="sequence">2</field> |
||||
|
<field name="parent_id" |
||||
|
ref="account_financial_report_profitandloss0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">account_type</field> |
||||
|
<field name="account_type_ids">expense</field> |
||||
|
</record> |
||||
|
<!-- Balance Sheet --> |
||||
|
<record id="account_financial_report_balancesheet0" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Balance Sheet</field> |
||||
|
<field name="type">sum</field> |
||||
|
</record> |
||||
|
<!-- Assets --> |
||||
|
<record id="account_financial_report_assets0" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Assets</field> |
||||
|
<field name="parent_id" |
||||
|
ref="account_financial_report_balancesheet0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">account_type</field> |
||||
|
<field name="account_type_ids">income_other</field> |
||||
|
</record> |
||||
|
<!-- Liability --> |
||||
|
<record id="account_financial_report_liabilitysum0" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Liability</field> |
||||
|
<field name="sequence">1</field> |
||||
|
<field name="parent_id" |
||||
|
ref="account_financial_report_balancesheet0"/> |
||||
|
<field name="display_detail">no_detail</field> |
||||
|
<field name="type">sum</field> |
||||
|
</record> |
||||
|
<!-- Liability --> |
||||
|
<record id="account_financial_report_liability0" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Liability</field> |
||||
|
<field name="parent_id" |
||||
|
ref="account_financial_report_liabilitysum0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">account_type</field> |
||||
|
<field name="account_type_ids">income_other</field> |
||||
|
</record> |
||||
|
<!-- Profit (Loss) to report --> |
||||
|
<record id="account_financial_report_profitloss_toreport0" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Profit (Loss) to report</field> |
||||
|
<field name="parent_id" |
||||
|
ref="account_financial_report_liabilitysum0"/> |
||||
|
<field name="display_detail">no_detail</field> |
||||
|
<field name="type">account_report</field> |
||||
|
<field name="account_report_id" |
||||
|
ref="account_financial_report_profitandloss0"/> |
||||
|
</record> |
||||
|
<!-- Common Report --> |
||||
|
<record id="account_report_view_form" model="ir.ui.view"> |
||||
|
<field name="name">account.report.view.form</field> |
||||
|
<field name="model">account.report</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Report Options"> |
||||
|
<group col="4"> |
||||
|
<field name="target_move" widget="radio"/> |
||||
|
<field name="date_from"/> |
||||
|
<field name="date_to"/> |
||||
|
</group> |
||||
|
<group> |
||||
|
<field name="journal_ids" widget="many2many_tags" |
||||
|
options="{'no_create': True}"/> |
||||
|
<field name="company_id" invisible="1"/> |
||||
|
</group> |
||||
|
<footer> |
||||
|
<button name="check_report" string="Print" |
||||
|
type="object" default_focus="1" |
||||
|
class="oe_highlight" |
||||
|
data-hotkey="q"/> |
||||
|
<button string="Cancel" class="btn btn-secondary" |
||||
|
special="cancel" data-hotkey="z"/> |
||||
|
</footer> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
</data> |
||||
|
</odoo> |
@ -0,0 +1,25 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<odoo> |
||||
|
<data noupdate="1"> |
||||
|
<!-- Account payment method Inbound pdc--> |
||||
|
<record id="account_payment_method_pdc_in" |
||||
|
model="account.payment.method"> |
||||
|
<field name="name">PDC</field> |
||||
|
<field name="code">pdc</field> |
||||
|
<field name="payment_type">inbound</field> |
||||
|
</record> |
||||
|
<!-- Outbound pdc --> |
||||
|
<record id="account_payment_method_pdc_out" |
||||
|
model="account.payment.method"> |
||||
|
<field name="name">PDC</field> |
||||
|
<field name="code">pdc</field> |
||||
|
<field name="payment_type">outbound</field> |
||||
|
</record> |
||||
|
<!-- Decimal precision for account --> |
||||
|
<record forcecreate="True" id="decimal_account" |
||||
|
model="decimal.precision"> |
||||
|
<field name="name">Account</field> |
||||
|
<field name="digits" eval="3"/> |
||||
|
</record> |
||||
|
</data> |
||||
|
</odoo> |
@ -0,0 +1,79 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<odoo> |
||||
|
<data noupdate="1"> |
||||
|
<!-- Records for the account.financial.report model--> |
||||
|
<record id="account_financial_report_cash_flow0" model="account.financial.report"> |
||||
|
<field name="name">Cash Flow Statement</field> |
||||
|
<field name="type">sum</field> |
||||
|
</record> |
||||
|
<!-- Defines a financial report record for operations --> |
||||
|
<record id="account_financial_report_operation0" |
||||
|
model="account.financial.report"> |
||||
|
<field name="name">Operations</field> |
||||
|
<field name="sequence">1</field> |
||||
|
<field name="parent_id" ref="account_financial_report_cash_flow0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">sum</field> |
||||
|
</record> |
||||
|
<!-- Cash in operation --> |
||||
|
<record id="cash_in_from_operation0" model="account.financial.report"> |
||||
|
<field name="name">Cash In</field> |
||||
|
<field name="sequence">1</field> |
||||
|
<field name="parent_id" ref="account_financial_report_operation0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">accounts</field> |
||||
|
</record> |
||||
|
<!-- Cash out operation --> |
||||
|
<record id="cash_out_operation1" model="account.financial.report"> |
||||
|
<field name="name">Cash Out</field> |
||||
|
<field name="sequence">2</field> |
||||
|
<field name="parent_id" ref="account_financial_report_operation0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">accounts</field> |
||||
|
</record> |
||||
|
<!-- Defines a financial report record for Investing Activities --> |
||||
|
<record id="account_financial_report_investing_activity0" model="account.financial.report"> |
||||
|
<field name="name">Investing Activities</field> |
||||
|
<field name="sequence">2</field> |
||||
|
<field name="parent_id" ref="account_financial_report_cash_flow0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">sum</field> |
||||
|
</record> |
||||
|
<!-- Cash in Investing Activities --> |
||||
|
<record id="cash_in_investing0" model="account.financial.report"> |
||||
|
<field name="name">Cash In</field> |
||||
|
<field name="parent_id" ref="account_financial_report_investing_activity0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">accounts</field> |
||||
|
</record> |
||||
|
<!-- Cash out Investing Activities --> |
||||
|
<record id="cash_out_investing1" model="account.financial.report"> |
||||
|
<field name="name">Cash Out</field> |
||||
|
<field name="parent_id" ref="account_financial_report_investing_activity0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">accounts</field> |
||||
|
</record> |
||||
|
<!-- Defines a financial report record for Financing Activities --> |
||||
|
<record id="account_financial_report_financing_activity1" model="account.financial.report"> |
||||
|
<field name="name">Financing Activities</field> |
||||
|
<field name="sequence">3</field> |
||||
|
<field name="parent_id" ref="account_financial_report_cash_flow0"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">sum</field> |
||||
|
</record> |
||||
|
<!-- Cash in Financing Activities --> |
||||
|
<record id="cash_in_financial0" model="account.financial.report"> |
||||
|
<field name="name">Cash In</field> |
||||
|
<field name="parent_id" ref="account_financial_report_financing_activity1"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">accounts</field> |
||||
|
</record> |
||||
|
<!-- Cash out Financing Activities --> |
||||
|
<record id="cash_out_financial1" model="account.financial.report"> |
||||
|
<field name="name">Cash Out</field> |
||||
|
<field name="parent_id" ref="account_financial_report_financing_activity1"/> |
||||
|
<field name="display_detail">detail_with_hierarchy</field> |
||||
|
<field name="type">accounts</field> |
||||
|
</record> |
||||
|
</data> |
||||
|
</odoo> |
@ -0,0 +1,14 @@ |
|||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<odoo> |
||||
|
<data noupdate="1"> |
||||
|
<!-- Data file for the follow-up lines --> |
||||
|
<record model="followup.line" id="followup_line_id" > |
||||
|
<field name="name">Reminder</field> |
||||
|
<field name="delay">5</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model="account.followup" id="followup"> |
||||
|
<field name="followup_line_ids" eval="[(6,0,[ref('followup_line_id')])]"/> |
||||
|
</record> |
||||
|
</data> |
||||
|
</odoo> |