Skip to content

Commit

Permalink
Add parent_task_id field to analytic line
Browse files Browse the repository at this point in the history
  • Loading branch information
tdaron committed Feb 4, 2021
1 parent 05d8ea0 commit d57fb14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions odoo/odoo.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ func CreateTimesheetLine(name string, email string, timesheetCode string, hours
UserId: employee.UserId,
Date: odoo.NewString(date),
Name: odoo.NewString(name),


}

_, err = c.CreateAccountAnalyticLine(&accountAnalyticLine)
Expand Down
1 change: 1 addition & 0 deletions odoo_api_wrapper/account_analytic_line.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type AccountAnalyticLine struct {
UserId *Many2One `xmlrpc:"user_id,omptempty"`
WriteDate *Time `xmlrpc:"write_date,omptempty"`
WriteUid *Many2One `xmlrpc:"write_uid,omptempty"`
ParentId *Many2One `xmlrpc:"parent_task_id,omptempty"`
}

// AccountAnalyticLines represents array of account.analytic.line model.
Expand Down
1 change: 1 addition & 0 deletions odoo_api_wrapper/project_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type ProjectTask struct {
Id *Int `xmlrpc:"id,omptempty"`
Name *String `xmlrpc:"name,omptempty"`
ProjectId *Many2One `xmlrpc:"project_id,omptempty"`
ParentId *Many2One `xmlrpc:"parent_id,omptempty"`
}

// ProjectTasks represents array of project.task model.
Expand Down

0 comments on commit d57fb14

Please sign in to comment.