[TMP)Add field number bank check

This commit is contained in:
michel 2018-02-02 13:58:36 +01:00
parent fdecad9b99
commit 66208d8ca4
3 changed files with 43 additions and 1 deletions

View File

@ -27,5 +27,7 @@
'application': True, 'application': True,
'installable': True, 'installable': True,
'depends': ['account', 'golem_season'], 'depends': ['account', 'golem_season'],
'data': ['views/golem_payment_views.xml', 'security/ir.model.access.csv'] 'data': ['views/golem_payment_views.xml',
'views/golem_account_payment_views.xml',
'security/ir.model.access.csv']
} }

View File

@ -19,6 +19,11 @@
from odoo import models, fields, api, _ from odoo import models, fields, api, _
class AccountPayment(models.Model):
""" Add number bank check"""
_inherit = 'account.payment'
bankcheck = fields.Char(string='Number of bank check')
class GolemPaymentScheduleDay(models.Model): class GolemPaymentScheduleDay(models.Model):
""" Schedule day simple model """ """ Schedule day simple model """
_name = 'golem.payment.schedule.day' _name = 'golem.payment.schedule.day'

View File

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2017 Fabien Bourgeois <fabien@yaltik.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<odoo>
<data>
<!-- Forms -->
<record model="ir.ui.view" id="account_payment_form_inherit_golem_payment">
<field name="name">Add number of bank check into main form</field>
<field name="model">account.payment</field>
<field name="inherit_id" ref="account.view_account_payment_form" />
<field name="arch" type="xml">
<field name="communication" position="before">
<field name="bankcheck" />
</field>
</field>
</record>
</data>
</odoo>