Created
May 20, 2016 12:05
-
-
Save Endika/4609fe81473230031219d2d1a545f284 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@api.model | |
def create(self, vals): | |
if vals: | |
vals.update({ | |
'seq_id': self.env['ir.sequence'].get('seq.obj.name') | |
}) | |
return super(PurchaseOrder, self).create(vals) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment