Browse Source

Fix S0041 : make date_invoice as required in the view only not in the

model
pull/109/head
EliseDup 8 years ago
committed by Rémy Taymans
parent
commit
774dd039ff
  1. 5
      beesdoo_account/__openerp__.py
  2. 1
      beesdoo_account/models/__init__.py
  3. 13
      beesdoo_account/models/beesdoo_account_invoice.py
  4. 14
      beesdoo_account/views/account_invoice.xml

5
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'],
}

1
beesdoo_account/models/__init__.py

@ -1 +0,0 @@
import beesdoo_account_invoice

13
beesdoo_account/models/beesdoo_account_invoice.py

@ -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)

14
beesdoo_account/views/account_invoice.xml

@ -0,0 +1,14 @@
<openerp>
<data>
<record model="ir.ui.view" id="beesdoo_account_invoice_form_view">
<field name="name">beesdoo.account.invoice.form.view</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form" />
<field name="arch" type="xml">
<field name="date_invoice" position="attributes">
<attribute name="required">True</attribute>
</field>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save