forked from Yaltik/golem
[TMP] Add field reference
This commit is contained in:
parent
66208d8ca4
commit
197e9705e0
@ -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 """
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user