mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
done multi add
This commit is contained in:
@@ -1,14 +1,23 @@
|
||||
# Translation of Odoo Server.
|
||||
# This file contains the translation of the following modules:
|
||||
# * app_account_invoice_product_multi_add
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 10.0\n"
|
||||
"Project-Id-Version: Odoo Server 12.0+e-20190301\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-08 14:28+0000\n"
|
||||
"PO-Revision-Date: 2018-01-08 14:28+0000\n"
|
||||
"POT-Creation-Date: 2019-03-14 16:06+0000\n"
|
||||
"PO-Revision-Date: 2019-03-14 16:06+0000\n"
|
||||
"Last-Translator: <>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \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 "批量添加"
|
||||
|
||||
|
||||
@@ -1,17 +1,19 @@
|
||||
<odoo>
|
||||
<data>
|
||||
<data>
|
||||
<!-- Inherit Form View to Modify it -->
|
||||
<record id="app_invoice_form" model="ir.ui.view">
|
||||
<field name="name">app.account.invoice.form</field>
|
||||
<field name="model">account.invoice</field>
|
||||
<field name="inherit_id" ref="account.invoice_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page/field[@name='invoice_line_ids']/tree/control" position="inside">
|
||||
<create string="Multi Add Line" context="{
|
||||
<xpath expr="//page/field[@name='invoice_line_ids']/tree/field[1]" position="before">
|
||||
<control>
|
||||
<create string="Multi Add Line" context="{
|
||||
'pro_multi_add': True,
|
||||
'pro_res_model': 'product.product',
|
||||
'pro_res_field': 'product_id',
|
||||
}"/>
|
||||
</control>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
@@ -20,14 +22,16 @@
|
||||
<field name="model">account.invoice</field>
|
||||
<field name="inherit_id" ref="account.invoice_supplier_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//page/field[@name='invoice_line_ids']/tree/control" position="inside">
|
||||
<create string="Multi Add Line" context="{
|
||||
<xpath expr="//page/field[@name='invoice_line_ids']/tree/field[1]" position="before">
|
||||
<control>
|
||||
<create string="Multi Add Line" context="{
|
||||
'pro_multi_add': True,
|
||||
'pro_res_model': 'product.product',
|
||||
'pro_res_field': 'product_id',
|
||||
}"/>
|
||||
</control>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
</data>
|
||||
</data>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user