mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[IMP] contract_variable_quantity: Add qty_type field in portal
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
"views/contract_line_views.xml",
|
||||
"views/contract_template.xml",
|
||||
"views/contract.xml",
|
||||
"views/contract_portal_templates.xml",
|
||||
],
|
||||
"installable": True,
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 13.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2021-01-04 08:02+0000\n"
|
||||
"PO-Revision-Date: 2021-01-04 08:02+0000\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -194,6 +196,11 @@ msgstr ""
|
||||
msgid "Skip Zero Qty Lines"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model_terms:ir.ui.view,arch_db:contract_variable_quantity.portal_contract_page
|
||||
msgid "Variable"
|
||||
msgstr ""
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.model.fields.selection,name:contract_variable_quantity.selection__contract_abstract_contract_line__qty_type__variable
|
||||
#: model:ir.model.fields.selection,name:contract_variable_quantity.selection__contract_line__qty_type__variable
|
||||
|
||||
@@ -8,16 +8,16 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Odoo Server 11.0\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-04-27 01:12+0000\n"
|
||||
"PO-Revision-Date: 2019-10-30 01:33+0000\n"
|
||||
"POT-Creation-Date: 2021-01-04 08:02+0000\n"
|
||||
"PO-Revision-Date: 2021-01-04 09:03+0100\n"
|
||||
"Last-Translator: Josep M <jmyepes@mac.com>\n"
|
||||
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
|
||||
"Language: es\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: \n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
||||
"X-Generator: Weblate 3.8\n"
|
||||
"X-Generator: Poedit 2.3\n"
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model_terms:ir.ui.view,arch_db:contract_variable_quantity.view_contract_line_qty_formula_form
|
||||
@@ -219,6 +219,11 @@ msgstr "Tipo cantidad"
|
||||
msgid "Skip Zero Qty Lines"
|
||||
msgstr "Saltar líneas con cantidad 0"
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model_terms:ir.ui.view,arch_db:contract_variable_quantity.portal_contract_page
|
||||
msgid "Variable"
|
||||
msgstr "Variable"
|
||||
|
||||
#. module: contract_variable_quantity
|
||||
#: model:ir.model.fields.selection,name:contract_variable_quantity.selection__contract_abstract_contract_line__qty_type__variable
|
||||
#: model:ir.model.fields.selection,name:contract_variable_quantity.selection__contract_line__qty_type__variable
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
* Pedro M. Baeza
|
||||
* Carlos Roca
|
||||
* Víctor Martínez
|
||||
|
||||
* Dave Lasley <dave@laslabs.com>
|
||||
* Souheil Bejaoui <souheil.bejaoui@acsone.eu>
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<odoo>
|
||||
<template
|
||||
id="portal_contract_page"
|
||||
inherit_id="contract.portal_contract_page"
|
||||
name="My Contract - Qty types"
|
||||
>
|
||||
<xpath expr="//td[@name='td_quantity']/span" position="attributes">
|
||||
<attribute name="t-if">line.qty_type=='fixed'</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//td[@name='td_quantity']/span" position="after">
|
||||
<span t-if="line.qty_type=='variable'">Variable</span>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user