add model address
This commit is contained in:
parent
5430dc54ee
commit
7e2648e114
9
address.py
Normal file
9
address.py
Normal file
@ -0,0 +1,9 @@
|
||||
from trytond.pool import PoolMeta
|
||||
from trytond.model import fields
|
||||
|
||||
|
||||
class Address(metaclass=PoolMeta):
|
||||
__name__ = 'party.address'
|
||||
|
||||
campus = fields.Boolean("Campus")
|
||||
party_related = fields.One2Many('party.party', "Party related")
|
10
address.xml
Normal file
10
address.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
this repository contains the full copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<record model="ir.ui.view" id="address_view_form">
|
||||
<field name="model">party.address</field>
|
||||
<field name="inherit" ref="party.address_view_form"/>
|
||||
<field name="name">address_form</field>
|
||||
</record>
|
||||
</tryton>
|
Loading…
Reference in New Issue
Block a user