瀏覽代碼

[ADD] campo ruc en el formulario del pos

Rodney Elpidio Enciso Arias 6 年之前
父節點
當前提交
5176b21ace
共有 2 個文件被更改,包括 24 次插入0 次删除
  1. 1 0
      __openerp__.py
  2. 23 0
      static/src/xml/pos.xml

+ 1 - 0
__openerp__.py

@@ -14,6 +14,7 @@
         "template.xml",
     ],
     'qweb': [
+        'static/src/xml/pos.xml',
         'static/src/xml/pos_receipt.xml',
     ],
     'license': 'AGPL-3',

+ 23 - 0
static/src/xml/pos.xml

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<templates id="template" xml:space="preserve">
+
+    <!-- Mostrar Formulario -->
+    <t t-extend="ClientDetails">
+        <t t-jquery="div.client-details-left>div:first-child" t-operation="before">
+            <div class='client-detail'>
+                <span class='label'>RUC-DNI</span>
+                <span class='detail client-ruc'><t t-esc='partner.ruc' /></span>
+            </div>
+        </t>
+    </t>
+
+    <!-- Editar Formulario -->
+    <t t-extend="ClientDetailsEdit">
+        <t t-jquery="div.client-details-left>div:first-child" t-operation="before"> 
+            <div class='client-detail'>
+                <span class='label'>RUC</span>
+                <input class='detail client-ruc' name='ruc' t-att-value='partner.ruc' placeholder='RUC-DNI'></input>
+            </div>   
+        </t>
+    </t>
+</templates>