diff --git a/beesdoo_account/__openerp__.py b/beesdoo_account/__openerp__.py index 73948e9..694cf0f 100644 --- a/beesdoo_account/__openerp__.py +++ b/beesdoo_account/__openerp__.py @@ -15,7 +15,8 @@ 'category': 'Account Module', 'version': '0.1', - 'depends': ['account'], + 'depends': ['account', + 'beesdoo_base'], - 'data': [], + 'data': ['views/account_invoice.xml'], } diff --git a/beesdoo_account/models/__init__.py b/beesdoo_account/models/__init__.py deleted file mode 100644 index 4f79ac7..0000000 --- a/beesdoo_account/models/__init__.py +++ /dev/null @@ -1 +0,0 @@ -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 deleted file mode 100644 index 25f65be..0000000 --- a/beesdoo_account/models/beesdoo_account_invoice.py +++ /dev/null @@ -1,13 +0,0 @@ -# -*- 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 diff --git a/beesdoo_account/views/account_invoice.xml b/beesdoo_account/views/account_invoice.xml new file mode 100644 index 0000000..8f46b3e --- /dev/null +++ b/beesdoo_account/views/account_invoice.xml @@ -0,0 +1,14 @@ + + + + beesdoo.account.invoice.form.view + account.invoice + + + + True + + + + + \ No newline at end of file