1
TypeError: cannot convert dictionary update sequence element #0 to a sequenceodooにこれらのようなエラーを取得
私のコード
@api.model
def action_purchase_order(self):
rec= self.env['purchase.order'].create({
'partner_id' : self.vendors,
'store_id' : self.store_id,
'purchase_order_type' : self.order_type,
'date_order' : self.date_order,
'product_id' : self.product_id,
'date_planned' : self.date_order,
'product_qty' : self.name,
'brand_id' : self.brand_id,
'product_id' : self.product_id,
'part_number': self.part_number,
'date_planned' : self.date_order,
'product_qty' : self.quantity_no,
})
return rec
ボタンを通じてアクセス...
ボタンのxmlコードを入力してください。また、ボタンの場合は、@ api.multiを使用すると思われます。 –
フィリップのおかげで助けになりました。 –