add model address

This commit is contained in:
sinergia 2022-06-26 13:31:03 -05:00
parent 5430dc54ee
commit 7e2648e114
2 changed files with 19 additions and 0 deletions

9
address.py Normal file
View 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
View 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>