bikalims / bika.lims

Open Source Web-based Laboratory Information Management System
http://www.bikalims.org
Other
223 stars 168 forks source link

Allow year in any portal type's ID format string #2294

Closed mikejmets closed 6 years ago

mikejmets commented 6 years ago

Bugfix

Current behavior before PR

If you use {year} in the ID format of anything other than Sample you get a KeyError.

Desired behavior after PR is merged

{year} can be used in IDs of any portal type.

-- I confirm I have tested this PR thoroughly and coded it according to PEP8 standards.