This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rbellanova
committed
Aug 20, 2020
1 parent
cc622f4
commit 2276a49
Showing
20 changed files
with
610 additions
and
576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
# Part of Odoo. See LICENSE file for full copyright and licensing details. | ||
|
||
from . import reports | ||
from . import technical_report | ||
from . import notes | ||
from . import task | ||
from . import qweb_parser | ||
from . import partner | ||
from . import project | ||
from . import res_config | ||
from . import travel_costs | ||
# from . import travel_costs | ||
from . import res_company | ||
from . import account |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
# -*- coding: utf-8 -*- | ||
# Part of Odoo. See LICENSE file for full copyright and licensing details. | ||
|
||
from odoo import fields, models, api | ||
from odoo import api, fields, models | ||
|
||
|
||
class TechnicalReportTravelCosts(models.TransientModel): | ||
class TechnicalReportTravelCosts(models.Model): | ||
|
||
_name = 'technical.report.travel.costs' | ||
|
||
from_km = fields.Float() | ||
to_km =fields.Float() | ||
fixed_cost =fields.Float() | ||
variable_cost=fields.Float() | ||
company_id = fields.Many2one("res.company", string="Technical report") | ||
to_km = fields.Float() | ||
fixed_cost = fields.Float() | ||
variable_cost = fields.Float() | ||
company_id = fields.Many2one("res.company") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
|
||
<template id="technical_reports_external_qweb_document" inherit_id="technical_reports.technical_reports_qweb_document" primary="True"> | ||
<xpath expr="//div[@class='notes']" position="replace"></xpath> | ||
<xpath expr="//table[@name='notes']" position="replace"></xpath> | ||
<xpath expr="//div[@class='notes']" position="replace"/> | ||
<xpath expr="//table[@name='notes']" position="replace"/> | ||
</template> | ||
|
||
<template id="technical_reports_external_qweb"> | ||
<t t-call="report.html_container"> | ||
<t t-call="web.html_container"> | ||
<t t-foreach="docs" t-as="o"> | ||
<t t-call="technical_reports.technical_reports_external_qweb_document" t-lang="o.partner_id.lang"/> | ||
</t> | ||
</t> | ||
</template> | ||
|
||
|
||
</odoo> |
Oops, something went wrong.