mirror of
https://github.com/bringout/oca-ocb-accounting.git
synced 2026-04-21 07:02:00 +02:00
19.0 vanilla
This commit is contained in:
parent
ba20ce7443
commit
768b70e05e
2357 changed files with 1057103 additions and 712486 deletions
|
|
@ -12,8 +12,7 @@
|
|||
<field name="name">Settings</field>
|
||||
<field name="res_model">res.config.settings</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="target">inline</field>
|
||||
<field name="context" eval="{'module': 'general_settings', 'bin_size': False}"/>
|
||||
<field name="context">{'module': 'general_settings', 'bin_size': False}</field>
|
||||
</record>
|
||||
|
||||
<!-- TAGS FOR CASH FLOW STATEMENT DIRECT METHOD -->
|
||||
|
|
@ -37,49 +36,43 @@
|
|||
<record id="account_payment_term_immediate" model="account.payment.term">
|
||||
<field name="name">Immediate Payment</field>
|
||||
<field name="note">Payment terms: Immediate Payment</field>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0})]"/>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 0})]"/>
|
||||
</record>
|
||||
|
||||
<record id="account_payment_term_15days" model="account.payment.term">
|
||||
<field name="name">15 Days</field>
|
||||
<field name="note">Payment terms: 15 Days</field>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 15})]"/>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 15})]"/>
|
||||
</record>
|
||||
|
||||
<record id="account_payment_term_21days" model="account.payment.term">
|
||||
<field name="name">21 Days</field>
|
||||
<field name="note">Payment terms: 21 Days</field>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 21})]"/>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 21})]"/>
|
||||
</record>
|
||||
|
||||
<record id="account_payment_term_30days" model="account.payment.term">
|
||||
<field name="name">30 Days</field>
|
||||
<field name="note">Payment terms: 30 Days</field>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 30})]"/>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 30})]"/>
|
||||
</record>
|
||||
|
||||
<record id="account_payment_term_45days" model="account.payment.term">
|
||||
<field name="name">45 Days</field>
|
||||
<field name="note">Payment terms: 45 Days</field>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 45})]"/>
|
||||
</record>
|
||||
|
||||
<record id="account_payment_term_2months" model="account.payment.term">
|
||||
<field name="name">2 Months</field>
|
||||
<field name="note">Payment terms: 2 Months</field>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'months': 2})]"/>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 45})]"/>
|
||||
</record>
|
||||
|
||||
<record id="account_payment_term_end_following_month" model="account.payment.term">
|
||||
<field name="name">End of Following Month</field>
|
||||
<field name="note">Payment terms: End of Following Month</field>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'months': 1, 'end_month': True})]"/>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'delay_type':'days_after_end_of_next_month', 'nb_days': 0})]"/>
|
||||
</record>
|
||||
|
||||
<record id="account_payment_term_30_days_end_month_the_10" model="account.payment.term">
|
||||
<field name="name">30 days End of Month on the 10th</field>
|
||||
<field name="note">Payment terms: 30 days End of Month on the 10th</field>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'balance', 'value_amount': 0.0, 'months': 1, 'end_month': True, 'days_after': 10})]"/>
|
||||
<field name="name">10 Days after End of Next Month</field>
|
||||
<field name="note">Payment terms: 10 Days after End of Next Month</field>
|
||||
<field name="line_ids" eval="[Command.clear(), Command.create({'value': 'percent', 'value_amount': 100.0, 'delay_type':'days_after_end_of_next_month', 'nb_days': 10})]"/>
|
||||
</record>
|
||||
|
||||
<record id="account_payment_term_advance_60days" model="account.payment.term">
|
||||
|
|
@ -87,29 +80,28 @@
|
|||
<field name="note">Payment terms: 30% Now, Balance 60 Days</field>
|
||||
<field name="line_ids" eval="[
|
||||
Command.clear(),
|
||||
Command.create({'value': 'percent', 'value_amount': 30.0, 'days': 0}),
|
||||
Command.create({'value': 'balance', 'value_amount': 0.0, 'days': 60})]"/>
|
||||
Command.create({'value': 'percent', 'value_amount': 30.0, 'nb_days': 0}),
|
||||
Command.create({'value': 'percent', 'value_amount': 70.0, 'nb_days': 60})]"/>
|
||||
</record>
|
||||
|
||||
<record id="account_payment_term_30days_early_discount" model="account.payment.term">
|
||||
<field name="name">2/7 Net 30</field>
|
||||
<field name="note">Payment terms: 30 Days, 2% Early Payment Discount under 7 days</field>
|
||||
<field name="display_on_invoice">True</field>
|
||||
<field name="early_discount">True</field>
|
||||
<field name="discount_percentage">2</field>
|
||||
<field name="discount_days">7</field>
|
||||
<field name="line_ids" eval="[
|
||||
Command.clear(),
|
||||
Command.create({'value': 'balance', 'days': 30, 'discount_percentage': 2, 'discount_days': 7})]"/>
|
||||
Command.create({'value': 'percent', 'value_amount': 100.0, 'nb_days': 30})]"/>
|
||||
</record>
|
||||
|
||||
<!--
|
||||
Account Statement Sequences
|
||||
-->
|
||||
<record id="sequence_reconcile_seq" model="ir.sequence">
|
||||
<field name="name">Account reconcile sequence</field>
|
||||
<field name="code">account.reconcile</field>
|
||||
<field name="prefix">A</field>
|
||||
<field eval="1" name="number_next"/>
|
||||
<field eval="1" name="number_increment"/>
|
||||
<field eval="False" name="company_id"/>
|
||||
<record id="account_payment_term_90days_on_the_10th" model="account.payment.term">
|
||||
<field name="name">90 days, on the 10th</field>
|
||||
<field name="note">Payment terms: 90 days, on the 10th</field>
|
||||
<field name="line_ids" eval="[
|
||||
Command.clear(),
|
||||
Command.create({'value': 'percent', 'value_amount': 100.0, 'delay_type': 'days_end_of_month_on_the','nb_days': 90, 'days_next_month': 10})]"/>
|
||||
</record>
|
||||
|
||||
<!-- Account-related subtypes for messaging / Chatter -->
|
||||
|
|
@ -135,29 +127,18 @@
|
|||
|
||||
<!-- Payment methods -->
|
||||
<record id="account_payment_method_manual_in" model="account.payment.method">
|
||||
<field name="name">Manual</field>
|
||||
<field name="name">Manual Payment</field>
|
||||
<field name="code">manual</field>
|
||||
<field name="payment_type">inbound</field>
|
||||
</record>
|
||||
<record id="account_payment_method_manual_out" model="account.payment.method">
|
||||
<field name="name">Manual</field>
|
||||
<field name="name">Manual Payment</field>
|
||||
<field name="code">manual</field>
|
||||
<field name="payment_type">outbound</field>
|
||||
</record>
|
||||
|
||||
<!-- Account Tax Group -->
|
||||
<record id="tax_group_taxes" model="account.tax.group">
|
||||
<field name="name">Taxes</field>
|
||||
<field name="sequence">0</field>
|
||||
</record>
|
||||
|
||||
<!-- Partner Trust Property -->
|
||||
<record forcecreate="True" id="default_followup_trust" model="ir.property">
|
||||
<field name="name">Followup Trust Property</field>
|
||||
<field name="fields_id" search="[('model', '=', 'res.partner'), ('name', '=', 'trust')]"/>
|
||||
<field name="value">normal</field>
|
||||
<field name="type">selection</field>
|
||||
</record>
|
||||
<function model="ir.default" name="set" eval="('res.partner', 'trust', 'normal')"/>
|
||||
|
||||
<!-- Share Button in action menu -->
|
||||
<record id="model_account_move_action_share" model="ir.actions.server">
|
||||
|
|
|
|||
|
|
@ -6,17 +6,19 @@
|
|||
<record id="generic_tax_report" model="account.report">
|
||||
<field name="name">Generic Tax report</field>
|
||||
<field name="filter_multi_company">tax_units</field>
|
||||
<field name="filter_fiscal_position" eval="1"/>
|
||||
<field name="default_opening_date_filter">last_month</field>
|
||||
<field name="allow_foreign_vat" eval="1"/>
|
||||
<field name="default_opening_date_filter">previous_return_period</field>
|
||||
<field name="only_tax_exigible" eval="True"/>
|
||||
<field name="column_ids">
|
||||
<record id="generic_tax_report_column_net" model="account.report.column">
|
||||
<field name="name">NET</field>
|
||||
<field name="name">Net</field>
|
||||
<field name="expression_label">net</field>
|
||||
<field name="figure_type">monetary</field>
|
||||
</record>
|
||||
<record id="generic_tax_report_column_tax" model="account.report.column">
|
||||
<field name="name">TAX</field>
|
||||
<field name="name">Tax</field>
|
||||
<field name="expression_label">tax</field>
|
||||
<field name="figure_type">monetary</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -27,12 +29,14 @@
|
|||
<field name="availability_condition">always</field>
|
||||
<field name="column_ids">
|
||||
<record id="generic_tax_report_account_tax_column_net" model="account.report.column">
|
||||
<field name="name">NET</field>
|
||||
<field name="name">Net</field>
|
||||
<field name="expression_label">net</field>
|
||||
<field name="figure_type">monetary</field>
|
||||
</record>
|
||||
<record id="generic_tax_report_account_tax_column_tax" model="account.report.column">
|
||||
<field name="name">TAX</field>
|
||||
<field name="name">Tax</field>
|
||||
<field name="expression_label">tax</field>
|
||||
<field name="figure_type">monetary</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
|
|
@ -43,12 +47,14 @@
|
|||
<field name="availability_condition">always</field>
|
||||
<field name="column_ids">
|
||||
<record id="generic_tax_report_tax_account_column_net" model="account.report.column">
|
||||
<field name="name">NET</field>
|
||||
<field name="name">Net</field>
|
||||
<field name="expression_label">net</field>
|
||||
<field name="figure_type">monetary</field>
|
||||
</record>
|
||||
<record id="generic_tax_report_tax_account_column_tax" model="account.report.column">
|
||||
<field name="name">TAX</field>
|
||||
<field name="name">Tax</field>
|
||||
<field name="expression_label">tax</field>
|
||||
<field name="figure_type">monetary</field>
|
||||
</record>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record id="account_tour" model="web_tour.tour">
|
||||
<field name="name">account_tour</field>
|
||||
<field name="sequence">50</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
@ -15,7 +15,20 @@
|
|||
<div>
|
||||
<p class="tip_title">Tip: No need to print, put in an envelop and post your invoices</p>
|
||||
<p class="tip_content">Use the “<i>Send by Post</i>” option to post invoices automatically. For the cost of a local stamp, we do all the manual work: your invoice will be printed in the right country, put in an envelop and sent by snail mail. Use this feature from the list view to post hundreds of invoices in bulk.</p>
|
||||
<img src="https://download.odoocdn.com/digests/account/static/src/img/invoice-stamps.png" class="illustration_border" />
|
||||
<img src="https://download.odoocdn.com/digests/account/static/src/img/invoice-stamps.png" width="540" class="illustration_border" />
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="digest_tip_account_1" model="digest.tip">
|
||||
<field name="name">Tip: Stop chasing the Documents you need</field>
|
||||
<field name="sequence">3100</field>
|
||||
<field name="group_id" ref="account.group_account_invoice"/>
|
||||
<field name="tip_description" type="html">
|
||||
<div>
|
||||
<p class="tip_title">Tip: Stop chasing the Documents you need</p>
|
||||
<p class="tip_content">Missing a document for a banking statement? Use the Documents apps to request it and let the owner upload it at the right place.</p>
|
||||
<img src="https://download.odoocdn.com/digests/account/static/src/img/18-invoice-request-document.gif" width="540" class="illustration_border"/>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
|
|
|
|||
12
odoo-bringout-oca-ocb-account/account/data/ir_sequence.xml
Normal file
12
odoo-bringout-oca-ocb-account/account/data/ir_sequence.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo noupdate="1">
|
||||
|
||||
<record id="seq_account_payment" model="ir.sequence">
|
||||
<field name="name">Payment</field>
|
||||
<field name="code">account.payment</field>
|
||||
<field name="prefix">PAY</field>
|
||||
<field name="padding">5</field>
|
||||
<field name="company_id" eval="False"/>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -9,7 +9,8 @@
|
|||
<field name="name">Invoice: Sending</field>
|
||||
<field name="model_id" ref="account.model_account_move"/>
|
||||
<field name="email_from">{{ (object.invoice_user_id.email_formatted or object.company_id.email_formatted or user.email_formatted) }}</field>
|
||||
<field name="partner_to">{{ object.partner_id.id }}</field>
|
||||
<field name="partner_to" eval="False"/>
|
||||
<field name="use_default_to" eval="True"/>
|
||||
<field name="subject">{{ object.company_id.name }} Invoice (Ref {{ object.name or 'n/a' }})</field>
|
||||
<field name="description">Sent to customers with their invoices in attachment</field>
|
||||
<field name="body_html" type="html">
|
||||
|
|
@ -17,7 +18,12 @@
|
|||
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
||||
Dear
|
||||
<t t-if="object.partner_id.parent_id">
|
||||
<t t-out="object.partner_id.name or ''">Brandon Freeman</t> (<t t-out="object.partner_id.parent_id.name or ''">Azure Interior</t>),
|
||||
<t t-if="object.partner_id.name">
|
||||
<t t-out="object.partner_id.name">Brandon Freeman</t> (<t t-out="object.partner_id.parent_id.name or ''">Azure Interior</t>),
|
||||
</t>
|
||||
<t t-else="">
|
||||
<t t-out="object.partner_id.parent_id.name or ''">Azure Interior</t>,
|
||||
</t>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<t t-out="object.partner_id.name or ''">Brandon Freeman</t>,
|
||||
|
|
@ -42,21 +48,27 @@
|
|||
Please remit payment at your earliest convenience.
|
||||
<t t-if="object.payment_reference">
|
||||
<br /><br />
|
||||
Please use the following communication for your payment: <span style="font-weight:bold;" t-out="object.payment_reference or ''">INV/2021/05/0005</span>.
|
||||
Please use the following communication for your payment: <strong t-out="object.payment_reference or ''">INV/2021/05/0005</strong>
|
||||
<t t-if="object.partner_bank_id">
|
||||
on the account <strong t-out="object.partner_bank_id.acc_number"/>
|
||||
</t>
|
||||
.
|
||||
</t>
|
||||
</t>
|
||||
<t t-if="hasattr(object, 'timesheet_count') and object.timesheet_count">
|
||||
<br /><br />
|
||||
PS: you can review your timesheets <a t-att-href="'/my/timesheets?search_in=invoice&search=%s' % object.name">from the portal.</a>
|
||||
</t>
|
||||
<br /><br />
|
||||
Do not hesitate to contact us if you have any questions.
|
||||
<t t-if="not is_html_empty(object.invoice_user_id.signature)">
|
||||
<br /><br />
|
||||
<t t-out="object.invoice_user_id.signature or ''">--<br/>Mitchell Admin</t>
|
||||
<div>--<br/><t t-out="object.invoice_user_id.signature or ''">Mitchell Admin</t></div>
|
||||
</t>
|
||||
</p>
|
||||
</div>
|
||||
</field>
|
||||
<field name="report_template" ref="account_invoices"/>
|
||||
<field name="report_name">{{ object._get_report_mail_attachment_filename() }}</field>
|
||||
<field name="lang">{{ object.partner_id.lang }}</field>
|
||||
<field name="report_template_ids" eval="[]"/>
|
||||
<field name="auto_delete" eval="True"/>
|
||||
</record>
|
||||
|
||||
|
|
@ -64,7 +76,8 @@
|
|||
<field name="name">Payment: Payment Receipt</field>
|
||||
<field name="model_id" ref="account.model_account_payment"/>
|
||||
<field name="subject">{{ object.company_id.name }} Payment Receipt (Ref {{ object.name or 'n/a' }})</field>
|
||||
<field name="partner_to">{{ object.partner_id.id }}</field>
|
||||
<field name="partner_to" eval="False"/>
|
||||
<field name="use_default_to" eval="True"/>
|
||||
<field name="description">Sent manually to customer when clicking on 'Send receipt by email' in payment action</field>
|
||||
<field name="body_html" type="html">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
|
|
@ -79,14 +92,12 @@
|
|||
Best regards,
|
||||
<t t-if="not is_html_empty(user.signature)">
|
||||
<br/><br/>
|
||||
<t t-out="user.signature or ''">--<br/>Mitchell Admin</t>
|
||||
<div>--<br/><t t-out="user.signature or ''">Mitchell Admin</t></div>
|
||||
</t>
|
||||
</p>
|
||||
</div>
|
||||
</field>
|
||||
<field name="report_template" ref="account.action_report_payment_receipt"/>
|
||||
<field name="report_name">{{ (object.name or '').replace('/','-') }}</field>
|
||||
<field name="lang">{{ object.partner_id.lang }}</field>
|
||||
<field name="report_template_ids" eval="[(4, ref('account.action_report_payment_receipt'))]"/>
|
||||
<field name="auto_delete" eval="True"/>
|
||||
</record>
|
||||
<!-- Credit note template -->
|
||||
|
|
@ -94,7 +105,8 @@
|
|||
<field name="name">Credit Note: Sending</field>
|
||||
<field name="model_id" ref="account.model_account_move"/>
|
||||
<field name="email_from">{{ (object.invoice_user_id.email_formatted or object.company_id.email_formatted or user.email_formatted) }}</field>
|
||||
<field name="partner_to">{{ object.partner_id.id }}</field>
|
||||
<field name="partner_to" eval="False"/>
|
||||
<field name="use_default_to" eval="True"/>
|
||||
<field name="subject">{{ object.company_id.name }} Credit Note (Ref {{ object.name or 'n/a' }})</field>
|
||||
<field name="description">Sent to customers with the credit note in attachment</field>
|
||||
<field name="body_html" type="html">
|
||||
|
|
@ -124,15 +136,390 @@
|
|||
Do not hesitate to contact us if you have any questions.
|
||||
<t t-if="not is_html_empty(object.invoice_user_id.signature)">
|
||||
<br /><br />
|
||||
<t t-out="object.invoice_user_id.signature or ''">--<br/>Mitchell Admin</t>
|
||||
<div>--<br/><t t-out="object.invoice_user_id.signature or ''">Mitchell Admin</t></div>
|
||||
</t>
|
||||
</p>
|
||||
</div>
|
||||
</field>
|
||||
<field name="report_template" ref="account_invoices"/>
|
||||
<field name="report_name">Credit_note_{{ (object.name or '').replace('/','_') }}{{ object.state == 'draft' and '_draft' or '' }}</field>
|
||||
<field name="lang">{{ object.partner_id.lang }}</field>
|
||||
<field name="report_template_ids" eval="[]"/>
|
||||
<field name="auto_delete" eval="True"/>
|
||||
</record>
|
||||
|
||||
<!-- Self billing invoice template -->
|
||||
<record id="email_template_edi_self_billing_invoice" model="mail.template">
|
||||
<field name="name">Self-billing invoice: Sending</field>
|
||||
<field name="model_id" ref="account.model_account_move"/>
|
||||
<field name="email_from">{{ (object.invoice_user_id.email_formatted or object.company_id.email_formatted or user.email_formatted) }}</field>
|
||||
<field name="partner_to" eval="False"/>
|
||||
<field name="use_default_to" eval="True"/>
|
||||
<field name="subject">{{ object.company_id.name }} Self-billing invoice (Ref {{ object.name or 'n/a' }})</field>
|
||||
<field name="description">Sent to customers with their self-billing invoices in attachment</field>
|
||||
<field name="body_html" type="html">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
||||
Dear
|
||||
<t t-if="object.partner_id.parent_id">
|
||||
<t t-if="object.partner_id.name">
|
||||
<t t-out="object.partner_id.name">Brandon Freeman</t> (<t t-out="object.partner_id.parent_id.name or ''">Azure Interior</t>),
|
||||
</t>
|
||||
<t t-else="">
|
||||
<t t-out="object.partner_id.parent_id.name or ''">Azure Interior</t>,
|
||||
</t>
|
||||
</t>
|
||||
<t t-else="">
|
||||
<t t-out="object.partner_id.name or ''">Brandon Freeman</t>,
|
||||
</t>
|
||||
<br /><br />
|
||||
Here is your
|
||||
<t t-if="object.name">
|
||||
self-billing invoice <span style="font-weight:bold;" t-out="object.name or ''">INV/2021/05/0005</span>
|
||||
</t>
|
||||
<t t-else="">
|
||||
self-billing invoice
|
||||
</t>
|
||||
<t t-if="object.invoice_origin">
|
||||
(with reference: <t t-out="object.invoice_origin or ''">SUB003</t>)
|
||||
</t>
|
||||
amounting in <span style="font-weight:bold;" t-out="format_amount(object.amount_total, object.currency_id) or ''">$ 143,750.00</span>
|
||||
from <t t-out="object.company_id.name or ''">YourCompany</t>.
|
||||
<t t-if="object.payment_state in ('paid', 'in_payment')">
|
||||
This self-billing invoice has already been paid.
|
||||
</t>
|
||||
<t t-if="hasattr(object, 'timesheet_count') and object.timesheet_count">
|
||||
<br /><br />
|
||||
PS: you can review your timesheets <a t-att-href="'/my/timesheets?search_in=invoice&search=%s' % object.name">from the portal.</a>
|
||||
</t>
|
||||
<br /><br />
|
||||
Do not hesitate to contact us if you have any questions.
|
||||
<t t-if="not is_html_empty(object.invoice_user_id.signature)">
|
||||
<br /><br />
|
||||
<div>--<br/><t t-out="object.invoice_user_id.signature or ''">Mitchell Admin</t></div>
|
||||
</t>
|
||||
</p>
|
||||
</div>
|
||||
</field>
|
||||
<field name="report_template_ids" eval="[]"/>
|
||||
<field name="auto_delete" eval="True"/>
|
||||
</record>
|
||||
|
||||
<!-- Self billing credit note template -->
|
||||
<record id="email_template_edi_self_billing_credit_note" model="mail.template">
|
||||
<field name="name">Self-billing credit note: Sending</field>
|
||||
<field name="model_id" ref="account.model_account_move"/>
|
||||
<field name="email_from">{{ (object.invoice_user_id.email_formatted or object.company_id.email_formatted or user.email_formatted) }}</field>
|
||||
<field name="partner_to" eval="False"/>
|
||||
<field name="use_default_to" eval="True"/>
|
||||
<field name="subject">{{ object.company_id.name }} Self-billing credit note (Ref {{ object.name or 'n/a' }})</field>
|
||||
<field name="description">Sent to customers with the self-billing credit note in attachment</field>
|
||||
<field name="body_html" type="html">
|
||||
<div style="margin: 0px; padding: 0px;">
|
||||
<p style="margin: 0px; padding: 0px; font-size: 13px;">
|
||||
Dear
|
||||
<t t-if="object.partner_id.parent_id">
|
||||
<t t-out="object.partner_id.name or ''">Brandon Freeman</t> (<t t-out="object.partner_id.parent_id.name or ''">Azure Interior</t>),
|
||||
</t>
|
||||
<t t-else="">
|
||||
<t t-out="object.partner_id.name or ''">Brandon Freeman</t>,
|
||||
</t>
|
||||
<br /><br />
|
||||
Here is your
|
||||
<t t-if="object.name">
|
||||
self-billing credit note <span style="font-weight:bold;" t-out="object.name or ''">RINV/2021/05/0001</span>
|
||||
</t>
|
||||
<t t-else="">
|
||||
self-billing credit note
|
||||
</t>
|
||||
<t t-if="object.invoice_origin">
|
||||
(with reference: <t t-out="object.invoice_origin or ''">SUB003</t>)
|
||||
</t>
|
||||
amounting in <span style="font-weight:bold;" t-out="format_amount(object.amount_total, object.currency_id) or ''">$ 143,750.00</span>
|
||||
from <t t-out="object.company_id.name or ''">YourCompany</t>.
|
||||
<br /><br />
|
||||
Do not hesitate to contact us if you have any questions.
|
||||
<t t-if="not is_html_empty(object.invoice_user_id.signature)">
|
||||
<br /><br />
|
||||
<div>--<br/><t t-out="object.invoice_user_id.signature or ''">Mitchell Admin</t></div>
|
||||
</t>
|
||||
</p>
|
||||
</div>
|
||||
</field>
|
||||
<field name="report_template_ids" eval="[]"/>
|
||||
<field name="auto_delete" eval="True"/>
|
||||
</record>
|
||||
|
||||
<!-- Invoice mail gateway failed -->
|
||||
<template id="email_template_mail_gateway_failed">
|
||||
<p>
|
||||
Hi,
|
||||
<br/><br/>
|
||||
Your email has been discarded. the e-mail address you have used only accepts new invoices:
|
||||
<ul>
|
||||
<li>For new invoices, please ensure a PDF or electronic invoice file is attached</li>
|
||||
<li>To add information to a previously sent invoice, reply to your "sent" email</li>
|
||||
</ul>
|
||||
For any other question, write to <t t-esc="company_email"/>.
|
||||
<br/>
|
||||
--
|
||||
<br/>
|
||||
<t t-esc="company_name"/>
|
||||
</p>
|
||||
</template>
|
||||
<record id="mail_template_einvoice_notification" model="mail.template">
|
||||
<field name="name">New eInvoices Notification</field>
|
||||
<field name="subject">New Electronic Invoices Received</field>
|
||||
<field name="email_from">{{ object.company_id.email_formatted }}</field>
|
||||
<field name="email_to">{{ object.incoming_einvoice_notification_email }}</field>
|
||||
<field name="use_default_to" eval="False"/>
|
||||
<field name="model_id" ref="account.model_account_journal"/>
|
||||
<field name="auto_delete" eval="True"/>
|
||||
<field name="description">Notification email for newly received eInvoices</field>
|
||||
<field name="body_html" type="html">
|
||||
|
||||
<t t-set="invoices" t-value="ctx.get('einvoices', [])"/>
|
||||
<t t-set="invoice_preview_ids" t-value="','.join([str(i) for i in invoices.ids]) if invoices else ''"/>
|
||||
<t t-set="invoice_count" t-value="len(invoices)"/>
|
||||
<t t-set="MAX_INVOICES_TO_DISPLAY" t-value="5"/>
|
||||
|
||||
<div style="margin: 0px; padding: 0px; font-family:Verdana, Arial,sans-serif; color: #454748;">
|
||||
<table border="0" cellpadding="0" cellspacing="0"
|
||||
style="padding-top: 16px; background-color: #F1F1F1; width: 100%; border-collapse:separate;">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="590"
|
||||
style="background-color: white; border-collapse:separate;">
|
||||
<!-- HEADER -->
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table width="100%" cellpadding="0" cellspacing="0"
|
||||
style="background-color: #875A7B; color: #FFFFFF; font-size: 14px; padding: 14px 0; border-radius: 3px;">
|
||||
<tr>
|
||||
<td align="left" style="padding-left: 16px;">
|
||||
You have received <t t-if="invoice_count > 1">new electronic invoices!</t><t t-else="">a new electronic invoice!</t>
|
||||
</td>
|
||||
<td align="right" style="padding-right: 16px;">
|
||||
<img alt="Odoo" src="/web/static/img/logo_inverse_white_206px.png" style="height: 2em; object-fit: contain;" class="align-baseline w-auto"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- BODY -->
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table width="590" cellpadding="0" cellspacing="0"
|
||||
style="padding: 16px 32px; background-color: white; border-collapse:separate;">
|
||||
<tr>
|
||||
<td style="font-size: 14px;">
|
||||
<h3 style="font-size: 20px; margin-bottom: 20px;">
|
||||
<t t-if="object.company_id.name">
|
||||
Hi <t t-out="object.company_id.name"/>,
|
||||
</t>
|
||||
<t t-else="">
|
||||
Hi,
|
||||
</t>
|
||||
</h3>
|
||||
<p style="margin-top: 12px;">
|
||||
You have recieved <t t-if="invoice_count > 1">new electronic invoices</t><t t-else="">a new electronic invoice</t>!
|
||||
</p>
|
||||
<t t-set="MAX_INVOICES_TO_DISPLAY" t-value="5"/>
|
||||
<t t-foreach="invoices[:MAX_INVOICES_TO_DISPLAY]" t-as="inv">
|
||||
<t t-if="not inv_first">
|
||||
<div style="background-color:#EEEEEE; height:1px; width: 60%; margin: 16px auto; border:none;"></div>
|
||||
</t>
|
||||
<p style="line-height: 1.7em; padding-top: 16px;">
|
||||
<t t-if="inv.name or inv.ref">
|
||||
<span style="font-weight:bold;">Invoice Ref:</span> <t t-out="inv.name or inv.ref"/><br/>
|
||||
</t>
|
||||
<t t-if="inv.partner_id.name">
|
||||
<span style="font-weight:bold;">Vendor:</span> <t t-out="inv.partner_id.name"/><br/>
|
||||
</t>
|
||||
<t t-if="inv.amount_total">
|
||||
<span style="font-weight:bold;">Amount:</span> <t t-out="inv.amount_total" t-options="{'widget': 'monetary', 'display_currency': inv.currency_id or object.company_id.currency_id}"/><br/>
|
||||
</t>
|
||||
<t t-if="inv.invoice_date_due">
|
||||
<span style="font-weight:bold;">Due date:</span> <t t-out="inv.invoice_date_due"/>
|
||||
</t>
|
||||
</p>
|
||||
</t>
|
||||
|
||||
<div style="text-align: center; padding-top: 24px;">
|
||||
<a t-if="invoice_count != 1" t-attf-href="/odoo/accounting/action-account.action_account_moves_email_preview?active_ids={{ invoice_preview_ids }}"
|
||||
target="_blank"
|
||||
t-attf-style="padding: 12px 24px; font-size: 14px; font-weight: bold; color: #FFFFFF; text-decoration: none !important; background-color: #008384; border-radius:3px; display: inline-block;">
|
||||
Consult Invoices
|
||||
</a>
|
||||
<a t-else="" t-attf-href="/odoo/accounting/{{ object.id }}/account.move/{{ invoices.id }}"
|
||||
target="_blank"
|
||||
t-attf-style="padding: 12px 24px; font-size: 14px; font-weight: bold; color: #FFFFFF; text-decoration: none !important; background-color: #008384; border-radius:3px; display: inline-block;">
|
||||
Consult Invoice
|
||||
</a>
|
||||
<p style="font-size: 11px; margin-top: 8px; color: #777;">Time to crunch some numbers</p>
|
||||
</div>
|
||||
<br/>
|
||||
<p style="text-align: center; margin-top: 16px;">
|
||||
If you'd like to unsubscribe from receiving emails for incoming invoices click <a t-attf-href="/my/journal/{{ object.id }}/unsubscribe">here</a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
<record id="mail_template_invoice_subscriber" model="mail.template" forcecreate="1">
|
||||
<field name="name">Journal Notification</field>
|
||||
<field name="model_id" ref="account.model_account_move"/>
|
||||
<field name="subject">{{ object.company_id.name }} - New invoice in {{ object.journal_id.display_name or 'Invoices' }} journal</field>
|
||||
<field name="email_from">{{ object.invoice_user_id.email_formatted or object.company_id.email_formatted or user.email_formatted }}</field>
|
||||
<field name="use_default_to" eval="False"/>
|
||||
<field name="auto_delete" eval="True"/>
|
||||
<field name="body_html" type="html">
|
||||
<t t-set="portal_url" t-value="object.get_portal_url()"/>
|
||||
<t t-set="unsubscribe_url" t-value="ctx.get('unsubscribe_url', False)"/>
|
||||
|
||||
<div style="margin:0; padding:0; color:#2c2431;">
|
||||
<table cellpadding="0" cellspacing="0" border="0" style="width:100%; background:#f7f4f8; padding:40px 0;">
|
||||
<tr>
|
||||
<td align="center">
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="640" style="width:100%; max-width:640px; background:#ffffff; border-radius:16px; overflow:hidden; box-shadow:0 20px 45px rgba(56, 37, 60, 0.12);">
|
||||
<tr>
|
||||
<td colspan="2" style="background:linear-gradient(140deg,#714B67 0%,#8a6381 55%,#bfa8c2 100%); color:#ffffff; padding:38px;">
|
||||
<table cellpadding="0" cellspacing="0" border="0" style="width:100%;">
|
||||
<tr>
|
||||
<td style="font-size:13px; letter-spacing:0.3px; text-transform:uppercase; opacity:0.78;">
|
||||
<t t-if="object.is_sale_document(include_receipts=True)">Outbound Invoice</t>
|
||||
<t t-else="">Incoming Bill</t>
|
||||
</td>
|
||||
<td align="right">
|
||||
<img alt="Odoo" src="/web/static/img/logo_inverse_white_206px.png" style="height:30px; width:92px; object-fit:contain;"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding-top:22px; font-size:26px; line-height:1.45; font-weight:600; color:#ffffff;">
|
||||
New invoice in <t t-out="object.journal_id.display_name"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding-top:18px; font-size:14px; opacity:0.85; line-height:1.6; color:#ffffff;">
|
||||
A new invoice was created in <t t-out="object.journal_id.display_name"/> journal of <t t-out="object.company_id.name"/>!
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:34px 38px;">
|
||||
<table cellpadding="0" cellspacing="0" border="0" style="width:100%; border-collapse:separate; border-spacing:0 16px;">
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0;">
|
||||
<table cellpadding="0" cellspacing="0" border="0" style="width:100%; background:#fbf7fc; border-radius:16px;">
|
||||
<tr>
|
||||
<td style="padding:24px 26px;">
|
||||
<div style="font-size:12px; color:#8d7a92; text-transform:uppercase; letter-spacing:0.45px;">Document</div>
|
||||
<div style="margin-top:8px; font-size:20px; font-weight:600; color:#2c2431; word-break:break-word;">
|
||||
<t t-out="object._get_move_display_name()"/>
|
||||
</div>
|
||||
<t t-if="object.ref">
|
||||
<div style="margin-top:6px; color:#7f6c84;">Ref: <t t-out="object.ref"/></div>
|
||||
</t>
|
||||
</td>
|
||||
<t t-if="not object.currency_id.is_zero(object.amount_total)">
|
||||
<td style="padding:24px 26px; border-left:1px solid #efe6f3;" align="right">
|
||||
<div style="font-size:12px; color:#8d7a92; text-transform:uppercase; letter-spacing:0.45px;">Total</div>
|
||||
<div style="margin-top:8px; font-size:22px; font-weight:600; color:#2c2431;">
|
||||
<t t-out="format_amount(object.amount_total, object.currency_id)"/>
|
||||
</div>
|
||||
</td>
|
||||
</t>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="padding:0;">
|
||||
<table cellpadding="0" cellspacing="0" border="0" style="width:100%; margin-top:18px;">
|
||||
<tr>
|
||||
<td style="padding:0;">
|
||||
<div style="display:flex; flex-wrap:wrap; gap:12px; justify-content:flex-start;">
|
||||
<t t-if="object.partner_id">
|
||||
<div style="flex:0 1 180px; min-width:160px; background:#fff; border:1px solid #efe6f3; border-radius:12px; padding:12px 16px;">
|
||||
<div style="font-size:12px; color:#8d7a92; text-transform:uppercase; letter-spacing:0.45px;">Partner</div>
|
||||
<div style="margin-top:6px; font-size:15px; font-weight:500; color:#2c2431; word-break:break-word;">
|
||||
<t t-out="object.partner_id.display_name"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
<div style="flex:0 1 150px; min-width:140px; background:#fff; border:1px solid #efe6f3; border-radius:12px; padding:12px 16px;">
|
||||
<div style="font-size:12px; color:#8d7a92; text-transform:uppercase; letter-spacing:0.45px;">Invoice Date</div>
|
||||
<div style="margin-top:6px; font-size:15px; color:#2c2431;">
|
||||
<t t-out="format_date(object.invoice_date or object.date)"/>
|
||||
</div>
|
||||
</div>
|
||||
<t t-if="object.invoice_date_due">
|
||||
<div style="flex:0 1 150px; min-width:140px; background:#fff; border:1px solid #efe6f3; border-radius:12px; padding:12px 16px;">
|
||||
<div style="font-size:12px; color:#8d7a92; text-transform:uppercase; letter-spacing:0.45px;">Due Date</div>
|
||||
<div style="margin-top:6px; font-size:15px; color:#2c2431;">
|
||||
<t t-out="format_date(object.invoice_date_due)"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="object.payment_state in ('paid', 'in_payment')">
|
||||
<div style="flex:0 1 180px; min-width:160px; background:#fff; border:1px solid #efe6f3; border-radius:12px; padding:12px 16px;">
|
||||
<div style="font-size:12px; color:#8d7a92; text-transform:uppercase; letter-spacing:0.45px;">Payment Status</div>
|
||||
<div style="margin-top:6px; font-size:15px; color:#2c2431; text-transform:capitalize;">
|
||||
This invoice is already paid
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="object.currency_id != object.company_currency_id">
|
||||
<div style="flex:0 1 150px; min-width:140px; background:#fff; border:1px solid #efe6f3; border-radius:12px; padding:12px 16px;">
|
||||
<div style="font-size:12px; color:#8d7a92; text-transform:uppercase; letter-spacing:0.45px;">Currency</div>
|
||||
<div style="margin-top:6px; font-size:15px; color:#2c2431;">
|
||||
<t t-out="object.currency_id.display_name"/>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<div style="margin:18px 0 0; padding:18px 22px; background:#f9f2f9; border-radius:12px; border:1px solid #eadff0; font-size:13px; color:#6f5c73; line-height:1.6;">
|
||||
<strong style="color:#2c2431;">Files included:</strong> the original document(s) are attached for your convenience.
|
||||
</div>
|
||||
|
||||
<div style="margin-top:32px; text-align:center;" t-if="object.move_type != 'in_invoice'">
|
||||
<a t-if="portal_url" t-attf-href="{{ portal_url }}"
|
||||
style="display:inline-block; margin:0 10px 14px; padding:13px 30px; min-width:210px; background:linear-gradient(135deg,#714B67 0%,#9b77a3 100%); color:#FFFFFF; text-decoration:none; border-radius:12px; font-weight:600; font-size:14px;"
|
||||
target="_blank">
|
||||
View on Portal
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<p style="margin:28px 0 0; font-size:12px; color:#8f8596; text-align:center;">
|
||||
You receive this message because you are listed as a watcher on
|
||||
<strong t-out="object.journal_id.display_name or 'this journal'"/>.
|
||||
<span style="display:block; margin:18px auto; height:1px; max-width:420px; background:#ece3ed;"></span>
|
||||
<t t-if="unsubscribe_url">
|
||||
Prefer to stop receiving these? <a t-attf-href="{{ unsubscribe_url }}" style="color:#8f8596; text-decoration:underline;" target="_blank">Unsubscribe here</a>.
|
||||
</t>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,79 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<!-- ONBOARDING STEPS -->
|
||||
<!-- INVOICING -->
|
||||
<record id="onboarding_onboarding_step_company_data" model="onboarding.onboarding.step">
|
||||
<field name="title">Set Company Data</field>
|
||||
<field name="description">Set your company's data for documents header/footer.</field>
|
||||
<field name="button_text">Let's start!</field>
|
||||
<field name="done_text">Looks great!</field>
|
||||
<field name="panel_step_open_action_name">action_open_step_company_data</field>
|
||||
<field name="step_image" type="base64" file="base/static/img/onboarding_company-data.png"></field>
|
||||
<field name="step_image_filename">onboarding_company-data.png</field>
|
||||
<field name="step_image_alt">Onboarding Company Data</field>
|
||||
<field name="sequence">1</field>
|
||||
</record>
|
||||
|
||||
<record id="onboarding_onboarding_step_base_document_layout" model="onboarding.onboarding.step">
|
||||
<field name="title">Documents Layout</field>
|
||||
<field name="description">Customize the look of your documents.</field>
|
||||
<field name="button_text">Customize</field>
|
||||
<field name="done_text">Looks great!</field>
|
||||
<field name="panel_step_open_action_name">action_open_step_base_document_layout</field>
|
||||
<field name="step_image" type="base64" file="base/static/img/onboarding_quotation-layout.png"></field>
|
||||
<field name="step_image_filename">onboarding_quotation-layout.png</field>
|
||||
<field name="step_image_alt">Onboarding Documents Layout</field>
|
||||
<field name="sequence">3</field>
|
||||
</record>
|
||||
|
||||
<!-- DASHBOARD -->
|
||||
<record id="onboarding_onboarding_step_fiscal_year" model="onboarding.onboarding.step">
|
||||
<field name="title">Set Periods</field>
|
||||
<field name="description">Define your fiscal years & tax returns periodicity.</field>
|
||||
<field name="button_text">Configure</field>
|
||||
<field name="done_text">Step completed!</field>
|
||||
<field name="panel_step_open_action_name">action_open_step_fiscal_year</field>
|
||||
<field name="step_image" type="base64" file="base/static/img/onboarding_accounting-periods.png"></field>
|
||||
<field name="step_image_filename">onboarding_accounting-periods.png</field>
|
||||
<field name="step_image_alt">Onboarding Accounting Periods</field>
|
||||
<field name="sequence">1</field>
|
||||
</record>
|
||||
|
||||
<record id="onboarding_onboarding_step_chart_of_accounts" model="onboarding.onboarding.step">
|
||||
<field name="title">Review Chart of Accounts</field>
|
||||
<field name="description">Set up your chart of accounts and record initial balances.</field>
|
||||
<field name="button_text">Review Accounts</field>
|
||||
<field name="done_text">Chart of accounts set!</field>
|
||||
<field name="panel_step_open_action_name">action_open_step_chart_of_accounts</field>
|
||||
<field name="step_image" type="base64" file="base/static/img/onboarding_chart-of-accounts.png"></field>
|
||||
<field name="step_image_filename">onboarding_chart-of-accounts.png</field>
|
||||
<field name="step_image_alt">Onboarding Bank Account</field>
|
||||
<field name="sequence">4</field>
|
||||
</record>
|
||||
|
||||
<!-- WITHOUT PANEL -->
|
||||
<record id="onboarding_onboarding_step_sales_tax" model="onboarding.onboarding.step">
|
||||
<field name="title">Taxes</field>
|
||||
<!-- Fields values used if/when added in a panel within other modules -->
|
||||
<field name="description">Choose a default sales tax for your products.</field>
|
||||
<field name="button_text">Set taxes</field>
|
||||
<field name="done_text">Step Completed!</field>
|
||||
<field name="panel_step_open_action_name">action_open_step_sales_tax</field>
|
||||
<field name="step_image" type="base64" file="base/static/img/onboarding_puzzle.png"></field>
|
||||
<field name="step_image_filename">onboarding_puzzle.png</field>
|
||||
<field name="step_image_alt">Onboarding Bank Account</field>
|
||||
<field name="sequence">100</field> <!-- after "Online Payment" -->
|
||||
</record>
|
||||
|
||||
<record id="onboarding_onboarding_account_dashboard" model="onboarding.onboarding">
|
||||
<field name="name">Account Dashboard Onboarding</field>
|
||||
<field name="step_ids" eval="[
|
||||
Command.link(ref('account.onboarding_onboarding_step_company_data')),
|
||||
Command.link(ref('account.onboarding_onboarding_step_fiscal_year')),
|
||||
Command.link(ref('account.onboarding_onboarding_step_chart_of_accounts')),
|
||||
]"/>
|
||||
<field name="route_name">account_dashboard</field>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<data noupdate="1">
|
||||
<record id="europe_vat" model="res.country.group">
|
||||
<field name="name">European Union VAT</field>
|
||||
<field name="code">EU-VAT</field>
|
||||
<field name="country_ids" eval="[Command.set([
|
||||
ref('base.at'),ref('base.be'),ref('base.bg'),ref('base.hr'),ref('base.cy'),
|
||||
ref('base.cz'),ref('base.dk'),ref('base.ee'),ref('base.fi'),ref('base.fr'),
|
||||
ref('base.de'),ref('base.gr'),ref('base.hu'),ref('base.ie'),ref('base.it'),
|
||||
ref('base.lv'),ref('base.lt'),ref('base.lu'),ref('base.mt'),ref('base.nl'),
|
||||
ref('base.pl'),ref('base.pt'),ref('base.ro'),ref('base.sk'),ref('base.si'),
|
||||
ref('base.es'),ref('base.se')])]"/>
|
||||
<field name="exclude_state_ids" eval="[Command.set([
|
||||
ref('base.state_es_ce'), ref('base.state_es_ml'),
|
||||
ref('base.state_es_tf'), ref('base.state_es_gc'),
|
||||
ref('base.state_nl_bq1'), ref('base.state_nl_bq2'),
|
||||
ref('base.state_nl_bq3'),
|
||||
])]"/>
|
||||
</record>
|
||||
|
||||
<record id="intrastat" model="res.country.group">
|
||||
<field name="name">Intrastat</field>
|
||||
<field name="code">INTRASTAT</field>
|
||||
<field name="country_ids" eval="[Command.set([
|
||||
ref('base.at'),ref('base.be'),ref('base.bg'),ref('base.hr'),ref('base.cy'),
|
||||
ref('base.cz'),ref('base.dk'),ref('base.ee'),ref('base.fi'),ref('base.fr'),
|
||||
ref('base.de'),ref('base.gr'),ref('base.hu'),ref('base.ie'),ref('base.it'),
|
||||
ref('base.lv'),ref('base.lt'),ref('base.lu'),ref('base.mt'),ref('base.nl'),
|
||||
ref('base.pl'),ref('base.pt'),ref('base.ro'),ref('base.sk'),ref('base.si'),
|
||||
ref('base.es'),ref('base.se'),ref('base.uk'),ref('base.xi'),
|
||||
])]"/>
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
|
|
@ -4,11 +4,19 @@
|
|||
<field name="name">Account: Post draft entries with auto_post enabled and accounting date up to today</field>
|
||||
<field name="interval_number">1</field>
|
||||
<field name="interval_type">days</field>
|
||||
<field name="numbercall">-1</field>
|
||||
<field name="nextcall" eval="(DateTime.now().replace(hour=2, minute=0) + timedelta(days=1)).strftime('%Y-%m-%d %H:%M:%S')" />
|
||||
<field name="doall" eval="False"/>
|
||||
<field name="model_id" ref="model_account_move"/>
|
||||
<field name="code">model._autopost_draft_entries()</field>
|
||||
<field name="state">code</field>
|
||||
</record>
|
||||
|
||||
<record id="ir_cron_account_move_send" model="ir.cron">
|
||||
<field name="name">Send invoices automatically</field>
|
||||
<field name="model_id" ref="model_account_move"/>
|
||||
<field name="state">code</field>
|
||||
<field name="code">model._cron_account_move_send()</field>
|
||||
<field name="user_id" ref="base.user_root"/>
|
||||
<field name="interval_number">1</field>
|
||||
<field name="interval_type">days</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,45 @@
|
|||
"id","name","code","account_type","tag_ids","reconcile","non_trade"
|
||||
"current_assets","Current Assets","1010","asset_current","","False","False"
|
||||
"stock_valuation","Stock Valuation","1101","asset_current","","False","False"
|
||||
"cost_of_production","Cost of Production","1104","asset_current","","True","False"
|
||||
"wip","Work in Progress","1105","asset_current","","True","False"
|
||||
"receivable","Account Receivable","1210","asset_receivable","","True","False"
|
||||
"to_receive_rec","Products to receive","1211","asset_current","","True","False"
|
||||
"owner_current_account","Owner's Current Account","1220","asset_receivable","","True","True"
|
||||
"prepaid_expenses","Prepaid Expenses","1280","asset_current","","False","False"
|
||||
"tax_paid","Tax Paid","1310","asset_current","","False","False"
|
||||
"tax_receivable","Tax Receivable","1320","asset_receivable","","True","True"
|
||||
"prepayments","Prepayments","1410","asset_prepayments","","False","False"
|
||||
"fixed_assets","Fixed Asset","1510","asset_fixed","","False","False"
|
||||
"non_current_assets","Non-current assets","1910","asset_non_current","","False","False"
|
||||
"current_liabilities","Current Liabilities","2010","liability_current","","False","False"
|
||||
"payable","Account Payable","2110","liability_payable","","True","False"
|
||||
"to_receive_pay","Bills to receive","2111","liability_current","","True","False"
|
||||
"deferred_revenue","Deferred Revenue","2120","liability_current","","False","False"
|
||||
"salary_payable","Salary Payable","2300","liability_current","","True","False"
|
||||
"employee_payroll_taxes","Employee Payroll Taxes","2301","liability_current","","True","False"
|
||||
"employer_payroll_taxes","Employer Payroll Taxes","2302","liability_current","","True","False"
|
||||
"tax_received","Tax Received","2510","liability_current","","False","False"
|
||||
"tax_payable","Tax Payable","2520","liability_payable","","True","True"
|
||||
"non_current_liabilities","Non-current Liabilities","2910","liability_non_current","","False","False"
|
||||
"capital","Capital","3010","equity","","False","False"
|
||||
"dividends","Dividends","3020","equity","","False","False"
|
||||
"income","Product Sales","4000","income","account.account_tag_operating","False","False"
|
||||
"income_currency_exchange","Foreign Exchange Gain","4410","income","account.account_tag_financing","False","False"
|
||||
"cash_diff_income","Cash Difference Gain","4420","income","account.account_tag_investing","False","False"
|
||||
"cash_discount_loss","Cash Discount Loss","4430","expense","","False","False"
|
||||
"other_income","Other Income","4500","income_other","","False","False"
|
||||
"cost_of_goods_sold","Cost of Goods Sold","5000","expense_direct_cost","account.account_tag_operating","False","False"
|
||||
"expense","Expenses","6000","expense","account.account_tag_operating","False","False"
|
||||
"stock_variation","Stock Variation","6100","expense","","False","False"
|
||||
"expense_invest","Purchase of Equipments","6110","expense","account.account_tag_investing","False","False"
|
||||
"expense_rent","Rent","6120","expense","account.account_tag_investing","False","False"
|
||||
"expense_finance","Bank Fees","6200","expense","account.account_tag_financing","False","False"
|
||||
"expense_salary","Salary Expenses","6300","expense","account.account_tag_operating","False","False"
|
||||
"expense_currency_exchange","Foreign Exchange Loss","6410","expense","account.account_tag_financing","False","False"
|
||||
"cash_diff_expense","Cash Difference Loss","6420","expense","account.account_tag_investing","False","False"
|
||||
"cash_discount_gain","Cash Discount Gain","6430","income","","False","False"
|
||||
"expense_rd","RD Expenses","9610","expense","account.account_tag_investing","False","False"
|
||||
"expense_sales","Sales Expenses","9620","expense","account.account_tag_investing","False","False"
|
||||
"pos_receivable","Account Receivable (PoS)","1013","asset_receivable","","True","False"
|
||||
"credit_card","Credit Card","201100","liability_credit_card","","False","False"
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
"id","name","country_id","auto_apply","sequence"
|
||||
"template_generic_domestic_fiscal_position","Domestic","base.us","True",10
|
||||
"template_generic_export_fiscal_position","Foreign Trade","","True",20
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
"id","name","description","invoice_label","amount","type_tax_use","tax_group_id","repartition_line_ids/document_type","repartition_line_ids/factor_percent","repartition_line_ids/repartition_type","repartition_line_ids/account_id","fiscal_position_ids","original_tax_ids"
|
||||
"sale_tax_template","15%","","","15","sale","tax_group_15","invoice","100","base","","template_generic_domestic_fiscal_position",""
|
||||
"","","","","","","","invoice","100","tax","tax_received","",""
|
||||
"","","","","","","","refund","100","base","","",""
|
||||
"","","","","","","","refund","100","tax","tax_received","",""
|
||||
"purchase_tax_template","15%","","","15","purchase","tax_group_15","invoice","100","base","","template_generic_domestic_fiscal_position",""
|
||||
"","","","","","","","invoice","100","tax","tax_paid","",""
|
||||
"","","","","","","","refund","100","base","","",""
|
||||
"","","","","","","","refund","100","tax","tax_paid","",""
|
||||
"sale_export_tax_template","0% Exports","","","0","sale","tax_group_0","invoice","100","base","","template_generic_export_fiscal_position","sale_tax_template"
|
||||
"","","","","","","","invoice","100","tax","","",""
|
||||
"","","","","","","","refund","100","base","","",""
|
||||
"","","","","","","","refund","100","tax","","",""
|
||||
"purchase_import_tax_template","0% Imports","","","0","purchase","tax_group_0","invoice","100","base","","template_generic_export_fiscal_position","purchase_tax_template"
|
||||
"","","","","","","","invoice","100","tax","","",""
|
||||
"","","","","","","","refund","100","base","","",""
|
||||
"","","","","","","","refund","100","tax","","",""
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
id,name,country_id,tax_payable_account_id,tax_receivable_account_id
|
||||
tax_group_15,Tax 15%,base.us,tax_payable,tax_receivable
|
||||
tax_group_0,Tax 0%,base.us,tax_payable,tax_receivable
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue