[IMP] add currency_id to view currency after-field

This commit is contained in:
Stepan Savelyev 2020-01-20 16:27:34 +05:00
parent a1fcf4acf3
commit 94dd561e7f
2 changed files with 3 additions and 1 deletions

View File

@ -4,4 +4,5 @@ from odoo import fields, models
class CrmLead(models.Model): class CrmLead(models.Model):
_inherit = "crm.lead" _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)

View File

@ -9,6 +9,7 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='date_deadline']" position="after"> <xpath expr="//field[@name='date_deadline']" position="after">
<field name="cost_price"/> <field name="cost_price"/>
<field name="currency_id" invisible="1"/>
</xpath> </xpath>
</field> </field>
</record> </record>