mirror of
https://github.com/bringout/oca-mrp.git
synced 2026-04-24 22:52:06 +02:00
Initial commit: OCA Mrp packages (117 packages)
This commit is contained in:
commit
277e84fd7a
4403 changed files with 395154 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||
|
||||
from . import account_analytic_line
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
# Copyright 2018-2020 Brainbean Apps (https://brainbeanapps.com)
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class AccountAnalyticLine(models.Model):
|
||||
_inherit = "account.analytic.line"
|
||||
|
||||
def action_timesheet_report_wizard(self):
|
||||
return {
|
||||
"type": "ir.actions.act_window",
|
||||
"res_model": "hr.timesheet.report.wizard",
|
||||
"views": [[False, "form"]],
|
||||
"target": "new",
|
||||
"context": {
|
||||
"default_line_ids": [(6, False, self.ids)],
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue