From 0be6b8d655a65eea9173b2635cc8ac63942fc90c Mon Sep 17 00:00:00 2001 From: EliseDup Date: Tue, 18 Oct 2016 18:51:16 +0200 Subject: [PATCH] Account module added, make invoice_date as required. --- beesdoo_account/__init__.py | 2 ++ beesdoo_account/__openerp__.py | 21 +++++++++++++++++++ beesdoo_account/models/__init__.py | 1 + .../models/beesdoo_account_invoice.py | 13 ++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 beesdoo_account/__init__.py create mode 100644 beesdoo_account/__openerp__.py create mode 100644 beesdoo_account/models/__init__.py create mode 100644 beesdoo_account/models/beesdoo_account_invoice.py diff --git a/beesdoo_account/__init__.py b/beesdoo_account/__init__.py new file mode 100644 index 0000000..0f7cb6b --- /dev/null +++ b/beesdoo_account/__init__.py @@ -0,0 +1,2 @@ +# -*- coding: utf-8 -*- +import models \ No newline at end of file diff --git a/beesdoo_account/__openerp__.py b/beesdoo_account/__openerp__.py new file mode 100644 index 0000000..73948e9 --- /dev/null +++ b/beesdoo_account/__openerp__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +{ + 'name': "Beescoop Account Module", + + 'summary': """ + Module that customize account module for Beescoop + """, + + 'description': """ + """, + + 'author': "Beescoop - Cellule IT", + 'website': "https://github.com/beescoop/Obeesdoo", + + 'category': 'Account Module', + 'version': '0.1', + + 'depends': ['account'], + + 'data': [], +} diff --git a/beesdoo_account/models/__init__.py b/beesdoo_account/models/__init__.py new file mode 100644 index 0000000..4f79ac7 --- /dev/null +++ b/beesdoo_account/models/__init__.py @@ -0,0 +1 @@ +import beesdoo_account_invoice \ No newline at end of file diff --git a/beesdoo_account/models/beesdoo_account_invoice.py b/beesdoo_account/models/beesdoo_account_invoice.py new file mode 100644 index 0000000..aab91cb --- /dev/null +++ b/beesdoo_account/models/beesdoo_account_invoice.py @@ -0,0 +1,13 @@ +# -*- coding: utf-8 -*- +''' + Created on 5 déc. 2015 + + @author: Thibault François +''' + +from openerp import models, fields, api + +class BeesdooAccountInvoice(models.Model): + _inherit = "account.invoice" + + date_invoice = fields.Date(required=True) \ No newline at end of file