feat(snippets): update
This commit is contained in:
1 parent
03798fb293
commit
da4ad10a9e
4 files changed
+19
-7
No files matched your search
@@ -1,21 +1,26 @@
|
||||
<data priority="50">
|
||||
|
||||
<!-- Remove reference -->
|
||||
<xpath expr="/t/t/div/div[1]/div[5]" position="replace">
|
||||
<xpath expr="//div[@name='reference']" position="replace">
|
||||
</xpath>
|
||||
|
||||
<!-- Add sales person -->
|
||||
<xpath expr="/t/t/div/div[1]/div[1]" position="after">
|
||||
<div class="col-auto mw-100 mb-2" t-if="o.invoice_user_id" name="invoice_user_id">
|
||||
<strong>Salesperson:</strong>
|
||||
<xpath expr="//div[@name='invoice_date']" position="after">
|
||||
<div class="col" t-if="o.invoice_user_id" name="invoice_user_id">
|
||||
<strong>Salesperson</strong>
|
||||
<p class="m-0" t-field="o.invoice_user_id.name"/>
|
||||
</div>
|
||||
|
||||
</xpath>
|
||||
|
||||
<!-- Add referencce to new line -->
|
||||
<xpath expr="//div[@id='informations']" position="after">
|
||||
<div id="informations2" class="row mt32 mb32" t-if="o.ref">
|
||||
<div class="col-auto mw-100 mb-2" name="reference">
|
||||
<strong>Reference:</strong>
|
||||
<strong>Reference</strong>
|
||||
<p class="m-0" t-field="o.ref"/>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
</data>
|
||||
@@ -1,5 +1,5 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//p[@t-field='o.invoice_origin']" position="attributes">
|
||||
<xpath expr="//div[@t-field='o.invoice_origin']" position="attributes">
|
||||
<attribute name="t-field">o.x_picking_list</attribute>
|
||||
</xpath>
|
||||
</data>
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
<data priority="50">
|
||||
<field name="expense_currency_exchange_account_id" position="attributes">
|
||||
<attribute name="domain">[('internal_type', '=', 'other'), ('deprecated', '=', False)]</attribute>
|
||||
<attribute name="domain">[('account_type', '=', 'other'), ('deprecated', '=', False)]</attribute>
|
||||
</field>
|
||||
</data>
|
||||
@@ -0,0 +1,7 @@
|
||||
<data priority="50">
|
||||
<xpath expr="//t[@t-if='record.recurring_revenue and record.recurring_revenue.raw_value']/parent::div" position="after">
|
||||
<div>
|
||||
<span class="o_text_overflow" t-if="record.description" t-esc="record.description.value"/>
|
||||
</div>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in new issue
Block a user