[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
This commit is contained in:
Stéphan Sainléger
2022-07-25 19:38:51 +02:00
parent 863116ffe7
commit 5b9f0d288d
8 changed files with 232 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# -*- 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)