diff --git a/installement/__init__.py b/installement/__init__.py new file mode 100644 index 0000000000..9b4296142f --- /dev/null +++ b/installement/__init__.py @@ -0,0 +1,2 @@ +from . import models +from . import wizard diff --git a/installement/__manifest__.py b/installement/__manifest__.py new file mode 100644 index 0000000000..34e7edb134 --- /dev/null +++ b/installement/__manifest__.py @@ -0,0 +1,14 @@ +{ + 'name': 'Installement App', + 'version': '17.0', + 'depends': ['base', 'sale'], + 'license': 'LGPL-3', + 'data': [ + 'security/ir.model.access.csv', + 'wizard/add_emi_button_wizard_views.xml', + 'views/add_emi_button_views.xml', + 'views/res_config_settings_views.xml' + ], + 'installable': True, + 'application': True, +} diff --git a/installement/models/__init__.py b/installement/models/__init__.py new file mode 100644 index 0000000000..0deb68c468 --- /dev/null +++ b/installement/models/__init__.py @@ -0,0 +1 @@ +from . import res_config_settings diff --git a/installement/models/res_config_settings.py b/installement/models/res_config_settings.py new file mode 100644 index 0000000000..e86771304b --- /dev/null +++ b/installement/models/res_config_settings.py @@ -0,0 +1,26 @@ +from odoo import models, fields + + +class ResConfigSettings(models.TransientModel): + + _inherit = "res.config.settings" + + max_duration = fields.Float( + string="Max Duration", config_parameter='installement.max_duration') + annual_rate_percentage = fields.Float( + string='Annual Rate Percentage', config_parameter='installement.annual_rate_percentage') + down_payment_percentage = fields.Float( + string="Down Payment Percentage", config_parameter='installement.down_payment_percentage') + administrative_expenses_percentage = fields.Float( + string='Administrative Expenses Percentage', config_parameter='installement.administrative_expenses_percentage') + delay_penalty_percentage = fields.Float( + string="Delay Penalty Percentage", config_parameter='installement.delay_penalty_percentage') + delay_penalty_process = fields.Float( + string='Delay Penalty Process', config_parameter='installement.delay_penalty_process') + + nid = fields.Boolean("Nid") + salary_component = fields.Boolean('Salary Component') + bank_statement = fields.Boolean('Bank Statement') + bank_rate_letter = fields.Boolean('Bank Rate Letter') + rental_contract = fields.Boolean('Rental Contract') + ownership_contract = fields.Boolean('Ownership Contract') diff --git a/installement/security/ir.model.access.csv b/installement/security/ir.model.access.csv new file mode 100644 index 0000000000..c7d5cd568c --- /dev/null +++ b/installement/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_add_emi_button_wizard,access_add_emi_button_wizard,model_add_emi_button_wizard,base.group_user,1,1,1,1 diff --git a/installement/views/add_emi_button_views.xml b/installement/views/add_emi_button_views.xml new file mode 100644 index 0000000000..936a52ab47 --- /dev/null +++ b/installement/views/add_emi_button_views.xml @@ -0,0 +1,16 @@ + + + + sale.order.form + sale.order + + + +