forked from Yaltik/golem
[TMP)Add field number bank check
This commit is contained in:
parent
fdecad9b99
commit
66208d8ca4
@ -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']
|
||||||
}
|
}
|
||||||
|
@ -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'
|
||||||
|
35
golem_payment/views/golem_account_payment_views.xml
Normal file
35
golem_payment/views/golem_account_payment_views.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user