[IMP] add currency_id to view currency after-field
This commit is contained in:
parent
a1fcf4acf3
commit
94dd561e7f
@ -4,4 +4,5 @@ from odoo import fields, models
|
||||
class CrmLead(models.Model):
|
||||
_inherit = "crm.lead"
|
||||
|
||||
cost_price = fields.Integer(string="Cost Price", default=0)
|
||||
cost_price = fields.Monetary(string="Cost Price", default=0)
|
||||
currency_id = fields.Many2one(related="company_id.currency_id", string="Currency", readonly=True)
|
||||
|
@ -9,6 +9,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='date_deadline']" position="after">
|
||||
<field name="cost_price"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
Loading…
x
Reference in New Issue
Block a user