blob: 54bfc1f7bd11275d681d35c60e545c4f17613f06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<!-- Demo of at(Tax liability on advances). Advance payment need to consideration for which invoices have not been issued in the same month.-->
<record id="demo_payment_at" model="account.payment">
<field name="partner_id" ref="l10n_in.res_partner_registered_customer"/>
<field name="partner_type">customer</field>
<field name="amount">10000</field>
<field name="payment_type">inbound</field>
<field name="date" eval="time.strftime('%Y-%m')+'-01'"/>
<field name="journal_id" model="account.journal"
eval="obj().search([
('type', '=', 'cash'),
('company_id', '=', ref('l10n_in.demo_company_in'))], limit=1).id"/>
<field name="payment_method_id" model="account.journal"
eval="obj().search([
('type', '=', 'cash'),
('company_id', '=', ref('l10n_in.demo_company_in'))], limit=1).inbound_payment_method_ids[0].id"/>
</record>
<function model="account.payment" name="action_post">
<value eval="[ref('demo_payment_at')]"/>
</function>
</odoo>
|