Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
8972 Lượt xem

i'm using odoo 9 and i want to apply a char field input mask so that i create a custom module to do that and i have installed the module "field_mask" but i noticed there is no difference. I want that the field "codeTVA" accept only this format "9999999/A/A/A/999". How can I do that? any idea for help please ?

 <?xml version="1.0" encoding="utf-8"?>
 <openerp>
<data>
   <record id="res_partner_view_purchase_buttons_TVA_RC" model="ir.ui.view">
        <field name="name">num.TVA.RC.res.partner.view.purchase.</field>
        <field name="model">res.partner</field>
        <field name="inherit_id" ref="base.view_partner_form"/>
        <field name="arch" type="xml">
            <xpath expr="//field[@name='website']" position="after">
                        <field name="CodeTVA" select="1" placeholder="Code TVA" widget="mask" data-inputmask-mask="9999999/A/A/A/999" />
                        <field name="RC" select="1" placeholder="Num RC"/>
            </xpath>
        </field>
   </record>
</data>
Ảnh đại diện
Huỷ bỏ

Regarding the module you have mentioned in the question, it seems the available version is 8 in the odoo store, maybe you are trying the v8 in v9, nice if you can check the same is working fine in v8, if it works in v8 well, you might need some changes in the code to work it in v9

Câu trả lời hay nhất

Hi,

You can check below module which is in Odoo V10 if is not working then you have to downgrade to v9.

https://apps.odoo.com/apps/modules/10.0/inputmask_widget/



Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 10 21
4474
2
thg 5 19
6300
0
thg 2 19
2322
0
thg 1 19
3610
1
thg 1 19
7580