\
I am trying to programmatically create a new purchase order inside a model method invoked by a button.
I do this:
@api.multi
def do_create_purchase_order(self):
purchase_order = self.env['purchase.order'].create()
But I get:
TypeError: create() takes exactly 2 arguments (1 given)
How can I get a new purchase order created?