Improvements and bugfixes
bzr revid: fp@tinyerp.com-fbb75888ca6f7bade138d7fb58fa5e961f42046c
This commit is contained in:
parent
b1c297f640
commit
7ac9c3e31e
|
@ -249,6 +249,9 @@ class product_pricelist_version(osv.osv):
|
|||
'active': lambda *a: 1,
|
||||
}
|
||||
|
||||
#
|
||||
# TODO: improve this function ?
|
||||
#
|
||||
def _check_date(self, cursor, user, ids):
|
||||
for pricelist_version in self.browse(cursor, user, ids):
|
||||
if not pricelist_version.active:
|
||||
|
|
|
@ -2,7 +2,11 @@
|
|||
<terp>
|
||||
<data>
|
||||
|
||||
<menuitem name="Products/Pricelists" id="menu_product_pricelist_main" sequence="2"/>
|
||||
<menuitem
|
||||
name="Products/Pricelists"
|
||||
id="menu_product_pricelist_main"
|
||||
sequence="2"
|
||||
groups="base.group_extended"/>
|
||||
|
||||
<record model="ir.ui.view" id="product_pricelist_version_form_view">
|
||||
<field name="name">product.pricelist.version.form</field>
|
||||
|
@ -161,7 +165,11 @@
|
|||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
<menuitem name="Products/Configuration/Prices Types" id="menu_product_price_type_action" action="product_price_type_action"/>
|
||||
<menuitem
|
||||
name="Products/Configuration/Prices Types"
|
||||
id="menu_product_price_type_action"
|
||||
action="product_price_type_action"
|
||||
groups="base.group_extended"/>
|
||||
|
||||
<record model="ir.ui.view" id="product_pricelist_type_view">
|
||||
<field name="name">product.pricelist.type.form</field>
|
||||
|
@ -180,7 +188,11 @@
|
|||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
</record>
|
||||
<menuitem name="Products/Configuration/Pricelists Types" id="menu_product_pricelist_type_action" action="product_pricelist_type_action"/>
|
||||
<menuitem
|
||||
name="Products/Configuration/Pricelists Types"
|
||||
id="menu_product_pricelist_type_action"
|
||||
action="product_pricelist_type_action"
|
||||
groups="base.group_extended"/>
|
||||
|
||||
</data>
|
||||
</terp>
|
||||
|
|
|
@ -312,11 +312,11 @@
|
|||
<form string="Supplier Information">
|
||||
<field name="name"/>
|
||||
<field name="sequence"/>
|
||||
<field name="product_name" />
|
||||
<field name="product_code" />
|
||||
<field name="product_name"/>
|
||||
<field name="product_code"/>
|
||||
<field name="delay"/>
|
||||
<field name="qty"/>
|
||||
<field name="pricelist_ids" widget="one2many_list" colspan="4" nolabel="1">
|
||||
<field name="pricelist_ids" widget="one2many_list" colspan="4" nolabel="1" groups="base.group_extended">
|
||||
<tree string="Pricelist" editable="bottom">
|
||||
<field name="min_quantity" />
|
||||
<field name="price" />
|
||||
|
|
|
@ -86,6 +86,7 @@ class stock_location(osv.osv):
|
|||
'chained_location_id': fields.many2one('stock.location', 'Chained Location If Fixed'),
|
||||
'chained_location_type': fields.selection([('','None'),('customer', 'Customer'),('fixed','Fixed Location')], 'Chained Location Type'),
|
||||
'chained_auto_packing': fields.boolean('Chained Auto-Packing'),
|
||||
'chained_delay': fields.integer('Chained Delay (days)'),
|
||||
|
||||
'address_id': fields.many2one('res.partner.address', 'Location Address'),
|
||||
|
||||
|
@ -461,6 +462,7 @@ class stock_picking(osv.osv):
|
|||
'prodlot_id':False,
|
||||
'tracking_id':False,
|
||||
'move_history_ids':[],
|
||||
'date_planned': DateTime.strptime(move.date_planned, '%Y-%m-%d') + DateTime.RelativeDateTime(days=move.location_dest_id.chained_delay or 0),
|
||||
'move_history_ids2':[]}
|
||||
)
|
||||
self.pool.get('stock.move').write(cr, uid, [move.id], {
|
||||
|
|
|
@ -329,6 +329,7 @@
|
|||
<field name="chained_location_type"/>
|
||||
<field name="chained_location_id"/>
|
||||
<field name="chained_auto_packing"/>
|
||||
<field name="chained_delay"/>
|
||||
<newline/>
|
||||
<field name="comment" colspan="4"/>
|
||||
</page>
|
||||
|
|
Loading…
Reference in New Issue