质量模块和库存扫码

This commit is contained in:
qihao.gong@jikimo.com
2023-07-24 11:42:15 +08:00
parent 8d024ad625
commit 3c89404543
228 changed files with 142596 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/** @odoo-module */
import { KanbanRenderer } from '@web/views/kanban/kanban_renderer';
import { useService } from '@web/core/utils/hooks';
const { onWillStart } = owl;
export class StockBarcodeKanbanRenderer extends KanbanRenderer {
setup() {
super.setup(...arguments);
const user = useService('user');
this.display_protip = this.props.list.resModel === 'stock.picking';
onWillStart(async () => {
this.packageEnabled = await user.hasGroup('stock.group_tracking_lot');
});
}
}
StockBarcodeKanbanRenderer.template = 'stock_barcode.KanbanRenderer';