can I change the format of an invoice? can I do it by changing the coding?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
1
Trả lời
4035
Lượt xem
Hi,
Add this code in py file in your new module to add new field.
class account_invoice(osv.osv):
_inherit = "account.invoice"
_columns = {
'test_name' : fields.char('Test name', size='120'),
}
account_invoice()
Add in xml file in new module to add new field.
<record id="inherit_invoice_form" model="ir.ui.view">
<field name="name">account.invoice.form.inherit</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_supplier_form"/>
<field name="arch" type="xml">
<field name="account_id" position="after">
<field name="test_name"/>
</field>
</field>
</record>
Try this
Thanks
Thanks jack :)
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
Which type of changes you want do ?
I need to add and remove some fields and change the headings.