~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to procurement_report/procurement_batch.py

  • Committer: jf
  • Date: 2014-05-28 13:16:31 UTC
  • mto: This revision was merged to the branch mainline in revision 2187.
  • Revision ID: jfb@tempo-consulting.fr-20140528131631-13qcl8f5h390rmtu
UFTP-244 [FIX] In sync context, do not auto create the link between account.account and account.destination.link for default destination
this link is created by a dedicated sync rule

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
    _inherit = 'ir.cron'
30
30
    
31
31
    _columns = {
32
 
        'name': fields.char(size=64, string='Name'),
 
32
        'name': fields.char(size=64, string='Name', required=True),
33
33
        'type': fields.selection([('standard', 'POs creation Batch (from orders)'), ('rules', 'POs creation Batch (replenishment rules)')], string='Type', required=True),
34
34
        'request_ids': fields.one2many('res.request', 'batch_id', string='Associated Requests', readonly=True),
35
35
        'cron_ids': fields.one2many('ir.cron', 'batch_id', string='Associated Cron tasks'),
60
60
                'interval_number': vals.get('interval_number'),
61
61
                'interval_type': vals.get('interval_type'),
62
62
                'nextcall': vals.get('nextcall'),
 
63
                'doall': False,
63
64
                'numbercall': -1,
64
65
                'batch_id': int(batch_id),
65
66
                'model': 'procurement.order',