[MIG] account_move_line_purchase_info
This commit is contained in:
parent
0e10162ce9
commit
085072a3da
@ -5,7 +5,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Account Move Line Purchase Info",
|
"name": "Account Move Line Purchase Info",
|
||||||
"summary": "Introduces the purchase order line to the journal items",
|
"summary": "Introduces the purchase order line to the journal items",
|
||||||
"version": "9.0.1.0.0",
|
"version": "10.0.1.0.0",
|
||||||
"author": "Eficent, "
|
"author": "Eficent, "
|
||||||
"Odoo Community Association (OCA)",
|
"Odoo Community Association (OCA)",
|
||||||
"website": "http://www.github.com/OCA/account-financial-tools",
|
"website": "http://www.github.com/OCA/account-financial-tools",
|
@ -11,4 +11,4 @@ class AccountMoveLine(models.Model):
|
|||||||
|
|
||||||
purchase_line_id = fields.Many2one('purchase.order.line',
|
purchase_line_id = fields.Many2one('purchase.order.line',
|
||||||
'Purchase Order Line',
|
'Purchase Order Line',
|
||||||
ondelete='set null', select=True)
|
ondelete='set null', index=True)
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<openerp>
|
<odoo>
|
||||||
|
|
||||||
<record id="group_account_move_purchase_info" model="res.groups">
|
<record id="group_account_move_purchase_info" model="res.groups">
|
||||||
<field name="name">Purchase info in Journal Items</field>
|
<field name="name">Purchase info in Journal Items</field>
|
||||||
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
|
<field name="category_id" ref="base.module_category_accounting_and_finance"/>
|
||||||
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</openerp>
|
</odoo>
|
||||||
|
@ -1,66 +1,66 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<openerp>
|
<odoo>
|
||||||
|
|
||||||
<record id="view_move_line_form" model="ir.ui.view">
|
<record id="view_move_line_form" model="ir.ui.view">
|
||||||
<field name="name">account.move.line.form</field>
|
<field name="name">account.move.line.form</field>
|
||||||
<field name="model">account.move.line</field>
|
<field name="model">account.move.line</field>
|
||||||
<field name="inherit_id" ref="account.view_move_line_form"/>
|
<field name="inherit_id" ref="account.view_move_line_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="quantity" position="before">
|
<field name="quantity" position="before">
|
||||||
<field name="purchase_line_id"
|
<field name="purchase_line_id"
|
||||||
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
|
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
|
||||||
</field>
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<record id="view_move_line_form2" model="ir.ui.view">
|
<record id="view_move_line_form2" model="ir.ui.view">
|
||||||
<field name="name">account.move.line.form2</field>
|
<field name="name">account.move.line.form2</field>
|
||||||
<field name="model">account.move.line</field>
|
<field name="model">account.move.line</field>
|
||||||
<field name="inherit_id" ref="account.view_move_line_form2"/>
|
<field name="inherit_id" ref="account.view_move_line_form2"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="quantity" position="before">
|
<field name="quantity" position="before">
|
||||||
<field name="purchase_line_id"
|
<field name="purchase_line_id"
|
||||||
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
|
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
|
||||||
</field>
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<record id="view_move_line_tree" model="ir.ui.view">
|
<record id="view_move_line_tree" model="ir.ui.view">
|
||||||
<field name="name">account.move.line.tree</field>
|
<field name="name">account.move.line.tree</field>
|
||||||
<field name="model">account.move.line</field>
|
<field name="model">account.move.line</field>
|
||||||
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
<field name="inherit_id" ref="account.view_move_line_tree"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="partner_id" position="after">
|
<field name="partner_id" position="after">
|
||||||
<field name="purchase_line_id"
|
<field name="purchase_line_id"
|
||||||
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
|
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
|
||||||
</field>
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
<record id="view_account_move_line_filter" model="ir.ui.view">
|
<record id="view_account_move_line_filter" model="ir.ui.view">
|
||||||
<field name="name">Journal Items</field>
|
<field name="name">Journal Items</field>
|
||||||
<field name="model">account.move.line</field>
|
<field name="model">account.move.line</field>
|
||||||
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
|
<field name="inherit_id" ref="account.view_account_move_line_filter"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="partner_id" position="after">
|
<field name="partner_id" position="after">
|
||||||
<field name="purchase_line_id"
|
<field name="purchase_line_id"
|
||||||
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
|
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
|
||||||
</field>
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</field>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
|
||||||
<record id="view_move_form" model="ir.ui.view">
|
<record id="view_move_form" model="ir.ui.view">
|
||||||
<field name="name">account.move.form</field>
|
<field name="name">account.move.form</field>
|
||||||
<field name="model">account.move</field>
|
<field name="model">account.move</field>
|
||||||
<field name="inherit_id" ref="account.view_move_form"/>
|
<field name="inherit_id" ref="account.view_move_form"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath
|
<xpath
|
||||||
expr="//field[@name='line_ids']/tree//field[@name='partner_id']" position="after">
|
expr="//field[@name='line_ids']/tree//field[@name='partner_id']" position="after">
|
||||||
<field name="purchase_line_id"
|
<field name="purchase_line_id"
|
||||||
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
|
groups="account_move_line_purchase_info.group_account_move_purchase_info"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</openerp>
|
</odoo>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user