OpenERP 7 :
under the Physical inventory in inventory order line
I want "Product Unit of Measure" field as read-only
When I select the product then my unit assigns to that field.
and this is a dropdown how can I achieve this.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
Hello, Sushant
You can inherit stock inventory line form view as below mentioned code
<record id="stock_inventory_line_inherit" model="ir.ui.view">
<field name="name">stock.inventory.line.form.inherit</field>
<field name="model">stock.inventory.line</field>
<field name="inherit_id" ref="stock.view_inventory_line_form"/>
<field name="arch" type="xml">
<field name='product_uom' position="replace">
<field name="product_uom" groups="product.group_uom" readonly='1'/>
<field>
</field>
</record>
Thanks
Anisha Bahukhandi
Technical Content Writer
Thanks @Anisha for the reply.
I have tried this but not worked for me because my "inherit_id" is
"stock.view_inventory_form"
If I replaced this then it works but when I select the product then it returns blank. means it does not allow us to assign value to product_uom because this is read-only.
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
gru 22
|
13626 | ||
|
1
maj 22
|
6674 | ||
|
3
wrz 21
|
5722 | ||
|
1
mar 20
|
2273 | ||
|
3
mar 20
|
4627 |
If you are new to odoo development, have a look at this:
http://learnopenerp.blogspot.com/