hello everyone, please i have to add a static element named unity with type char like this :
http://imgur.com/iy1AiRt
just help me of what should i do first and i will continue the rest thanks.
best regards
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hello everyone, please i have to add a static element named unity with type char like this :
http://imgur.com/iy1AiRt
just help me of what should i do first and i will continue the rest thanks.
best regards
Hello Medmars,
In py
class AccountInvoiceLine(models.Model):
_inherit = 'account.invoice.line'
unity = fields.Char('Unity')
In Xml
<record id="account_invoice_line_tree_view_inherit" model="ir.ui.view">
<field name="name">account.invoice.line.view.inherit</field>
<field name="model">account.invoice</field>
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<xpath expr="/form/sheet/notebook/page[1]/field[@name='invoice_line_ids']/tree/field[@name='quantity']" position="after">
<field name="unity"/>
</xpath>
</field>
</record>
Hope it will works for you.
Thanks,
is there any method to do it from the developer mode ( odoo 9 )
Nope. This is only the possible way to add fields.
This works perfectly. Thanks, mate
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren| Verknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
|---|---|---|---|---|
|
1
Juli 25
|
1780 | |||
|
2
Juli 25
|
2191 | |||
|
1
Juli 25
|
3113 | |||
|
3
Apr. 25
|
2957 | |||
|
3
Apr. 25
|
3965 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.