Colleagues, how can I generate an identification code automatically?

31 views
Skip to first unread message

Paul Arsenio Blanco Reyes

unread,
Jun 20, 2019, 12:02:31 PM6/20/19
to web2py-users
It turns out that I have a company table, in turn, the company can be classified as a client, as a supplier or both together. How to assign a consecutive to the company according to its classification?

Val K

unread,
Jun 20, 2019, 1:20:55 PM6/20/19
to web2py-users
define_table('company')
define_table('client', Field('id', 'reference company'), primarykey=['id'])
define_table('supplier', Field('id', 'reference company'), primarykey=['id'])
Reply all
Reply to author
Forward
0 new messages