[IMP] Added company_id fields to pricelist views
bzr revid: fabian@fabian-openerp-20091223141138-7nx2lm292qtagseh
This commit is contained in:
parent
abecde80e6
commit
04de6bdc97
|
@ -277,7 +277,8 @@ class product_pricelist_version(osv.osv):
|
|||
'price_version_id', 'Price List Items', required=True),
|
||||
'date_start': fields.date('Start Date', help="Starting date for this pricelist version to be valid."),
|
||||
'date_end': fields.date('End Date', help="Ending date for this pricelist version to be valid."),
|
||||
'company_id': fields.related('pricelist_id','company_id',type='many2one',relation='res.company',string='Company',store=True)
|
||||
'company_id': fields.related('pricelist_id','company_id',type='many2one',
|
||||
readonly=True, relation='res.company', string='Company', store=True)
|
||||
}
|
||||
_defaults = {
|
||||
'active': lambda *a: 1,
|
||||
|
@ -374,7 +375,8 @@ class product_pricelist_item(osv.osv):
|
|||
digits=(16, int(config['price_accuracy']))),
|
||||
'price_max_margin': fields.float('Max. Price Margin',
|
||||
digits=(16, int(config['price_accuracy']))),
|
||||
'company_id': fields.related('price_version_id','company_id',type='many2one',relation='res.company',string='Company',store=True)
|
||||
'company_id': fields.related('price_version_id','company_id',type='many2one',
|
||||
readonly=True, relation='res.company', string='Company', store=True)
|
||||
}
|
||||
|
||||
_constraints = [
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<field colspan="4" name="pricelist_id" select="1"/>
|
||||
<field name="date_start" select="1"/>
|
||||
<field name="date_end" select="1"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field colspan="4" name="items_id" nolabel="1" widget="one2many_list"/>
|
||||
</form>
|
||||
</field>
|
||||
|
@ -69,6 +70,7 @@
|
|||
<field name="product_id" on_change="product_id_change(product_id)" select="1"/>
|
||||
<field name="product_tmpl_id" select="1"/>
|
||||
<field name="categ_id" select="1"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<newline/>
|
||||
<field name="min_quantity"/>
|
||||
<field name="sequence"/>
|
||||
|
@ -115,6 +117,7 @@
|
|||
<field name="active" select="1"/>
|
||||
<field name="type" select="1"/>
|
||||
<field name="currency_id" select="1"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
<field colspan="4" name="version_id" nolabel="1">
|
||||
<form string="Pricelist Version">
|
||||
<field name="name" select="1"/>
|
||||
|
|
Loading…
Reference in New Issue