研究下载模板和列宽问题

This commit is contained in:
mgw
2023-11-01 09:01:49 +08:00
parent db0c83bd2b
commit 869b389420
7 changed files with 210 additions and 6 deletions

View File

@@ -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