This commit is contained in:
eman 2024-08-25 21:18:20 +03:00
parent 0cd84fb015
commit c576fb67e9
6 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import models

View File

@ -0,0 +1,17 @@
# -*- coding: utf-8 -*-
{
'name': "Analytic account in hr department",
'version': '14.0.1',
'category': 'HR-Odex25',
'author': 'Expert Co. Ltd.',
'website': 'http://exp-sa.com',
'depends': ['hr','analytic'],
# any module necessary for this one to work correctly
# always loaded
'data': [
'views/views.xml',
]
}

View File

@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * exp_analytic
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-01-04 08:00+0000\n"
"PO-Revision-Date: 2023-01-04 08:00+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: exp_analytic
#: model:ir.model.fields,field_description:exp_analytic.field_hr_department__analytic_account_id
msgid "Analytic Account"
msgstr "الحساب التحليلي"
#. module: exp_analytic
#: model:ir.model,name:exp_analytic.model_hr_department
msgid "Department"
msgstr "القسم"
#. module: exp_analytic
#: model:ir.model.fields,field_description:exp_analytic.field_hr_department__display_name
msgid "Display Name"
msgstr "الاسم المعروض"
#. module: exp_analytic
#: model:ir.model.fields,field_description:exp_analytic.field_hr_department__id
msgid "ID"
msgstr "المُعرف"
#. module: exp_analytic
#: model:ir.model.fields,field_description:exp_analytic.field_hr_department____last_update
msgid "Last Modified on"
msgstr "آخر تعديل في"

View File

@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import models

View File

@ -0,0 +1,8 @@
# -*- coding: utf-8 -*-
from odoo import models, fields
class HrDepartment(models.Model):
_inherit = 'hr.department'
analytic_account_id = fields.Many2one('account.analytic.account',
'Analytic Account')

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="view_department_form_inherit" model="ir.ui.view">
<field name="name">hr.department.analytic.inherit.form</field>
<field name="inherit_id" ref="hr.view_department_form"/>
<field name="model">hr.department</field>
<field name="arch" type="xml">
<xpath expr="//field[@name='company_id']" position="after">
<field name="analytic_account_id" options='{"no_open": True, "no_create": True}'/>
</xpath>
</field>
</record>
</odoo>