6
by jeff
pdf fonts replace, next step:_get_system_fonts |
1 |
<?xml version="1.0" encoding="utf-8"?>
|
2 |
<!-- __author__ = jeff@openerp.cn -->
|
|
3 |
<openerp>
|
|
4 |
<data>
|
|
5 |
<!-- configartion view -->
|
|
6 |
||
7 |
<record id="view_config_fonts_map" model="ir.ui.view"> |
|
8 |
<field name="name">Configure Fonts Mapping for pdf reports</field> |
|
9 |
<field name="model">oecn_base_fonts.config</field> |
|
10 |
<field name="type">form</field> |
|
11 |
<field name="inherit_id" ref="base.res_config_view_base"/> |
|
12 |
<field name="arch" type="xml"> |
|
13 |
<data>
|
|
14 |
<form position="attributes"> |
|
15 |
<attribute name="string">Fonts Mapping Configuration</attribute> |
|
16 |
</form>
|
|
17 |
<separator string="title" position="attributes"> |
|
25
by Tony Gu
make CJK wrap a boolean |
18 |
<attribute name="string">pdf font support for your language</attribute> |
6
by jeff
pdf fonts replace, next step:_get_system_fonts |
19 |
</separator>
|
20 |
<xpath expr="//label[@string='description']" position="attributes"> |
|
25
by Tony Gu
make CJK wrap a boolean |
21 |
<attribute name="string">Fonts used in the default report may not support the characters in your lanuage. Use the setting here to replace the Original font with the font you choose</attribute> |
6
by jeff
pdf fonts replace, next step:_get_system_fonts |
22 |
</xpath>
|
23 |
<xpath expr='//separator[@string="vsep"]' position='attributes'> |
|
24 |
<attribute name='rowspan'>15</attribute> |
|
25 |
<attribute name='string'></attribute> |
|
26 |
</xpath>
|
|
27 |
<group string="res_config_contents" position="replace"> |
|
25
by Tony Gu
make CJK wrap a boolean |
28 |
<field name="wrap"/> |
29 |
<newline/>
|
|
30 |
<newline/>
|
|
31 |
<field name="map_ids" nolabel="1" colspan="4"> |
|
32 |
<tree string="Font replace" editable='top'> |
|
6
by jeff
pdf fonts replace, next step:_get_system_fonts |
33 |
<field name = 'pdf_font'/> |
31
by Tony Gu
get font alias from onchange event |
34 |
<field name = 'new_font' on_change="onchange_new_font(new_font)"/> |
35 |
<field name = 'name'/> |
|
6
by jeff
pdf fonts replace, next step:_get_system_fonts |
36 |
</tree>
|
37 |
</field>
|
|
38 |
</group>
|
|
39 |
<xpath expr='//button[@name="action_skip"]' position='replace'/> |
|
40 |
</data>
|
|
41 |
</field>
|
|
42 |
</record>
|
|
43 |
||
44 |
<record id="action_config_fonts_map" model="ir.actions.act_window"> |
|
45 |
<field name="name">Configure Fonts Mapping for pdf reports</field> |
|
46 |
<field name="type">ir.actions.act_window</field> |
|
47 |
<field name="res_model">oecn_base_fonts.config</field> |
|
48 |
<field name="view_id" ref="view_config_fonts_map"/> |
|
49 |
<field name="view_type">form</field> |
|
50 |
<field name="view_mode">form</field> |
|
51 |
<field name="target">new</field> |
|
52 |
</record>
|
|
53 |
||
54 |
<!-- register configuration wizard -->
|
|
55 |
<record id="config_wizard_step_fonts_map" model="ir.actions.todo"> |
|
56 |
<field name="action_id" ref="action_config_fonts_map"/> |
|
57 |
<field name="restart">always</field> |
|
58 |
</record>
|
|
59 |
||
60 |
</data>
|
|
61 |
</openerp>
|