minor fix validation check_cost production

This commit is contained in:
wilson gomez 2021-06-22 15:59:24 -05:00
parent da7814f8e9
commit b2b82bce77
2 changed files with 33 additions and 1 deletions

29
.gitignore vendored Normal file
View File

@ -0,0 +1,29 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.
# dependencies
/build
/dist
*egg-info
/node_modules
# testing
/coverage
# production
/build
# misc
.DS_Store
npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock*
/__pycache__
/app/__pycache__
/app/commons/__pycache__

View File

@ -50,7 +50,6 @@ class Production(metaclass=PoolMeta):
moves_ids = ", ".join(moves)
cursor.execute("UPDATE stock_move SET state='draft' WHERE id in (%s)" % (moves_ids))
@classmethod
def assign(cls, records):
super(Production, cls).assign(records)
@ -63,6 +62,10 @@ class Production(metaclass=PoolMeta):
for record in records:
record.create_account_move_stock('done')
def check_cost(self):
# Fix me super method for pass check_cost validation
pass
def create_account_move_stock(self, kind):
pool = Pool()
Move = pool.get('account.move')