Browse Source

[FIX] FIXUP

pull/449/head
Swapnesh 5 years ago
parent
commit
6d7dc11f0e
  1. 4
      contract_line_invoice_by_average/models/contract_line.py
  2. BIN
      contract_line_invoice_by_average/static/description/icon.png
  3. 8
      contract_line_invoice_by_average/views/contract_line_view.xml

4
contract_line_invoice_by_average/models/contract_line.py

@ -3,8 +3,8 @@
from odoo import api, fields, models
class ContractLine(models.AbstractModel):
_inherit = 'contract.abstract.contract.line'
class ContractLine(models.Model):
_inherit = 'contract.line'
products_invoiced_by_avg_ids = fields.Many2many(
comodel_name='product.product',

BIN
contract_line_invoice_by_average/static/description/icon.png

Before

Width: 128  |  Height: 128  |  Size: 9.2 KiB

8
contract_line_invoice_by_average/views/contract_line_view.xml

@ -1,11 +1,11 @@
<odoo>
<record id='contract_abstract_contract_line_form_view' model='ir.ui.view'>
<record id='contract_line_form_view' model='ir.ui.view'>
<field name='name'>inherit.contract.line.form.view</field>
<field name='model'>contract.abstract.contract.line</field>
<field name='inherit_id' ref='contract.contract_abstract_contract_line_form_view'/>
<field name='model'>contract.line</field>
<field name='inherit_id' ref="contract.contract_line_form_view"/>
<field name='arch' type='xml'>
<field name='discount' position='before'>
<field name='price_unit' position='after'>
<field name='products_invoiced_by_avg_ids' widget="many2many_tags"/>
</field>
</field>

Loading…
Cancel
Save