Browse Source

[MERGE][S0041] Date obligatoire pour une facture

pull/14/head
Thibault Francois 8 years ago
parent
commit
e3337f972d
  1. 2
      beesdoo_account/__init__.py
  2. 22
      beesdoo_account/__openerp__.py
  3. 0
      beesdoo_account/models/__init__.py
  4. 28
      beesdoo_account/views/account_invoice.xml

2
beesdoo_account/__init__.py

@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
import models

22
beesdoo_account/__openerp__.py

@ -0,0 +1,22 @@
# -*- 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',
'beesdoo_base'],
'data': ['views/account_invoice.xml'],
}

0
beesdoo_account/models/__init__.py

28
beesdoo_account/views/account_invoice.xml

@ -0,0 +1,28 @@
<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>
<data>
<record model="ir.ui.view" id="beesdoo_account_invoice_supplier_form_view">
<field name="name">beesdoo.account.invoice.supplier.form.view</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_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