研究下载模板和列宽问题
This commit is contained in:
@@ -63,6 +63,14 @@ class sf_production_plan(models.Model):
|
||||
# picking_type_id = fields.Many2one('stock.picking.type', 'Operation Type', compute='_compute_orderpoint_id')
|
||||
# move_dest_ids = fields.One2many('stock.move', 'created_production_id', compute='_compute_orderpoint_id')
|
||||
|
||||
@api.model
|
||||
def get_import_templates(self):
|
||||
"""returns the xlsx import template file"""
|
||||
return [{
|
||||
'label': _('导入计划数据'),
|
||||
'template': '/sf_plan/static/src/xlsx/sf_production_plan.xlsx'
|
||||
}]
|
||||
|
||||
@api.model
|
||||
def _compute_orderpoint_id(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user