[TMP] Add field reference

This commit is contained in:
michel 2018-02-02 16:27:45 +01:00
parent 66208d8ca4
commit 197e9705e0
2 changed files with 13 additions and 2 deletions

View File

@ -22,7 +22,7 @@ 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')
reference = fields.Char(string='Payment Reference')
class GolemPaymentScheduleDay(models.Model):
""" Schedule day simple model """

View File

@ -26,7 +26,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="inherit_id" ref="account.view_account_payment_form" />
<field name="arch" type="xml">
<field name="communication" position="before">
<field name="bankcheck" />
<field name="reference" />
</field>
</field>
</record>
<record model="ir.ui.view" id="account_invoice_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_invoice_form" />
<field name="arch" type="xml">
<field name="communication" position="before">
<field name="reference" />
</field>
</field>
</record>