|
@ -8,14 +8,17 @@ |
|
|
# |
|
|
# |
|
|
############################################################################## |
|
|
############################################################################## |
|
|
|
|
|
|
|
|
|
|
|
""" procedural code is executed even if the module is not installed |
|
|
|
|
|
|
|
|
|
|
|
TRY TO SWITCH to _register_hook() in the model to avoid |
|
|
|
|
|
execution when not installed in V 8.0 version |
|
|
|
|
|
|
|
|
|
|
|
""" |
|
|
|
|
|
|
|
|
from openerp.osv import orm |
|
|
from openerp.osv import orm |
|
|
from lxml import etree |
|
|
from lxml import etree |
|
|
import os |
|
|
import os |
|
|
|
|
|
|
|
|
# procedural code is executed even if the module is not installed |
|
|
|
|
|
# TRY TO SWITCH to _register_hook() in the model to avoid |
|
|
|
|
|
# execution when not installed in V 8.0 version |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module_name = os.path.basename(os.path.dirname(os.path.abspath(__file__))) |
|
|
module_name = os.path.basename(os.path.dirname(os.path.abspath(__file__))) |
|
|
|
|
|
|
|
|