Prepare ncf manager for Tryton 8.0
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
|
||||
class User(metaclass=PoolMeta):
|
||||
__name__ = 'res.user'
|
||||
|
||||
digital_signature = fields.Binary(
|
||||
'Digital Signature', help='Signature image used on invoice reports.')
|
||||
|
||||
# Alias used by invoice.fodt template
|
||||
z_digital_signature = fields.Function(
|
||||
fields.Binary('Digital Signature'),
|
||||
'get_z_digital_signature')
|
||||
|
||||
def get_z_digital_signature(self, name):
|
||||
return self.digital_signature
|
||||
Reference in New Issue
Block a user