@@ -113,20 +134,12 @@
- 坯料编号:
-
-
-
- 坯料名称:
-
+ 名称:
+
数量:
-
-
-
- 材质:
-
+
状态:
@@ -142,19 +155,135 @@
-
- 坯料预制计划
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 制造订单生产计划
ir.actions.act_window
- sf.pl.plan
- tree,form,gantt
+ sf.production.plan
+ gantt,tree,form
+
+
+
+
+ 制造订单生产计划
+ ir.actions.act_window
+ sf.production.plan
+ tree,gantt,form
+
+
+
+
+
+
+
+
+ 制造订单
+ ir.actions.act_window
+ mrp.production
+ tree,form
+
+
+
+ 报价单
+ ir.actions.act_window
+ sale.order
+ tree,form
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/web_gantt/static/src/js/gantt_renderer.js b/web_gantt/static/src/js/gantt_renderer.js
index 0627dd88..4ef5b845 100644
--- a/web_gantt/static/src/js/gantt_renderer.js
+++ b/web_gantt/static/src/js/gantt_renderer.js
@@ -637,8 +637,10 @@ export default AbstractRenderer.extend(WidgetAdapterMixin, {
case 'day':
return focusDate.format('dddd, MMMM DD, YYYY');
case 'week':
- const dateStart = focusDate.clone().startOf('week').format('DD MMMM YYYY');
- const dateEnd = focusDate.clone().endOf('week').format('DD MMMM YYYY');
+ // const dateStart = focusDate.clone().startOf('week').format('DD MMMM YYYY');
+ const dateStart = focusDate.clone().startOf('week').format('YYYY MMMM DD ');
+ // const dateEnd = focusDate.clone().endOf('week').format('DD MMMM YYYY');
+ const dateEnd = focusDate.clone().endOf('week').format('YYYY MMMM DD ');
return _.str.sprintf('%s - %s', dateStart, dateEnd);
case 'month':
return focusDate.format('MMMM YYYY');
diff --git a/web_gantt/static/src/js/gantt_view.js b/web_gantt/static/src/js/gantt_view.js
index 10c0fa83..5bc085b7 100644
--- a/web_gantt/static/src/js/gantt_view.js
+++ b/web_gantt/static/src/js/gantt_view.js
@@ -112,7 +112,7 @@ const GanttView = AbstractView.extend({
allowedScales = Object.keys(this.SCALES);
}
- const scale = params.context.default_scale || arch.attrs.default_scale || 'month';
+ const scale = params.context.default_scale || arch.attrs.default_scale || 'week';
const initialDate = moment(params.context.initialDate || params.initialDate || arch.attrs.initial_date || new Date());
const offset = arch.attrs.offset;
if (offset && scale) {
diff --git a/web_gantt/static/src/xml/web_gantt.xml b/web_gantt/static/src/xml/web_gantt.xml
index aa1e13bb..264a37ae 100644
--- a/web_gantt/static/src/xml/web_gantt.xml
+++ b/web_gantt/static/src/xml/web_gantt.xml
@@ -69,7 +69,7 @@