Files
project-tools/project_timesheet_funding_wish/models/hr_timesheet.py
Stéphan Sainléger 56f757505b [ADD] create `project_timesheet_funding_wish` add-on
Add timesheet line fields:
- ``funding_wish`` to inform about if the user expects a payment
for the registered time.
- ``treated`` to keep track if the timesheet line funding wish has
been taken into account.

Task: JOI-13
Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
2022-08-25 17:27:34 +02:00

17 lines
420 B
Python

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)