From d8768b613e3d29114314b71419ea684767e8d77e Mon Sep 17 00:00:00 2001 From: Oscar Date: Sat, 21 Aug 2021 12:26:34 -0500 Subject: [PATCH] Minor fix --- agent.py | 3 +-- restaurant.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/agent.py b/agent.py index 2bbb037..fae0d2c 100644 --- a/agent.py +++ b/agent.py @@ -1,9 +1,8 @@ # This file is part of Tryton. The COPYRIGHT file at the top level of # this repository contains the full copyright notices and license terms. from __future__ import unicode_literals -from decimal import Decimal from trytond.pool import PoolMeta -from trytond.model import fields, ModelSQL +from trytond.model import fields class Agent(metaclass=PoolMeta): diff --git a/restaurant.py b/restaurant.py index 615f16b..76f9215 100644 --- a/restaurant.py +++ b/restaurant.py @@ -44,7 +44,6 @@ class Reservation(ModelSQL, ModelView): class PartyConsumer(ModelSQL, ModelView): 'Party Consumer' __name__ = 'party.consumer' - _rec_name = 'name' name = fields.Char('Name', required=True) phone = fields.Char('Phone', required=True) address = fields.Char('Address', required=True)