Community mailing list archives


Re: Sales Journal Sequence

Yassine TEIMI
- 09/14/2014 12:38:53

Here is the custom module's files, I restarted my openerp server, and updated module's list, but the module doesn't appear, so as to install it, I think I should try somtheing else in depends parameter, in the file. 

Thanks in advance for your help.
import ir_sequence
    'name': 'sequence_month_before',
    'category': '',
    'author': 'TEIMI Yassine',
    'version': '1.0',
    'website' : '',
'depends': ['ir_sequence'],
    'description': """ Ce module crée une séquence permettant de numéroter avec le mois précédent """,
'active': False,
'data': [
'installable': True,
    'auto_install' : False,

from openerp.osv import orm
from datetime import datetime
from dateutil.relativedelta import *

class ir_sequence(orm.Model):
    _inherit = 'ir.sequence'
    def _interpolation_dict(self):
        res = super(ir_sequence, self)._interpolation_dict()
        res['month1before']=datetime.strftime( - relativedelta(months=1), '%m')
        return res

2014-09-14 17:17 GMT+01:00 <>:
You're mail will be quarantined and examined before delivery.

Post to:


Yassine TEIMI

Ingénieur SI technico-fonctionnel

TEL : 06-27333078