This commit is contained in:
Songb
2024-04-28 11:43:49 +08:00
commit 953c76ce8a
4108 changed files with 2312605 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
@@ -0,0 +1,20 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Documents - Kenyan Payroll',
'countries': ['ke'],
'version': '1.0',
'category': 'Human Resources/Payroll',
'summary': 'Store employee tax deduction card forms in the Document app',
'description': """
Employee Tax Deduction Card forms will be automatically integrated to the Document app.
""",
'website': ' ',
'depends': ['documents_hr_payroll', 'l10n_ke_hr_payroll'],
'data': [
'views/l10n_ke_tax_deduction_card_views.xml',
],
'installable': True,
'auto_install': True,
'license': 'OEEL-1',
}
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="l10n_ke_tax_deduction_card_view_form" model="ir.ui.view">
<field name="name">l10n_ke.tax.deduction.card.form</field>
<field name="model">l10n_ke.tax.deduction.card</field>
<field name="inherit_id" ref="l10n_ke_hr_payroll.l10n_ke_tax_deduction_card_view_form"/>
<field name="arch" type="xml">
<p name="save_warning" position="attributes">
<attribute name="invisible">1</attribute>
</p>
<div name="button_box" position="inside">
<button name="action_see_documents" type="object" class="oe_stat_button" icon="fa-file-text-o" invisible="not documents_enabled or documents_count == 0">
<div class="o_field_widget o_stat_info">
<span class="o_stat_value"><field name="documents_count"/></span>
<span class="o_stat_text">Documents</span>
</div>
</button>
</div>
<p name="save_warning" position="after">
<field name="documents_enabled" invisible="1"/>
<div>
<div invisible = "documents_enabled">
<p><strong>Warning: </strong>In order to post the tax deduction card sheets in the employee portal, you have to Enable "Human Resources" in the <a name="%(documents.configuration_action)d" type="action" class="oe_link">"Documents" app settings</a>.</p>
</div>
</div>
</p>
</field>
</record>
</odoo>