Files
project-tools/project_timesheet_funding_wish/models/hr_timesheet.py
Stéphan Sainléger 5b9f0d288d [ADD] add `project_timesheet_funding_wish` addon
adds in the timesheet lines:
- ``funding wish`` field: user tells if we want to be paid for the
time spent
- ``treated`` field: tells if the timesheet line has been considered
in internal invoicing process

Task: JOI-13
2022-07-26 10:00:07 +02:00

11 lines
373 B
Python

# -*- coding: utf-8 -*-
from odoo import _, fields, models
class AccountAnalyticLine(models.Model):
_inherit = 'account.analytic.line'
funding_wish = fields.Selection([("free", "Free"),("accepted", "Payment accepted"),("expected", "Payment expected")], string=_("Funding wish"), copy=False)
treated = fields.Boolean(string=_("Treated"), copy=False)