-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from dhongu/14.0-factura
modificari la factura din 15
- Loading branch information
Showing
11 changed files
with
2,445 additions
and
119 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,6 +1,7 @@ | ||
# © 2008-2020 Dorin Hongu <dhongu(@)gmail(.)com | ||
# © 2008-2023 Dorin Hongu <dhongu(@)gmail(.)com | ||
# See README.rst file on addons root folder for license details | ||
|
||
from . import res_partner | ||
from . import account_invoice | ||
from . import account_bank_statement | ||
from . import res_config |
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# © 2015-2023 Deltatech | ||
# See README.rst file on addons root folder for license details | ||
|
||
|
||
from odoo import fields, models | ||
|
||
|
||
class ResCompany(models.Model): | ||
_inherit = "res.company" | ||
|
||
email_on_invoice_address = fields.Boolean(string="Show email", help="Show email on invoice address") | ||
phone_on_invoice_address = fields.Boolean(string="Show phone", help="Show phone on invoice address") | ||
marker_on_invoice_address = fields.Boolean(string="Show marker", help="Show marker on invoice address") | ||
|
||
|
||
class ResConfigSettings(models.TransientModel): | ||
_inherit = "res.config.settings" | ||
|
||
email_on_invoice_address = fields.Boolean( | ||
related="company_id.email_on_invoice_address", | ||
string="Show email", | ||
readonly=False, | ||
help="Show taxes values on reception report", | ||
) | ||
phone_on_invoice_address = fields.Boolean( | ||
related="company_id.phone_on_invoice_address", | ||
string="Show phone ", | ||
readonly=False, | ||
help="Show phone on invoice address", | ||
) | ||
marker_on_invoice_address = fields.Boolean( | ||
related="company_id.marker_on_invoice_address", | ||
string="Show marker", | ||
readonly=False, | ||
help="Show marker on invoice address", | ||
) |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
|
||
<record id="res_config_settings_view_form" model="ir.ui.view"> | ||
<field name="name">res.config.settings.view.form.inherit.account</field> | ||
<field name="model">res.config.settings</field> | ||
<field name="inherit_id" ref="account.res_config_settings_view_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//div[@id='invoicing_settings']" position="inside"> | ||
<div class="col-12 col-lg-6 o_setting_box"> | ||
|
||
<div class="o_setting_left_pane"> | ||
<field name="marker_on_invoice_address" /> | ||
</div> | ||
<div class="o_setting_right_pane"> | ||
<label for="marker_on_invoice_address" /> | ||
<div class="text-muted"> | ||
Show marker on invoice address | ||
</div> | ||
</div> | ||
|
||
<div class="o_setting_left_pane"> | ||
<field name="email_on_invoice_address" /> | ||
</div> | ||
<div class="o_setting_right_pane"> | ||
<label for="email_on_invoice_address" /> | ||
<div class="text-muted"> | ||
Show email on invoice address | ||
</div> | ||
</div> | ||
|
||
<div class="o_setting_left_pane"> | ||
<field name="phone_on_invoice_address" /> | ||
</div> | ||
<div class="o_setting_right_pane"> | ||
<label for="phone_on_invoice_address" /> | ||
<div class="text-muted"> | ||
Show phone on invoice address | ||
</div> | ||
</div> | ||
</div> | ||
|
||
</xpath> | ||
</field> | ||
</record> | ||
|
||
</odoo> |
Oops, something went wrong.