Update custom widget
This commit is contained in:
parent
23b9867eec
commit
fe09d1439f
|
|
@ -42,7 +42,7 @@
|
|||
'open_workshop_employee_imagegenerator/static/src/css/badge_template.css',
|
||||
# Cropper.js Library
|
||||
'open_workshop_employee_imagegenerator/static/lib/cropperjs/cropper.js',
|
||||
# Our custom widget
|
||||
# Our custom widgets
|
||||
'open_workshop_employee_imagegenerator/static/src/js/employee_image_widget.js',
|
||||
'open_workshop_employee_imagegenerator/static/src/xml/employee_image_widget.xml',
|
||||
],
|
||||
|
|
|
|||
|
|
@ -6,16 +6,14 @@
|
|||
<field name="model">hr.employee</field>
|
||||
<field name="inherit_id" ref="hr.view_employee_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<!-- Füge Button zum Header hinzu -->
|
||||
<xpath expr="//sheet" position="before">
|
||||
<header>
|
||||
<button name="action_open_image_generator"
|
||||
type="object"
|
||||
string="Namensschild erstellen"
|
||||
class="oe_highlight"
|
||||
icon="fa-image"
|
||||
help="Erstelle ein professionelles Namensschild mit Foto"/>
|
||||
</header>
|
||||
<!-- Füge Button nach dem image_1920 Feld ein -->
|
||||
<xpath expr="//field[@name='image_1920']" position="after">
|
||||
<button name="action_open_image_generator"
|
||||
type="object"
|
||||
string="✏️ Bild bearbeiten"
|
||||
class="btn-link"
|
||||
style="margin-left: 8px;"
|
||||
invisible="not id"/>
|
||||
</xpath>
|
||||
|
||||
<!-- Füge job_focus Feld nach job_title ein -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user