-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIG] l10n_pt_account_invoicexpress: black, isort, prettier
- Loading branch information
1 parent
768c081
commit d14b0eb
Showing
8 changed files
with
96 additions
and
106 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="email_template_invoice" model="mail.template"> | ||
<field name="name">InvoiceXpress: Send Invoice by Email</field> | ||
<field name="model_id" ref="account.model_account_move"/> | ||
<field name="subject">Sua Fatura ${object.name | safe}</field> | ||
<field name="email_to">${object.partner_id.email | safe}</field> | ||
<field name="email_cc">${object.env.user.email | safe}</field> | ||
<field name="body_html" type="html"> | ||
<p> | ||
Olá, | ||
<br/> | ||
Enviamos em anexo a fatura ${object.name | safe} | ||
% if object.ref: | ||
relativa à sua encomenda ${object.ref | safe} | ||
% endif | ||
. | ||
<br/> | ||
<br/> | ||
Obrigado | ||
% if user.signature: | ||
<br/> | ||
${user.signature | safe} | ||
% endif | ||
</p> | ||
</field> | ||
<field name="lang">${object.partner_id.lang}</field> | ||
<field name="auto_delete" eval="True"/> | ||
</record> | ||
</data> | ||
<odoo noupdate="1"> | ||
<record id="email_template_invoice" model="mail.template"> | ||
<field name="name">InvoiceXpress: Send Invoice by Email</field> | ||
<field name="model_id" ref="account.model_account_move" /> | ||
<field name="subject">Sua Fatura ${object.name | safe}</field> | ||
<field name="email_to">${object.partner_id.email | safe}</field> | ||
<field name="email_cc">${object.env.user.email | safe}</field> | ||
<field name="body_html" type="html"> | ||
<p> | ||
Olá, | ||
<br /> | ||
Enviamos em anexo a fatura ${object.name | safe} | ||
% if object.ref: | ||
relativa à sua encomenda ${object.ref | safe} | ||
% endif | ||
. | ||
<br /> | ||
<br /> | ||
Obrigado | ||
% if user.signature: | ||
<br /> | ||
${user.signature | safe} | ||
% endif | ||
</p> | ||
</field> | ||
<field name="lang">${object.partner_id.lang}</field> | ||
<field name="auto_delete" eval="True" /> | ||
</record> | ||
</odoo> |
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,22 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
|
||
<record model="ir.ui.view" id="view_account_journal_form"> | ||
<field name="name">Journal Form: add Invoicexpress</field> | ||
<field name="model">account.journal</field> | ||
<field name="inherit_id" ref="account.view_account_journal_form"/> | ||
<field name="inherit_id" ref="account.view_account_journal_form" /> | ||
<field name="arch" type="xml"> | ||
<page name="advanced_settings" position="inside"> | ||
<group | ||
string="Invoicexpress" | ||
attrs="{'invisible': [('type', '!=', 'sale')]}" | ||
> | ||
<field name="invoicexpress_doc_type"/> | ||
<field name="use_invoicexpress" groupe="base.group_no_one"/> | ||
<field name="invoicexpress_doc_type" /> | ||
<field name="use_invoicexpress" groupe="base.group_no_one" /> | ||
</group> | ||
</page> | ||
|
||
</field> | ||
</record> | ||
|
||
</odoo> |
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
95 changes: 44 additions & 51 deletions
95
l10n_pt_account_invoicexpress/views/res_config_settings.xml
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,58 +1,51 @@ | ||
<odoo> | ||
<data noupdate="1"> | ||
<record id="res_config_settings_view_form" model="ir.ui.view"> | ||
<field name="name">res.config.settings.view.form.invoicexpress</field> | ||
<field name="priority" eval="200"/> | ||
<field name="model">res.config.settings</field> | ||
<field name="inherit_id" ref="base_setup.res_config_settings_view_form"/> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//div[@name='integration']" position="after"> | ||
<div name="l10n_pt_account_invoicexpress"> | ||
<h2>InvoiceXpress</h2> | ||
<div class="row mt16 o_settings_container"> | ||
<div class="col-xs-12 col-md-6 o_setting_box"> | ||
<div class="o_setting_right_pane"> | ||
<a | ||
href="https://www.app.invoicexpress.com/users/api" | ||
target="_blank" | ||
> | ||
<i | ||
class="fa fa-arrow-right" | ||
<odoo noupdate="1"> | ||
<record id="res_config_settings_view_form" model="ir.ui.view"> | ||
<field name="name">res.config.settings.view.form.invoicexpress</field> | ||
<field name="priority" eval="200" /> | ||
<field name="model">res.config.settings</field> | ||
<field name="inherit_id" ref="base_setup.res_config_settings_view_form" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//div[@name='integration']" position="after"> | ||
<div name="l10n_pt_account_invoicexpress"> | ||
<h2>InvoiceXpress</h2> | ||
<div class="row mt16 o_settings_container"> | ||
<div class="col-xs-12 col-md-6 o_setting_box"> | ||
<div class="o_setting_right_pane"> | ||
<a | ||
href="https://www.app.invoicexpress.com/users/api" | ||
target="_blank" | ||
> | ||
<i class="fa fa-arrow-right" /> | ||
Generate an API key | ||
</a> | ||
<div class="content-group" name="invoicexpress_options"> | ||
<div class="mt16"> | ||
<label | ||
for="invoicexpress_account_name" | ||
string="InvoiceXpress Account Name" | ||
/> | ||
Generate an API key | ||
</a> | ||
<div | ||
class="content-group" | ||
name="invoicexpress_options" | ||
> | ||
<div class="mt16"> | ||
<label | ||
for="invoicexpress_account_name" | ||
string="InvoiceXpress Account Name" | ||
/> | ||
<field name="invoicexpress_account_name"/> | ||
</div> | ||
<div class="mt16"> | ||
<label | ||
for="invoicexpress_api_key" | ||
string="InvoiceXpress API Key" | ||
/> | ||
<field name="invoicexpress_api_key"/> | ||
</div> | ||
<div class="mt16"> | ||
<label | ||
for="invoicexpress_template_id" | ||
string="InvoiceXpress Invoice Email Template" | ||
/> | ||
<field name="invoicexpress_template_id"/> | ||
</div> | ||
<field name="invoicexpress_account_name" /> | ||
</div> | ||
<div class="mt16"> | ||
<label | ||
for="invoicexpress_api_key" | ||
string="InvoiceXpress API Key" | ||
/> | ||
<field name="invoicexpress_api_key" /> | ||
</div> | ||
<div class="mt16"> | ||
<label | ||
for="invoicexpress_template_id" | ||
string="InvoiceXpress Invoice Email Template" | ||
/> | ||
<field name="invoicexpress_template_id" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
</data> | ||
</div> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |