Files
odoo_source/addons/account/wizard/accrued_orders.xml
T
jbw 064edb2223 [IMP] account, sale, purchase: accrued entries from purchase & sales orders.
Accrued liabilities, or accrued expenses, occur when you incur an expense that you haven’t been billed for (aka a debt).
For example, you receive a good now and pay for it later (e.g., when you receive the invoice). The same opposite approach for sales.

Why do accountants need such entries ?
- Accounting must give a fair view of the financial situation of a company. The loss/profit must be booked regarding the effective deliveries of goods/services, not on the paperwork only.
- On a fiscal point of view, if you want to be allowed to deduct a loss from your taxable basis, it has to be in the right period. If you didn't announce it on time, the loss might be rejected by fiscal authorities. Same goes for the augmentation of the taxable basis, it has to reflect real deliveries and not only paperwork.

was Task: 2555642
was PR #73707

Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2021-08-26 11:34:14 +00:00

33 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_account_accrued_orders_wizard" model="ir.ui.view">
<field name="name">account.accrued.orders.wizard.view</field>
<field name="model">account.accrued.orders.wizard</field>
<field name="arch" type="xml">
<form string="Make Accrual Entries">
<field name="company_id" invisible="1"/>
<group>
<div class="alert alert-info" colspan="4" role="alert" attrs="{'invisible': [('display_amount', '!=', True)]}">
There doesn't appear to be anything to invoice for the selected order. However, you can use the amount field to force an accrual entry.
</div>
<group>
<field name="journal_id"/>
<field name="account_id"/>
<field name="amount" attrs="{'invisible': [('display_amount', '!=', True)]}"/>
<field name="display_amount" invisible="1"/>
</group>
<group>
<field name="date"/>
<field name="reversal_date"/>
</group>
</group>
<field name="preview_data" widget="grouped_view_widget"/>
<footer>
<button string='Create Entry' name="create_entries" type="object" class="btn-primary"/>
<button string="Cancel" class="btn-secondary" special="cancel"/>
</footer>
</form>
</field>
</record>
</odoo>