Skip to Content
Menu
This question has been flagged
3 Replies
4364 Views

How to inherit any js file in odoo 10 

Avatar
Discard

need more details... front end ? backend ? a name of file ?

Eg for a widget: https://www.odoo.com/documentation/10.0/reference/javascript.html#widgets

Best Answer

Hi,

var x = require('hr_timesheet_sheet.sheet')

x.WeeklyTimesheet.include  // x.WeeklyTimesheet.extend as you wish.

cheers

Avatar
Discard
Author Best Answer

backend exactly for the hr_timesheet_sheet weeklytimesheet widget exactly , i want to add an new column to it

Avatar
Discard