25 lines
996 B
Python
25 lines
996 B
Python
from trytond.pool import PoolMeta
|
|
|
|
from facho.fe import form
|
|
|
|
class Party(metaclass=PoolMeta):
|
|
__name__ = 'party.party'
|
|
|
|
facho_tipo_responsabilidad = fields.Many2One('account_invoice_facho.fe_generic_code',
|
|
'Tipo Responsabilidad',
|
|
domain=[('resource', '=', 'tipo_responsabilidad')],
|
|
states=_states,
|
|
depends=_depends)
|
|
|
|
facho_tipo_organizacion = fields.Many2One('account_invoice_facho.fe_generic_code',
|
|
'Tipo Organizacion',
|
|
domain=[('resource', '=', 'tipo_organizacion')],
|
|
states=_states,
|
|
depends=_depends)
|
|
|
|
|
|
def tofacho(self):
|
|
return form.Party(
|
|
name = self.name
|
|
)
|