File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
spreadsheet_oca/static/src/spreadsheet/bundle Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ const menuChartProps = {
2121 } ,
2222 get menuProps ( ) {
2323 const menu = this . env . model . getters . getChartOdooMenu ( this . props . figureId ) ;
24- var result = {
24+ const result = {
25+ id : `odoo_menu_${ this . props . figureId } ` ,
2526 fieldString : _t ( "Menu Items" ) ,
2627 resModel : "ir.ui.menu" ,
2728 update : this . updateMenu . bind ( this ) ,
@@ -30,7 +31,6 @@ const menuChartProps = {
3031 } ;
3132 if ( menu ) {
3233 result . value = menu . name ;
33- result . id = menu . id ;
3434 }
3535 return result ;
3636 } ,
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ export class OdooPanel extends Component {
1616 }
1717 get menuProps ( ) {
1818 const menu = this . env . model . getters . getChartOdooMenu ( this . props . figureId ) ;
19- var result = {
19+ const result = {
20+ id : `odoo_menu_${ this . props . figureId } ` ,
2021 fieldString : _t ( "Menu Items" ) ,
2122 resModel : "ir.ui.menu" ,
2223 update : this . updateMenu . bind ( this ) ,
@@ -25,7 +26,6 @@ export class OdooPanel extends Component {
2526 } ;
2627 if ( menu ) {
2728 result . value = menu . name ;
28- result . id = menu . id ;
2929 }
3030 return result ;
3131 }
You can’t perform that action at this time.
0 commit comments