Code styling
This commit is contained in:
parent
83cf71a2de
commit
61336f39fd
|
@ -1,11 +1,11 @@
|
||||||
# The COPYRIGHT file at the top level of
|
# The COPYRIGHT file at the top level of
|
||||||
# this repository contains the full copyright notices and license terms.
|
# this repository contains the full copyright notices and license terms.
|
||||||
from trytond.pool import Pool
|
from trytond.pool import Pool
|
||||||
from .productive_process import ProductiveProcess, WithinProductiveProcess,\
|
from .productive_process import (ProductiveProcess, is_in_productive_process,
|
||||||
is_in_productive_process, PYSON_NULL_PROCESS
|
WithinProductiveProcess, PYSON_NULL_PROCESS)
|
||||||
|
|
||||||
|
|
||||||
def register():
|
def register():
|
||||||
Pool.register(
|
Pool.register(
|
||||||
ProductiveProcess,
|
ProductiveProcess,
|
||||||
module='productive_process', type_='model')
|
module='productive_process', type_='model')
|
||||||
|
|
|
@ -47,4 +47,4 @@ class WithinProductiveProcess(Model):
|
||||||
processes = Process.search([])
|
processes = Process.search([])
|
||||||
if len(processes) == 1:
|
if len(processes) == 1:
|
||||||
process_id = processes[0].id
|
process_id = processes[0].id
|
||||||
return process_id
|
return process_id
|
||||||
|
|
Loading…
Reference in New Issue