diff --git a/odex25_accounting/petty_invoice/__init__.py b/odex25_accounting/petty_invoice/__init__.py new file mode 100644 index 000000000..f5ba686bc --- /dev/null +++ b/odex25_accounting/petty_invoice/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +from . import models \ No newline at end of file diff --git a/odex25_accounting/petty_invoice/__manifest__.py b/odex25_accounting/petty_invoice/__manifest__.py new file mode 100644 index 000000000..6ee0f52ab --- /dev/null +++ b/odex25_accounting/petty_invoice/__manifest__.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +{ + 'name': "Petty Invoice", + 'summary': """Accounting""", + 'category': 'Odex25-Project/Odex25-Project', + 'description': """ + Mark invoice as petty cash one + + """, + 'version': '0.1', + 'depends': ['account'], + 'data': [ + 'views/account_move_view.xml', + ], +} diff --git a/odex25_accounting/petty_invoice/i18n/ar_001.po b/odex25_accounting/petty_invoice/i18n/ar_001.po new file mode 100644 index 000000000..c6a2a8101 --- /dev/null +++ b/odex25_accounting/petty_invoice/i18n/ar_001.po @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * petty_invoice +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2024-10-27 03:55+0000\n" +"PO-Revision-Date: 2024-10-27 03:55+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: petty_invoice +#: model_terms:ir.ui.view,arch_db:petty_invoice.view_account_invoice_filter +msgid "Created By" +msgstr "تم الإنشاء بواسطة" + +#. module: petty_invoice +#: model:ir.model,name:petty_invoice.model_account_move +msgid "Journal Entry" +msgstr "قيد اليومية" + +#. module: petty_invoice +#: model:ir.model.fields,field_description:petty_invoice.field_account_bank_statement_line__is_petty_paid +#: model:ir.model.fields,field_description:petty_invoice.field_account_move__is_petty_paid +#: model:ir.model.fields,field_description:petty_invoice.field_account_payment__is_petty_paid +#: model_terms:ir.ui.view,arch_db:petty_invoice.view_account_invoice_filter +msgid "Paid by Petty Cash" +msgstr "منصرفه من العهد" diff --git a/odex25_accounting/petty_invoice/models/__init__.py b/odex25_accounting/petty_invoice/models/__init__.py new file mode 100644 index 000000000..4aeddb055 --- /dev/null +++ b/odex25_accounting/petty_invoice/models/__init__.py @@ -0,0 +1,3 @@ +# -*- coding: utf-8 -*- + +from . import account_move \ No newline at end of file diff --git a/odex25_accounting/petty_invoice/models/account_move.py b/odex25_accounting/petty_invoice/models/account_move.py new file mode 100644 index 000000000..6dc6d34a4 --- /dev/null +++ b/odex25_accounting/petty_invoice/models/account_move.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- + +from odoo import models, fields + + +class AccountMove(models.Model): + _inherit = 'account.move' + + is_petty_paid = fields.Boolean(string='Paid by Petty Cash', default=False) diff --git a/odex25_accounting/petty_invoice/views/account_move_view.xml b/odex25_accounting/petty_invoice/views/account_move_view.xml new file mode 100644 index 000000000..eec0d3814 --- /dev/null +++ b/odex25_accounting/petty_invoice/views/account_move_view.xml @@ -0,0 +1,33 @@ + + + + account.move.paid.petty.inherit.select + account.move + + + + + + + + + + + + + + + + + account.move.paid.petty.inherit.form + account.move + + + + + + + + + \ No newline at end of file