Error using account.move copy()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The create() function of account.move seems to bug when using the copy function.
I'm using a really simple call :
### copy_move = self.browse(cr, uid, copy_id)
The context seems to be initiated when the function is called :
### def create(self, cr, uid, vals, context={}):
but it stay at a None value.
As a result, it crashes with the message
### File "/usr/local/
### context[
### TypeError: 'NoneType' object does not support item assignment
I also noticed that the function has a browse that is not used anywhere, and therefore is completely useless
### accnt_journal = self.pool.
If i try to add the journal and period ID in my call
### copy_move = self.browse(cr, uid, copy_id, journal_id, period_id)
It just goes in a infinite loop and crash with a max recursion error.
### RuntimeError: maximum recursion depth exceeded in __instancecheck__
affects: | openobject-addons → openobject-server |
Changed in openobject-server: | |
status: | New → Confirmed |
Hello Sypam,
Would you please attach the code of your module so we can test this at our end?
Moreover, can you try the patch attached at https:/ /bugs.launchpad .net/openobject -server/ +bug/544087?
Let us know the updates.
Thanks.