Reviewers: ,


Please review this at http://codereview.tryton.org/553003/

Affected files:
  account.py


Index: account.py
===================================================================

--- a/account.py
+++ b/account.py
@@ -442,7 +442,8 @@
             vals = self._get_account_value()
             vals['company'] = company_id
             vals['parent'] = parent_id
-            vals['type'] = template2type.get(self.type.id)
+            if self.type:
+                vals['type'] = template2type.get(self.type.id)

             new_account = Account.create(vals)




--
[email protected] mailing list

Reply via email to