I hereby claim:
- I am timosolo on github.
- I am timosolo (https://keybase.io/timosolo) on keybase.
- I have a public key ASDQMjhOJAFMP6yUlJLH7xmuLgOdOjuLee-Q1_Fk6Z3GtAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // ==UserScript== | |
| // @name Dear Validation | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.6 | |
| // @description Improve DEAR validation | |
| // @author timosolo.me | |
| // @match https://inventory.dearsystems.com/* | |
| // @grant unsafeWindow | |
| // ==/UserScript== |
| # info from http://geekswithblogs.net/willemf/archive/2005/10/30/58561.aspx | |
| def _id_check(self, cr, uid, ids, context=None): | |
| obj = self.browse(cr, uid, ids[0], context=context) | |
| if obj and obj.idnumber: | |
| idnum = str(obj.idnumber) | |
| if len(idnum) != 13: | |
| return False | |
| checksum1 = 0 | |
| checksum2 = "" |