mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
migrate module 'account_move_line_product' to v9
This commit is contained in:
@@ -18,14 +18,10 @@ Usage
|
|||||||
|
|
||||||
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
|
||||||
:alt: Try me on Runbot
|
:alt: Try me on Runbot
|
||||||
:target: https://runbot.odoo-community.org/runbot/92/7.0
|
:target: https://runbot.odoo-community.org/runbot/92/9.0
|
||||||
|
|
||||||
Bug Tracker
|
Bug Tracker
|
||||||
===========
|
===========
|
||||||
|
|
||||||
Bugs are tracked on `GitHub Issues
|
|
||||||
<https://github.com/OCA/213/issues>`_.
|
|
||||||
|
|
||||||
Bugs are tracked on `GitHub Issues
|
Bugs are tracked on `GitHub Issues
|
||||||
<https://github.com/OCA/account-financial-tools/issues>`_. In case of trouble, please
|
<https://github.com/OCA/account-financial-tools/issues>`_. In case of trouble, please
|
||||||
check there if your issue has already been reported. If you spotted it first,
|
check there if your issue has already been reported. If you spotted it first,
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# © 2016 Eficent (http://www.eficent.com)
|
# © 2016 Eficent Business and IT Consulting Services, S.L.
|
||||||
|
# (<http://www.eficent.com>)
|
||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
|
|||||||
@@ -1,18 +1,16 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# © 2016 Eficent (http://www.eficent.com)
|
# © 2016 Eficent Business and IT Consulting Services, S.L.
|
||||||
|
# (<http://www.eficent.com>)
|
||||||
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
|
||||||
|
|
||||||
{
|
{
|
||||||
"name": "Account Move Line Product",
|
"name": "Account Move Line Product",
|
||||||
"version": "8.0.1.0.0",
|
"version": "9.0.1.0.0",
|
||||||
|
"summary": "Displays the product in the journal entries and items",
|
||||||
"author": "Eficent, Odoo Community Association (OCA)",
|
"author": "Eficent, Odoo Community Association (OCA)",
|
||||||
"website": "http://www.eficent.com",
|
"website": "http://www.eficent.com",
|
||||||
"category": "Generic",
|
"category": "Generic",
|
||||||
"depends": ["account"],
|
"depends": ["account"],
|
||||||
"description": """
|
|
||||||
Account Move Line Product
|
|
||||||
=========================
|
|
||||||
""",
|
|
||||||
"license": "AGPL-3",
|
"license": "AGPL-3",
|
||||||
"data": [
|
"data": [
|
||||||
"views/account_move_line_view.xml",
|
"views/account_move_line_view.xml",
|
||||||
|
|||||||
@@ -1,8 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<openerp>
|
<odoo>
|
||||||
<data>
|
|
||||||
|
|
||||||
|
|
||||||
<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>
|
||||||
@@ -52,22 +49,11 @@
|
|||||||
<field name="partner_id" position="after">
|
<field name="partner_id" position="after">
|
||||||
<field name="product_id"/>
|
<field name="product_id"/>
|
||||||
</field>
|
</field>
|
||||||
<filter string="Partner" position="after">
|
<group position="inside">
|
||||||
<filter name="group_product_id" string="Product"
|
<filter name="group_product_id" string="Product"
|
||||||
domain="[]"
|
domain="[]"
|
||||||
context="{'group_by':'product_id'}"/>
|
context="{'group_by':'product_id'}"/>
|
||||||
</filter>
|
</group>
|
||||||
</field>
|
|
||||||
</record>
|
|
||||||
|
|
||||||
<record id="view_move_line_tree_reconcile" model="ir.ui.view">
|
|
||||||
<field name="model">account.move.line</field>
|
|
||||||
<field name="inherit_id" ref="account.view_move_line_tree_reconcile"/>
|
|
||||||
<field name="arch" type="xml">
|
|
||||||
<field name="partner_id" position="after">
|
|
||||||
<field name="product_id"/>
|
|
||||||
|
|
||||||
</field>
|
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
@@ -76,18 +62,11 @@
|
|||||||
<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_id']/form//field[@name='quantity']" position="before">
|
|
||||||
<field name="product_id"/>
|
|
||||||
<field name="quantity"/>
|
|
||||||
</xpath>
|
|
||||||
<xpath
|
|
||||||
expr="//field[@name='line_id']/tree//field[@name='partner_id']" position="after">
|
|
||||||
<field name="product_id"/>
|
<field name="product_id"/>
|
||||||
<field name="quantity"/>
|
<field name="quantity"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</data>
|
</odoo>
|
||||||
</openerp>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user