质量模块和库存扫码
This commit is contained in:
24
quality_control/report/worksheet_custom_reports.py
Normal file
24
quality_control/report/worksheet_custom_reports.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import api, models
|
||||
|
||||
|
||||
class QualityCustomReport(models.AbstractModel):
|
||||
_name = 'report.quality_control.quality_worksheet'
|
||||
_description = 'Quality Worksheet Report'
|
||||
|
||||
@api.model
|
||||
def _get_report_values(self, docids, data=None):
|
||||
docs = self.env['quality.check'].browse(docids).sudo()
|
||||
|
||||
return {
|
||||
'doc_ids': docids,
|
||||
'doc_model': 'quality.check',
|
||||
'docs': docs,
|
||||
}
|
||||
|
||||
class QualityCustomInternalReport(models.AbstractModel):
|
||||
_name = 'report.quality_control.quality_worksheet_internal'
|
||||
_description = 'Quality Worksheet Internal Report'
|
||||
_inherit = 'report.quality_control.quality_worksheet'
|
||||
Reference in New Issue
Block a user