2012-06-26 09:43:14 +00:00
<?xml version="1.0" encoding="UTF-8"?>
2010-08-18 20:20:43 +00:00
<openerp >
<data >
2010-09-14 22:15:34 +00:00
<record id= "view_voucher_filter_vendor" model= "ir.ui.view" >
<field name= "name" > account.voucher.purchase.select</field>
<field name= "model" > account.voucher</field>
<field name= "arch" type= "xml" >
<search string= "Search Vouchers" >
2012-07-20 05:33:26 +00:00
<field name= "number" string= "Voucher" />
<field name= "date" />
2012-07-31 11:28:04 +00:00
<filter icon= "terp-document-new" string= "Draft" domain= "[('state','=','draft')]" help= "Draft Vouchers" />
<filter icon= "terp-camera_test" string= "Posted" domain= "[('state','=','posted')]" help= "Posted Vouchers" />
2013-04-20 02:26:42 +00:00
<field name= "partner_id" string= "Supplier" filter_domain= "[('partner_id','child_of',self)]" />
2013-10-04 10:52:18 +00:00
<field name= "journal_id" widget= "selection" context= "{'journal_id': self, 'set_visible':False}" domain= "[('type','in',('purchase','purchase_refund'))]" /> <!-- Keep widget=selection on this field to pass numeric `self` value, which is not the case for regular m2o widgets! -->
2012-07-20 05:33:26 +00:00
<field name= "period_id" />
2011-03-15 14:08:59 +00:00
<group expand= "0" string= "Group By..." >
2010-10-26 13:02:35 +00:00
<filter string= "Supplier" icon= "terp-personal" domain= "[]" context= "{'group_by':'partner_id'}" />
2010-10-25 11:53:01 +00:00
<filter string= "Journal" icon= "terp-folder-orange" domain= "[]" context= "{'group_by':'journal_id'}" />
<filter string= "Period" icon= "terp-go-month" domain= "[]" context= "{'group_by':'period_id','visible':True}" />
2012-05-04 11:57:48 +00:00
<filter string= "Status" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2010-10-25 11:53:01 +00:00
</group>
2010-09-14 22:15:34 +00:00
</search>
</field>
</record>
<record id= "view_voucher_filter_sale" model= "ir.ui.view" >
<field name= "name" > account.voucher.sale.select</field>
<field name= "model" > account.voucher</field>
<field name= "arch" type= "xml" >
<search string= "Search Vouchers" >
2012-07-20 05:33:26 +00:00
<field name= "number" string= "Voucher" />
<field name= "date" />
2012-07-31 11:28:04 +00:00
<filter icon= "terp-document-new" string= "Draft" domain= "[('state','=','draft')]" help= "Draft Vouchers" />
<filter icon= "terp-camera_test" string= "Posted" domain= "[('state','=','posted')]" help= "Posted Vouchers" />
2013-04-20 02:26:42 +00:00
<field name= "partner_id" string= "Customer" filter_domain= "[('partner_id','child_of',self)]" />
2013-10-04 10:52:18 +00:00
<field name= "journal_id" widget= "selection" context= "{'journal_id': self, 'set_visible':False}" domain= "[('type','in',('sale','sale_refund'))]" /> <!-- Keep widget=selection on this field to pass numeric `self` value, which is not the case for regular m2o widgets! -->
2012-07-20 05:33:26 +00:00
<field name= "period_id" />
2011-03-15 14:08:59 +00:00
<group expand= "0" string= "Group By..." >
2010-10-26 13:02:35 +00:00
<filter string= "Customer" icon= "terp-personal" domain= "[]" context= "{'group_by':'partner_id'}" />
2010-10-25 11:53:01 +00:00
<filter string= "Journal" icon= "terp-folder-orange" domain= "[]" context= "{'group_by':'journal_id'}" />
<filter string= "Period" icon= "terp-go-month" domain= "[]" context= "{'group_by':'period_id','visible':True}" />
2012-05-04 11:57:48 +00:00
<filter string= "Status" icon= "terp-stock_effects-object-colorize" domain= "[]" context= "{'group_by':'state'}" />
2010-10-25 11:53:01 +00:00
</group>
2010-09-14 22:15:34 +00:00
</search>
</field>
</record>
2010-09-01 08:06:53 +00:00
<record id= "act_pay_voucher" model= "ir.actions.act_window" >
2012-12-19 07:05:53 +00:00
<field name= "name" > Customer Payments</field>
2010-09-01 16:18:05 +00:00
<field name= "res_model" > account.voucher</field>
2010-09-01 08:06:53 +00:00
<field name= "view_type" > form</field>
<field name= "domain" > [('journal_id.type', 'in', ['bank', 'cash']), ('type','=','receipt'), ('partner_id','=',partner_id)]</field>
2012-11-07 11:33:44 +00:00
<field name= "context" > {'default_type':'receipt', 'type':'receipt', 'partner_id': partner_id, 'default_reference':reference}</field>
2010-09-01 16:49:22 +00:00
<field name= "view_id" ref= "view_vendor_receipt_form" />
2010-12-06 11:50:27 +00:00
<field name= "target" > current</field>
2010-09-01 08:06:53 +00:00
</record>
2010-09-14 22:15:34 +00:00
2010-08-18 20:20:43 +00:00
<record model= "ir.ui.view" id= "view_sale_receipt_form" >
<field name= "name" > account.voucher.sale.form</field>
<field name= "model" > account.voucher</field>
<field name= "arch" type= "xml" >
2013-02-25 14:20:35 +00:00
<form string= "Sales Receipt" version= "7.0" >
2012-06-04 12:11:39 +00:00
<header >
2012-06-26 10:01:34 +00:00
<button name= "proforma_voucher" string= "Validate" states= "draft" class= "oe_highlight" />
2012-12-16 10:46:19 +00:00
<button name= "%(act_pay_voucher)d" context= "{'narration':narration, 'title':'Customer Payment', 'type':'receipt', 'partner_id':partner_id, 'reference':reference, 'amount':amount}" type= "action" string= "Validate Payment" attrs= "{'invisible':['|',('pay_now','=','pay_now'),'|',('state','=','draft'), ('paid','=',True)]}" class= "oe_highlight" />
2013-02-25 14:20:35 +00:00
<button name= "cancel_voucher" string= "Cancel Receipt" states= "draft,proforma" />
<button name= "cancel_voucher" string= "Cancel Receipt" type= "object" states= "posted" confirm= "Are you sure you want to cancel this receipt?" />
2012-05-22 09:14:45 +00:00
<button name= "action_cancel_draft" type= "object" states= "cancel" string= "Set to Draft" />
2012-06-05 17:54:11 +00:00
<field name= "state" widget= "statusbar" statusbar_visible= "draft,posted" statusbar_colors= '{"proforma":"blue"}' />
2012-06-04 12:11:39 +00:00
</header>
2013-02-25 14:20:35 +00:00
<sheet string= "Sales Receipt" >
<h1 > <label for= "number" string= "Sales Receipt" /> <field name= "number" class= "oe_inline" readonly= "1" /> </h1>
2012-06-14 06:24:14 +00:00
<group >
<group >
2012-10-05 07:53:56 +00:00
<field name= "type" invisible= "True" />
2012-06-14 06:24:14 +00:00
<field name= "company_id" widget= "selection" groups= "base.group_multi_company" />
[FIX] account_voucher: account_id always visible on sales & purchase receipts
account_id is mandatory, and is set thanks to an onchange of partner_id. But partner_id is not required, therefore, if you do not set a customer/supplier, there is no
account_id set by default.
On the purchase, the account_id was always invisible. Therefore, it was impossible to set the account_id if you did not set any supplier
On the sale, the account_id was invisible if you set the pay_now to pay later. Therefore, it was impossible to set an account_id if you did not set any customer and set pay later.
Anyway, now, account_id is always displayed, so the user can change the value of account_id if the default value provided is not was he wants, whatever the value of the other fields
bzr revid: dle@openerp.com-20140212142737-ox2l9twg3x6ywvqg
2014-02-12 14:27:37 +00:00
<field name= "partner_id" domain= "[('customer','=',True)]" on_change= "onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" string= "Customer" context= "{'search_default_customer':1, 'show_address': 1}" options= '{"always_reload": True}' />
<field name= "account_id"
domain="[('type','in', ['liquidity', 'receivable'])]"/>
<field name= "pay_now" on_change= "onchange_payment(pay_now, journal_id, partner_id)" required= "1" />
<field name= "date_due" attrs= "{'invisible':[('pay_now','=','pay_now')]}" />
<field name= "reference"
attrs="{'invisible':[('pay_now','!=','pay_now')]}"/>
2012-06-14 06:24:14 +00:00
</group>
<group >
2012-07-18 12:00:36 +00:00
<field name= "journal_id" domain= "[('type','in',['sale','sale_refund'])]" widget= "selection" on_change= "onchange_journal(journal_id, line_cr_ids, tax_id, partner_id, date, amount, type, company_id, context)" groups= "account.group_account_user" />
2012-07-14 23:35:25 +00:00
<field name= "date" on_change= "onchange_date(date, currency_id, currency_id, amount, company_id, context)" />
<field name= "name" />
2012-06-14 06:24:14 +00:00
<field name= "paid" invisible= "1" />
2012-10-04 16:48:34 +00:00
<field name= "paid_amount_in_company_currency" invisible= "1" />
2012-07-16 22:17:06 +00:00
<field name= "currency_id" invisible= "1" />
2012-06-14 06:24:14 +00:00
</group>
2010-08-18 20:20:43 +00:00
</group>
2012-06-05 17:54:11 +00:00
<notebook >
2010-08-18 20:20:43 +00:00
<page string= "Sales Information" >
2012-06-05 17:54:11 +00:00
<field name= "line_cr_ids" on_change= "onchange_price(line_cr_ids, tax_id, partner_id)" context= "{'journal_id':journal_id, 'type':type, 'partner_id':partner_id}" >
2010-08-20 11:40:55 +00:00
<tree string= "Sales Lines" editable= "bottom" >
2012-10-26 14:37:41 +00:00
<field name= "account_id" domain= "[('user_type.report_type','=','income'),('type','!=','view')]" widget= "selection" />
2010-08-19 07:57:59 +00:00
<field name= "name" />
<field name= "amount" sum= "Total" />
2010-10-09 16:01:43 +00:00
<field name= "account_analytic_id" groups= "analytic.group_analytic_accounting" />
2010-08-18 20:20:43 +00:00
</tree>
</field>
2012-07-16 06:08:46 +00:00
<group >
2012-07-14 23:35:25 +00:00
<field name= "narration" placeholder= "Internal Notes" nolabel= "1" />
<group class= "oe_subtotal_footer oe_right" >
<field name= "tax_id"
on_change="onchange_price(line_cr_ids, tax_id, partner_id)"
2012-07-16 22:17:06 +00:00
widget="selection" nolabel="1"
2012-11-26 07:27:59 +00:00
placeholder="Tax"
2012-07-14 23:35:25 +00:00
domain="[('type_tax_use','in',('sale','all')), ('parent_id', '=', False)]"/>
2012-07-16 22:17:06 +00:00
<field name= "tax_amount" nolabel= "1" />
<div class= "oe_subtotal_footer_separator" >
<label for= "amount" />
2012-07-14 23:35:25 +00:00
<button type= "object" class= "oe_link oe_edit_only"
name="compute_tax" string="(update)"
2012-06-14 06:24:14 +00:00
attrs="{'invisible': [('state','!=','draft')]}"/>
2012-07-16 06:08:46 +00:00
</div>
2012-07-16 22:17:06 +00:00
<field name= "amount" class= "oe_subtotal_footer_separator" nolabel= "1" />
2012-07-14 23:35:25 +00:00
</group>
2012-07-16 06:08:46 +00:00
</group>
2010-08-18 20:20:43 +00:00
</page>
2012-04-25 13:40:18 +00:00
<page string= "Journal Items" attrs= "{'invisible': [('state','!=','posted')]}" >
2012-06-05 17:54:11 +00:00
<group col= "4" >
2010-08-18 20:20:43 +00:00
<field name= "period_id" />
<field name= "audit" />
</group>
2012-06-05 17:54:11 +00:00
<field name= "move_ids" readonly= "1" >
2010-12-13 20:25:12 +00:00
<tree string= "Journal Items" >
<field name= "move_id" />
<field name= "ref" />
<field name= "date" />
<field name= "statement_id" />
<field name= "partner_id" />
<field name= "account_id" />
<field name= "name" />
<field name= "debit" />
<field name= "credit" />
<field name= "state" />
<field name= "reconcile_id" />
</tree>
2010-12-30 11:12:56 +00:00
</field>
2010-08-18 20:20:43 +00:00
</page>
</notebook>
2013-04-23 15:24:39 +00:00
<group col= "4" invisible= "1" >
<field name= "is_multi_currency" invisible= "1" />
2013-05-14 11:52:13 +00:00
<field name= "currency_help_label" invisible= "1" />
<field name= "payment_rate" invisible= "1" />
<field name= "payment_rate_currency_id" invisible= "1" />
2013-04-23 15:24:39 +00:00
<field name= "paid_amount_in_company_currency" colspan= "4" invisible= "1" />
</group>
2012-04-27 05:00:27 +00:00
</sheet>
2012-07-13 09:53:41 +00:00
<div class= "oe_chatter" >
2012-08-15 22:30:38 +00:00
<field name= "message_follower_ids" widget= "mail_followers" />
2012-10-26 09:58:21 +00:00
<field name= "message_ids" widget= "mail_thread" />
2012-07-13 09:53:41 +00:00
</div>
2010-08-18 20:20:43 +00:00
</form>
</field>
</record>
2010-09-23 08:56:55 +00:00
2010-08-18 20:20:43 +00:00
<!-- Sales Voucher -->
<record id= "action_sale_receipt" model= "ir.actions.act_window" >
2012-12-19 07:01:07 +00:00
<field name= "name" > Sales Receipts</field>
2010-09-14 22:15:34 +00:00
<field name= "res_model" > account.voucher</field>
2010-08-18 20:20:43 +00:00
<field name= "view_type" > form</field>
2010-09-14 09:03:06 +00:00
<field name= "domain" > [('journal_id.type','in',['sale','sale_refund']), ('type','=','sale')]</field>
2011-11-24 12:14:33 +00:00
<field name= "context" > {'default_type': 'sale', 'type': 'sale'}</field>
2010-09-14 22:15:34 +00:00
<field name= "view_id" eval= "False" />
<field name= "search_view_id" ref= "view_voucher_filter_sale" />
<field name= "target" > current</field>
2012-08-04 14:35:56 +00:00
<field name= "help" type= "html" >
2012-08-04 13:56:31 +00:00
<p class= "oe_view_nocontent_create" >
2012-08-04 13:21:36 +00:00
Click to create a sale receipt.
</p> <p >
When the sale receipt is confirmed, you can record the customer
payment related to this sales receipt.
</p>
2012-06-06 09:07:29 +00:00
</field>
2010-09-14 22:15:34 +00:00
</record>
<record id= "action_sale_receipt_tree" model= "ir.actions.act_window.view" >
<field eval= "1" name= "sequence" />
<field name= "view_mode" > tree</field>
<field name= "act_window_id" ref= "action_sale_receipt" />
2010-08-18 20:20:43 +00:00
</record>
2010-09-14 22:15:34 +00:00
<record id= "action_sale_receipt_form" model= "ir.actions.act_window.view" >
<field eval= "2" name= "sequence" />
<field name= "view_mode" > form</field>
<field name= "view_id" ref= "view_sale_receipt_form" />
<field name= "act_window_id" ref= "action_sale_receipt" />
2010-08-18 20:20:43 +00:00
</record>
2010-09-14 22:15:34 +00:00
2010-08-18 20:20:43 +00:00
<menuitem id= "menu_action_sale_receipt" icon= "STOCK_JUSTIFY_FILL"
2010-09-14 22:15:34 +00:00
action="action_sale_receipt"
parent="account.menu_finance_receivables"
sequence="10"/>
2010-08-18 20:20:43 +00:00
<!-- Purchase Vouchers -->
2010-09-01 16:49:22 +00:00
<record id= "act_pay_bills" model= "ir.actions.act_window" >
<field name= "name" > Bill Payment</field>
<field name= "res_model" > account.voucher</field>
<field name= "view_type" > form</field>
<field name= "domain" > [('journal_id.type', 'in', ['bank', 'cash']), ('type','=','payment'), ('partner_id','=',partner_id)]</field>
2011-11-24 12:14:33 +00:00
<field name= "context" > {'default_type':'payment', 'type':'payment', 'default_partner_id': partner_id, 'partner_id': partner_id, 'default_reference':reference}</field>
2010-09-01 16:49:22 +00:00
<field name= "view_id" ref= "view_vendor_payment_form" />
2010-12-06 11:50:27 +00:00
<field name= "target" > current</field>
2010-09-01 16:49:22 +00:00
</record>
2010-08-18 20:20:43 +00:00
<record model= "ir.ui.view" id= "view_purchase_receipt_form" >
<field name= "name" > account.voucher.purchase.form</field>
<field name= "model" > account.voucher</field>
<field name= "arch" type= "xml" >
2012-08-06 13:23:01 +00:00
<form string= "Purchase Voucher" version= "7.0" >
2012-06-04 12:11:39 +00:00
<header >
2012-06-26 10:01:34 +00:00
<button name= "proforma_voucher" string= "Validate" states= "draft" class= "oe_highlight" />
<button name= "%(act_pay_bills)d" context= "{'narration':narration, 'title':'Bill Payment', 'type':'payment', 'partner_id': partner_id, 'reference':reference}" type= "action" string= "Pay Bill" attrs= "{'invisible':['|',('pay_now','=','pay_now'),'|',('state','=','draft'), ('paid','=',True)]}" class= "oe_highlight" />
2013-02-25 13:38:04 +00:00
<button name= "cancel_voucher" string= "Cancel Voucher" states= "draft,proforma" />
<button name= "cancel_voucher" string= "Cancel Voucher" type= "object" states= "posted" confirm= "Are you sure you want to cancel this receipt?" />
2012-05-22 09:14:45 +00:00
<button name= "action_cancel_draft" type= "object" states= "cancel" string= "Set to Draft" />
2012-06-05 17:54:11 +00:00
<field name= "state" widget= "statusbar" statusbar_visible= "draft,posted" statusbar_colors= '{"proforma":"blue"}' />
2012-06-04 12:11:39 +00:00
</header>
2012-06-05 17:54:11 +00:00
<sheet string= "Supplier Voucher" >
2012-07-16 22:17:06 +00:00
<h1 > <label for= "number" string= "Purchase Receipt" /> <field name= "number" class= "oe_inline" readonly= "1" /> </h1>
2012-06-18 10:49:23 +00:00
2012-05-21 08:40:52 +00:00
<field name= "pay_now" invisible= "1" />
2012-07-16 22:17:06 +00:00
<field name= "type" invisible= "True" />
2014-09-22 10:16:46 +00:00
<field name= "payment_rate_currency_id" invisible= "1" />
2012-06-18 10:49:23 +00:00
<group >
<group >
2012-07-16 22:17:06 +00:00
<field name= "partner_id" domain= "[('supplier','=',True)]" string= "Supplier" on_change= "onchange_partner_id(partner_id, journal_id, amount, currency_id, type, date, context)" context= "{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}" />
[FIX] account_voucher: account_id always visible on sales & purchase receipts
account_id is mandatory, and is set thanks to an onchange of partner_id. But partner_id is not required, therefore, if you do not set a customer/supplier, there is no
account_id set by default.
On the purchase, the account_id was always invisible. Therefore, it was impossible to set the account_id if you did not set any supplier
On the sale, the account_id was invisible if you set the pay_now to pay later. Therefore, it was impossible to set an account_id if you did not set any customer and set pay later.
Anyway, now, account_id is always displayed, so the user can change the value of account_id if the default value provided is not was he wants, whatever the value of the other fields
bzr revid: dle@openerp.com-20140212142737-ox2l9twg3x6ywvqg
2014-02-12 14:27:37 +00:00
<field name= "account_id" domain= "[('type', 'in', ['liquidity', 'payable'])]" />
2012-06-18 10:49:23 +00:00
<field name= "name" colspan= "2" />
2012-07-16 22:17:06 +00:00
<field name= "reference" />
<field name= "company_id" widget= "selection" groups= "base.group_multi_company" />
2012-06-18 10:49:23 +00:00
</group>
<group >
2012-07-16 22:17:06 +00:00
<field name= "date" string= "Bill Date" on_change= "onchange_date(date, currency_id, currency_id, amount, company_id, context)" />
<field name= "date_due" />
2012-06-18 10:49:23 +00:00
<field name= "paid" invisible= "1" />
2012-07-16 22:17:06 +00:00
<field name= "currency_id" invisible= "1" />
2012-06-18 10:49:23 +00:00
<field name= "journal_id"
domain="[('type','in',['purchase','purchase_refund'])]"
widget="selection"
2012-07-18 12:00:36 +00:00
on_change="onchange_journal(journal_id, line_dr_ids, tax_id, partner_id, date, amount, type, company_id, context)"
groups="account.group_account_user"/>
2012-10-04 16:48:34 +00:00
<field name= "paid_amount_in_company_currency" invisible= "1" />
2013-05-14 11:52:13 +00:00
<field name= "currency_help_label" invisible= "1" />
2012-06-18 10:49:23 +00:00
</group>
2010-08-18 20:20:43 +00:00
</group>
2012-07-16 22:17:06 +00:00
<notebook >
2010-08-18 20:20:43 +00:00
<page string= "Bill Information" >
2012-06-05 17:54:11 +00:00
<field name= "line_dr_ids" on_change= "onchange_price(line_dr_ids, tax_id, partner_id)" context= "{'journal_id':journal_id,'partner_id':partner_id}" >
2010-08-26 15:04:35 +00:00
<tree string= "Expense Lines" editable= "bottom" >
2014-06-13 10:38:12 +00:00
<field name= "account_id" domain= "[('user_type.report_type','=','expense'), ('type','!=','view')]" />
2010-08-26 15:04:35 +00:00
<field name= "name" />
2010-08-18 20:20:43 +00:00
<field name= "amount" />
2010-10-09 16:01:43 +00:00
<field name= "account_analytic_id" groups= "analytic.group_analytic_accounting" />
2010-08-18 20:20:43 +00:00
</tree>
</field>
2012-06-18 10:49:23 +00:00
<group >
2012-07-16 22:17:06 +00:00
<field name= "narration" placeholder= "Internal Notes" nolabel= "1" />
<group class= "oe_subtotal_footer oe_right" >
2012-06-18 10:49:23 +00:00
<!--
<div >
<label for= "tax_id" />
<button type= "object"
icon="terp-stock_format-scientific"
name="compute_tax"
attrs="{'invisible': [('state','!=','draft')]}"/>
</div>
-->
<field name= "tax_id"
on_change="onchange_price(line_dr_ids, tax_id, partner_id)"
2012-07-16 22:17:06 +00:00
widget="selection" nolabel="1"
2012-11-26 07:27:59 +00:00
placeholder="Tax"
2012-07-16 22:17:06 +00:00
2012-06-18 10:49:23 +00:00
domain="[('type_tax_use','in',('purchase','all')), ('parent_id', '=', False)]"
/>
2012-07-16 22:17:06 +00:00
<field name= "tax_amount" nolabel= "1" />
<div class= "oe_subtotal_footer_separator" >
<label for= "amount" />
<button type= "object" class= "oe_link oe_edit_only"
name="compute_tax" string="(update)"
attrs="{'invisible': [('state','!=','draft')]}"/>
</div>
<field name= "amount" class= "oe_subtotal_footer_separator" nolabel= "1" />
</group>
2010-08-18 20:20:43 +00:00
</group>
</page>
2012-04-25 13:40:18 +00:00
<page string= "Journal Items" attrs= "{'invisible': [('state','!=','posted')]}" >
2012-06-05 17:54:11 +00:00
<group col= "4" >
2010-08-18 20:20:43 +00:00
<field name= "period_id" />
<field name= "audit" />
</group>
2012-06-05 17:54:11 +00:00
<field name= "move_ids" readonly= "1" >
2010-12-13 20:25:12 +00:00
<tree string= "Journal Items" >
<field name= "move_id" />
<field name= "ref" />
<field name= "date" />
<field name= "statement_id" />
<field name= "partner_id" />
<field name= "account_id" />
<field name= "name" />
<field name= "debit" />
<field name= "credit" />
<field name= "state" />
<field name= "reconcile_id" />
</tree>
2010-12-30 11:12:56 +00:00
</field>
2010-08-18 20:20:43 +00:00
</page>
</notebook>
2012-04-27 05:00:27 +00:00
</sheet>
2012-07-13 09:53:41 +00:00
<div class= "oe_chatter" >
2012-08-15 22:30:38 +00:00
<field name= "message_follower_ids" widget= "mail_followers" />
2012-10-26 09:58:21 +00:00
<field name= "message_ids" widget= "mail_thread" />
2012-07-13 09:53:41 +00:00
</div>
2010-08-18 20:20:43 +00:00
</form>
</field>
</record>
<record id= "action_purchase_receipt" model= "ir.actions.act_window" >
2012-12-19 07:05:53 +00:00
<field name= "name" > Purchase Receipts</field>
2010-09-14 22:15:34 +00:00
<field name= "res_model" > account.voucher</field>
2010-08-18 20:20:43 +00:00
<field name= "view_type" > form</field>
2010-09-14 09:03:06 +00:00
<field name= "domain" > [('journal_id.type','in',['purchase','purchase_refund']), ('type','=','purchase')]</field>
2011-11-24 12:14:33 +00:00
<field name= "context" > {'default_type': 'purchase', 'type': 'purchase'}</field>
2010-09-14 22:15:34 +00:00
<field name= "view_id" eval= "False" />
<field name= "search_view_id" eval= "view_voucher_filter_vendor" />
<field name= "target" > current</field>
2012-08-04 14:35:56 +00:00
<field name= "help" type= "html" >
2012-08-04 13:56:31 +00:00
<p class= "oe_view_nocontent_create" >
2012-08-04 13:21:36 +00:00
Click to register a purchase receipt.
</p> <p >
When the purchase receipt is confirmed, you can record the
supplier payment related to this purchase receipt.
</p>
2012-06-26 14:11:26 +00:00
</field>
2010-09-14 22:15:34 +00:00
</record>
<record id= "action_purchase_receipt_tree" model= "ir.actions.act_window.view" >
<field eval= "1" name= "sequence" />
<field name= "view_mode" > tree</field>
<field name= "act_window_id" ref= "action_purchase_receipt" />
2010-08-18 20:20:43 +00:00
</record>
2010-09-14 22:15:34 +00:00
<record id= "action_purchase_receipt_form" model= "ir.actions.act_window.view" >
<field eval= "2" name= "sequence" />
<field name= "view_mode" > form</field>
<field name= "view_id" ref= "view_purchase_receipt_form" />
<field name= "act_window_id" ref= "action_purchase_receipt" />
</record>
2010-09-23 08:56:55 +00:00
<menuitem id= "menu_action_purchase_receipt" icon= "STOCK_JUSTIFY_FILL"
2012-04-25 13:40:18 +00:00
action="action_purchase_receipt" parent="account.menu_finance_payables" sequence="10"/>
2010-09-23 08:56:55 +00:00
2010-08-18 20:20:43 +00:00
</data>
</openerp>