summaryrefslogtreecommitdiff
path: root/addons/l10n_in/demo/account_payment_demo.xml
diff options
context:
space:
mode:
authorstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
committerstephanchrst <stephanchrst@gmail.com>2022-05-10 21:51:50 +0700
commit3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch)
treea44932296ef4a9b71d5f010906253d8c53727726 /addons/l10n_in/demo/account_payment_demo.xml
parent0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff)
initial commit 2
Diffstat (limited to 'addons/l10n_in/demo/account_payment_demo.xml')
-rw-r--r--addons/l10n_in/demo/account_payment_demo.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/addons/l10n_in/demo/account_payment_demo.xml b/addons/l10n_in/demo/account_payment_demo.xml
new file mode 100644
index 00000000..54bfc1f7
--- /dev/null
+++ b/addons/l10n_in/demo/account_payment_demo.xml
@@ -0,0 +1,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> \ No newline at end of file