done multi add

This commit is contained in:
ivan deng
2019-03-15 00:08:04 +08:00
parent 54e80560fa
commit 68b38b5f2e
6 changed files with 75 additions and 22 deletions

View File

@@ -1,14 +1,23 @@
# Translation of Odoo Server. # Translation of Odoo Server.
# This file contains the translation of the following modules:
# * app_account_invoice_product_multi_add
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 10.0\n" "Project-Id-Version: Odoo Server 12.0+e-20190301\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-08 14:28+0000\n" "POT-Creation-Date: 2019-03-14 16:06+0000\n"
"PO-Revision-Date: 2018-01-08 14:28+0000\n" "PO-Revision-Date: 2019-03-14 16:06+0000\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: \n" "Plural-Forms: \n"
#. module: app_account_invoice_product_multi_add
#: model_terms:ir.ui.view,arch_db:app_account_invoice_product_multi_add.app_invoice_form
#: model_terms:ir.ui.view,arch_db:app_account_invoice_product_multi_add.app_invoice_supplier_form
msgid "Multi Add Line"
msgstr "批量添加"

View File

@@ -1,17 +1,19 @@
<odoo> <odoo>
<data> <data>
<!-- Inherit Form View to Modify it --> <!-- Inherit Form View to Modify it -->
<record id="app_invoice_form" model="ir.ui.view"> <record id="app_invoice_form" model="ir.ui.view">
<field name="name">app.account.invoice.form</field> <field name="name">app.account.invoice.form</field>
<field name="model">account.invoice</field> <field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/> <field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//page/field[@name='invoice_line_ids']/tree/control" position="inside"> <xpath expr="//page/field[@name='invoice_line_ids']/tree/field[1]" position="before">
<create string="Multi Add Line" context="{ <control>
<create string="Multi Add Line" context="{
'pro_multi_add': True, 'pro_multi_add': True,
'pro_res_model': 'product.product', 'pro_res_model': 'product.product',
'pro_res_field': 'product_id', 'pro_res_field': 'product_id',
}"/> }"/>
</control>
</xpath> </xpath>
</field> </field>
</record> </record>
@@ -20,14 +22,16 @@
<field name="model">account.invoice</field> <field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/> <field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//page/field[@name='invoice_line_ids']/tree/control" position="inside"> <xpath expr="//page/field[@name='invoice_line_ids']/tree/field[1]" position="before">
<create string="Multi Add Line" context="{ <control>
<create string="Multi Add Line" context="{
'pro_multi_add': True, 'pro_multi_add': True,
'pro_res_model': 'product.product', 'pro_res_model': 'product.product',
'pro_res_field': 'product_id', 'pro_res_field': 'product_id',
}"/> }"/>
</control>
</xpath> </xpath>
</field> </field>
</record> </record>
</data> </data>
</odoo> </odoo>

View File

@@ -1,14 +1,27 @@
# Translation of Odoo Server. # Translation of Odoo Server.
# This file contains the translation of the following modules:
# * app_mrp_bom_product_multi_add
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 10.0\n" "Project-Id-Version: Odoo Server 12.0+e-20190301\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-08 14:28+0000\n" "POT-Creation-Date: 2019-03-14 16:07+0000\n"
"PO-Revision-Date: 2018-01-08 14:28+0000\n" "PO-Revision-Date: 2019-03-14 16:07+0000\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: \n" "Plural-Forms: \n"
#. module: app_mrp_bom_product_multi_add
#: model_terms:ir.ui.view,arch_db:app_mrp_bom_product_multi_add.app_mrp_bom_form_view
msgid "Add a line"
msgstr "添加明细行"
#. module: app_mrp_bom_product_multi_add
#: model_terms:ir.ui.view,arch_db:app_mrp_bom_product_multi_add.app_mrp_bom_form_view
msgid "Multi add line"
msgstr "批量添加"

View File

@@ -1,14 +1,27 @@
# Translation of Odoo Server. # Translation of Odoo Server.
# This file contains the translation of the following modules:
# * app_purchase_product_multi_add
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 10.0\n" "Project-Id-Version: Odoo Server 12.0+e-20190301\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-08 14:28+0000\n" "POT-Creation-Date: 2019-03-14 15:59+0000\n"
"PO-Revision-Date: 2018-01-08 14:28+0000\n" "PO-Revision-Date: 2019-03-14 15:59+0000\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: \n" "Plural-Forms: \n"
#. module: app_purchase_product_multi_add
#: model_terms:ir.ui.view,arch_db:app_purchase_product_multi_add.app_purchase_order_form
msgid "Add a product"
msgstr "添加产品"
#. module: app_purchase_product_multi_add
#: model_terms:ir.ui.view,arch_db:app_purchase_product_multi_add.app_purchase_order_form
msgid "Multi Add Product"
msgstr "批量添加"

View File

@@ -1,14 +1,27 @@
# Translation of Odoo Server. # Translation of Odoo Server.
# This file contains the translation of the following modules:
# * app_stock_picking_product_multi_add
# #
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 10.0\n" "Project-Id-Version: Odoo Server 12.0+e-20190301\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-08 14:28+0000\n" "POT-Creation-Date: 2019-03-14 16:03+0000\n"
"PO-Revision-Date: 2018-01-08 14:28+0000\n" "PO-Revision-Date: 2019-03-14 16:03+0000\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: \n" "Plural-Forms: \n"
#. module: app_stock_picking_product_multi_add
#: model_terms:ir.ui.view,arch_db:app_stock_picking_product_multi_add.app_view_picking_form
msgid "Add a line"
msgstr "添加明细行"
#. module: app_stock_picking_product_multi_add
#: model_terms:ir.ui.view,arch_db:app_stock_picking_product_multi_add.app_view_picking_form
msgid "Multi add line"
msgstr "批量添加"

View File

@@ -6,14 +6,15 @@
<field name="inherit_id" ref="stock.view_picking_form"/> <field name="inherit_id" ref="stock.view_picking_form"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//page/field[@name='move_ids_without_package']/tree/field[1]" position="before"> <xpath expr="//page/field[@name='move_ids_without_package']/tree/field[1]" position="before">
<control> <control>
<create string="Add a line"/> <create string="Add a line"/>
<create string="Multi add line" context="{ <create string="Multi add line" context="{
'pro_multi_add': True, 'pro_multi_add': True,
'pro_res_model': 'product.product', 'pro_res_model': 'product.product',
'pro_res_field': 'product_id', 'pro_res_field': 'product_id',
}"/> }"/>
</control> </control>
</xpath>
</field> </field>
</record> </record>
</data> </data>