[MIG] account_move_line_stock_info to v10

This commit is contained in:
lreficent
2017-03-16 11:52:48 +01:00
committed by Nadal Francisco Garcia
parent 46c25af76f
commit 86b24b7ffb
20 changed files with 186 additions and 163 deletions

View File

@@ -8,7 +8,6 @@ Account Move Line Stock Move
This module adds the stock move to the account move lines that it generates.
Usage
=====
@@ -21,8 +20,7 @@ Reports > Stock moves'.
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/153/8.0
:target: https://runbot.odoo-community.org/runbot/153/10.0
Bug Tracker
===========
@@ -40,6 +38,7 @@ Credits
Contributors
------------
* Jordi Ballester Alomar <jordi.ballester@eficent.com>
* Lois Rilo <lois.rilo@eficent.com>
Maintainer
----------

View File

@@ -3,7 +3,7 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Account Move Line Stock Move",
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"depends": [
"stock_account"
],

View File

@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_move_line_stock_info
#
# Translators:
# Lukáš Spurný <lukasspurny8@gmail.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-02-27 11:37+0000\n"
"PO-Revision-Date: 2018-02-27 11:37+0000\n"
"Last-Translator: Lukáš Spurný <lukasspurny8@gmail.com>, 2018\n"
"Language-Team: Czech (Czech Republic) (https://www.transifex.com/oca/teams/23907/cs_CZ/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: cs_CZ\n"
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
#. module: account_move_line_stock_info
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_stock_move_account_move_line_ids
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_stock_reservation_account_move_line_ids
msgid "Account move line ids"
msgstr "Identifikátory řádků přesunutí účtu"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_account_move_line
msgid "Journal Item"
msgstr "Položka žurnálu"
#. module: account_move_line_stock_info
#: model:ir.ui.view,arch_db:account_move_line_stock_info.view_move_form
#: model:ir.ui.view,arch_db:account_move_line_stock_info.view_move_picking_form
msgid "Journal Items"
msgstr "Položky žurnálu"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_move
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_account_move_line_stock_move_id
msgid "Stock Move"
msgstr "Přesunout zásoby"

View File

@@ -4,14 +4,13 @@
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Ermin Trevisan <trevi@twanda.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-21 02:12+0000\n"
"PO-Revision-Date: 2017-01-21 02:12+0000\n"
"Last-Translator: Ermin Trevisan <trevi@twanda.com>, 2017\n"
"POT-Creation-Date: 2017-06-03 01:23+0000\n"
"PO-Revision-Date: 2017-06-03 01:23+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -35,11 +34,6 @@ msgstr "Journalbuchung"
msgid "Journal Items"
msgstr "Buchungsjournale"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_quant
msgid "Quants"
msgstr "Quants"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_move
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_account_move_line_stock_move_id

View File

@@ -4,14 +4,13 @@
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Fernando Lara <gennesis45@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-18 04:05+0000\n"
"PO-Revision-Date: 2017-02-18 04:05+0000\n"
"Last-Translator: Fernando Lara <gennesis45@gmail.com>, 2017\n"
"POT-Creation-Date: 2017-07-28 02:58+0000\n"
"PO-Revision-Date: 2017-07-28 02:58+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,6 +20,7 @@ msgstr ""
#. module: account_move_line_stock_info
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_stock_move_account_move_line_ids
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_stock_reservation_account_move_line_ids
msgid "Account move line ids"
msgstr "Mover las ID´s de la cuenta"
@@ -35,11 +35,6 @@ msgstr "Apunte contable"
msgid "Journal Items"
msgstr "Apuntes contables"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_quant
msgid "Quants"
msgstr "Quants"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_move
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_account_move_line_stock_move_id

View File

@@ -6,10 +6,10 @@
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-21 02:12+0000\n"
"PO-Revision-Date: 2017-01-21 02:12+0000\n"
"POT-Creation-Date: 2017-06-03 01:23+0000\n"
"PO-Revision-Date: 2017-06-03 01:23+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n"
"MIME-Version: 1.0\n"
@@ -34,11 +34,6 @@ msgstr ""
msgid "Journal Items"
msgstr ""
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_quant
msgid "Quants"
msgstr "Määrät"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_move
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_account_move_line_stock_move_id

View File

@@ -4,15 +4,13 @@
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Sébastien LANGE (SYLEAM) <sebastien.lange@syleam.fr>, 2017
# Christophe CHAUVET <christophe.chauvet@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-21 02:12+0000\n"
"PO-Revision-Date: 2017-01-21 02:12+0000\n"
"Last-Translator: Christophe CHAUVET <christophe.chauvet@gmail.com>, 2017\n"
"POT-Creation-Date: 2017-06-03 01:23+0000\n"
"PO-Revision-Date: 2017-06-03 01:23+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -36,11 +34,6 @@ msgstr "Écriture comptable"
msgid "Journal Items"
msgstr "Écritures du journal"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_quant
msgid "Quants"
msgstr "Quants"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_move
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_account_move_line_stock_move_id

View File

@@ -4,13 +4,14 @@
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Bole <bole@dajmi5.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-21 02:12+0000\n"
"PO-Revision-Date: 2017-01-21 02:12+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"POT-Creation-Date: 2018-02-27 11:37+0000\n"
"PO-Revision-Date: 2018-02-27 11:37+0000\n"
"Last-Translator: Bole <bole@dajmi5.com>, 2018\n"
"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -20,13 +21,14 @@ msgstr ""
#. module: account_move_line_stock_info
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_stock_move_account_move_line_ids
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_stock_reservation_account_move_line_ids
msgid "Account move line ids"
msgstr ""
msgstr "ID-ovi stavaka temeljnica"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_account_move_line
msgid "Journal Item"
msgstr ""
msgstr "Stavka dnevnika"
#. module: account_move_line_stock_info
#: model:ir.ui.view,arch_db:account_move_line_stock_info.view_move_form
@@ -34,11 +36,6 @@ msgstr ""
msgid "Journal Items"
msgstr "Stavke dnevnika"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_quant
msgid "Quants"
msgstr ""
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_move
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_account_move_line_stock_move_id

View File

@@ -4,14 +4,13 @@
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Paolo Valier <paolo.valier@hotmail.it>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-21 02:12+0000\n"
"PO-Revision-Date: 2017-01-21 02:12+0000\n"
"Last-Translator: Paolo Valier <paolo.valier@hotmail.it>, 2017\n"
"POT-Creation-Date: 2017-06-03 01:23+0000\n"
"PO-Revision-Date: 2017-06-03 01:23+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -35,11 +34,6 @@ msgstr ""
msgid "Journal Items"
msgstr "Voci sezionale"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_quant
msgid "Quants"
msgstr "Quantità"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_move
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_account_move_line_stock_move_id

View File

@@ -0,0 +1,41 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_move_line_stock_info
#
# Translators:
# Peter Hageman <hageman.p@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-06-23 00:57+0000\n"
"PO-Revision-Date: 2017-06-23 00:57+0000\n"
"Last-Translator: Peter Hageman <hageman.p@gmail.com>, 2017\n"
"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/teams/23907/nl_NL/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Language: nl_NL\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: account_move_line_stock_info
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_stock_move_account_move_line_ids
msgid "Account move line ids"
msgstr ""
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_account_move_line
msgid "Journal Item"
msgstr ""
#. module: account_move_line_stock_info
#: model:ir.ui.view,arch_db:account_move_line_stock_info.view_move_form
#: model:ir.ui.view,arch_db:account_move_line_stock_info.view_move_picking_form
msgid "Journal Items"
msgstr ""
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_move
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_account_move_line_stock_move_id
msgid "Stock Move"
msgstr "Voorraadmutatie"

View File

@@ -4,15 +4,13 @@
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Claudio Araujo Santos <claudioaraujosantos@gmail.com>, 2017
# Magno <magno.costa@akretion.com.br>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-21 02:12+0000\n"
"PO-Revision-Date: 2017-01-21 02:12+0000\n"
"Last-Translator: Magno <magno.costa@akretion.com.br>, 2017\n"
"POT-Creation-Date: 2017-06-03 01:23+0000\n"
"PO-Revision-Date: 2017-06-03 01:23+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/pt_BR/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -36,11 +34,6 @@ msgstr "Diário  Item"
msgid "Journal Items"
msgstr "Itens do Diário"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_quant
msgid "Quants"
msgstr "Quants"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_move
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_account_move_line_stock_move_id

View File

@@ -3,14 +3,13 @@
# * account_move_line_stock_info
#
# Translators:
# Dorin Hongu <dhongu@gmail.com>, 2017
# OCA Transbot <transbot@odoo-community.org>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-21 02:12+0000\n"
"PO-Revision-Date: 2017-01-21 02:12+0000\n"
"POT-Creation-Date: 2017-06-03 01:23+0000\n"
"PO-Revision-Date: 2017-06-03 01:23+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n"
"MIME-Version: 1.0\n"
@@ -35,11 +34,6 @@ msgstr ""
msgid "Journal Items"
msgstr "Elementele Jurnalului"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_quant
msgid "Quants"
msgstr "Poziții de stoc"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_move
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_account_move_line_stock_move_id

View File

@@ -4,14 +4,13 @@
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2017
# Matjaž Mozetič <m.mozetic@matmoz.si>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-21 02:12+0000\n"
"PO-Revision-Date: 2017-01-21 02:12+0000\n"
"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>, 2017\n"
"POT-Creation-Date: 2017-07-28 02:58+0000\n"
"PO-Revision-Date: 2017-07-28 02:58+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2017\n"
"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -21,6 +20,7 @@ msgstr ""
#. module: account_move_line_stock_info
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_stock_move_account_move_line_ids
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_stock_reservation_account_move_line_ids
msgid "Account move line ids"
msgstr "ID-ji postavk kontnih premikov"
@@ -35,11 +35,6 @@ msgstr "Dnevniška postavka"
msgid "Journal Items"
msgstr "Dnevniške postavke"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_quant
msgid "Quants"
msgstr "Kvant"
#. module: account_move_line_stock_info
#: model:ir.model,name:account_move_line_stock_info.model_stock_move
#: model:ir.model.fields,field_description:account_move_line_stock_info.field_account_move_line_stock_move_id

View File

@@ -3,5 +3,4 @@
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import account_move_line
from . import stock_quant
from . import stock_move

View File

@@ -2,11 +2,12 @@
# © 2016 Eficent Business and IT Consulting Services S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import fields, models
from odoo import fields, models
class AccountMoveLine(models.Model):
_inherit = 'account.move.line'
stock_move_id = fields.Many2one(comodel_name='stock.move',
string='Stock Move', copy=False)
stock_move_id = fields.Many2one(
comodel_name='stock.move', string='Stock Move', copy=False,
index=True)

View File

@@ -2,7 +2,7 @@
# © 2016 Eficent Business and IT Consulting Services S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import fields, models
from odoo import api, fields, models
class StockMove(models.Model):
@@ -11,3 +11,12 @@ class StockMove(models.Model):
account_move_line_ids = fields.One2many(
comodel_name='account.move.line', inverse_name='stock_move_id',
copy=False)
@api.model
def _prepare_account_move_line(self, qty, cost,
credit_account_id, debit_account_id):
res = super(StockMove, self)._prepare_account_move_line(
qty, cost, credit_account_id, debit_account_id)
for line in res:
line[2]['stock_move_id'] = self.id
return res

View File

@@ -1,18 +0,0 @@
# -*- coding: utf-8 -*-
# © 2016 Eficent Business and IT Consulting Services S.L.
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from openerp import models, api
class StockQuant(models.Model):
_inherit = 'stock.quant'
@api.model
def _prepare_account_move_line(self, move, qty, cost,
credit_account_id, debit_account_id):
res = super(StockQuant, self)._prepare_account_move_line(
move, qty, cost, credit_account_id, debit_account_id)
for line in res:
line[2]['stock_move_id'] = move.id
return res

View File

@@ -2,10 +2,10 @@
# © 2015 Eficent Business and IT Consulting Services S.L. (www.eficent.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from openerp.tests import common
from odoo.tests.common import TransactionCase
class TestAccountMoveLineStockInfo(common.TransactionCase):
class TestAccountMoveLineStockInfo(TransactionCase):
def setUp(self):
super(TestAccountMoveLineStockInfo, self).setUp()

View File

@@ -1,26 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_move_line_form" model="ir.ui.view">
<field name="name">account.move.line.form</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_form"/>
<field name="arch" type="xml">
<field name="quantity" position="before">
<field name="stock_move_id"/>
</field>
<record id="view_move_line_form" model="ir.ui.view">
<field name="name">account.move.line.form</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_form"/>
<field name="arch" type="xml">
<field name="quantity" position="before">
<field name="stock_move_id"/>
</field>
</record>
</field>
</record>
<record id="view_move_line_form2" model="ir.ui.view">
<field name="name">account.move.line.form2</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_form2"/>
<field name="arch" type="xml">
<field name="quantity" position="before">
<field name="stock_move_id"/>
</field>
<record id="view_move_line_form2" model="ir.ui.view">
<field name="name">account.move.line.form2</field>
<field name="model">account.move.line</field>
<field name="inherit_id" ref="account.view_move_line_form2"/>
<field name="arch" type="xml">
<field name="quantity" position="before">
<field name="stock_move_id"/>
</field>
</record>
</field>
</record>
</odoo>

View File

@@ -1,35 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="view_move_form" model="ir.ui.view">
<field name="name">stock.move.form</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_form"/>
<field name="arch" type="xml">
<group name="moved_quants_grp" position="after">
<group name="account_move_lines_grp"
string="Journal Items" colspan="4">
<field name="account_move_line_ids" readonly="1"
nolabel="1"/>
</group>
<record id="view_move_form" model="ir.ui.view">
<field name="name">stock.move.form</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_form"/>
<field name="arch" type="xml">
<group name="moved_quants_grp" position="after">
<group name="account_move_lines_grp"
string="Journal Items" colspan="4">
<field name="account_move_line_ids" readonly="1"
nolabel="1"/>
</group>
</field>
</record>
</group>
</field>
</record>
<record id="view_move_picking_form" model="ir.ui.view">
<field name="name">stock.move.form</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_picking_form"/>
<field name="arch" type="xml">
<group name="moved_quants_grp" position="after">
<group name="account_move_lines_grp"
string="Journal Items" colspan="4">
<field name="account_move_line_ids" readonly="1"
nolabel="1"/>
</group>
<record id="view_move_picking_form" model="ir.ui.view">
<field name="name">stock.move.form</field>
<field name="model">stock.move</field>
<field name="inherit_id" ref="stock.view_move_picking_form"/>
<field name="arch" type="xml">
<group name="moved_quants_grp" position="after">
<group name="account_move_lines_grp"
string="Journal Items" colspan="4">
<field name="account_move_line_ids" readonly="1"
nolabel="1"/>
</group>
</field>
</record>
</group>
</field>
</record>
</odoo>