stock_usability: improve display of reservations
mrp_usability: disable change in view to fix a bug
This commit is contained in:
@@ -13,10 +13,11 @@
|
||||
<field name="model">mrp.production</field>
|
||||
<field name="inherit_id" ref="mrp.mrp_production_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<!--
|
||||
<label for="product_qty" position="before">
|
||||
<field name="location_src_id" groups="stock.group_stock_multi_locations" options="{'no_create': True}" attrs="{'readonly': [('state', '!=', 'draft')]}" position="move"/>
|
||||
<field name="location_dest_id" groups="stock.group_stock_multi_locations" options="{'no_create': True}" attrs="{'readonly': [('state', '!=', 'draft')]}" position="move"/>
|
||||
</label>
|
||||
</label> -->
|
||||
<xpath expr="//page[@name='miscellaneous']/group/group/field[@name='date_deadline']" position="after">
|
||||
<field name="date_start"/>
|
||||
<field name="date_finished"/>
|
||||
|
||||
@@ -16,7 +16,8 @@ class StockQuant(models.Model):
|
||||
action = self.env["ir.actions.actions"]._for_xml_id(
|
||||
"stock.stock_move_line_action")
|
||||
action['domain'] = [
|
||||
('state', 'not in', ('draft', 'done')),
|
||||
('state', 'not in', ('draft', 'done', 'cancel')),
|
||||
('reserved_uom_qty', '!=', 0),
|
||||
('product_id', '=', self.product_id.id),
|
||||
('location_id', '=', self.location_id.id),
|
||||
('lot_id', '=', self.lot_id.id or False),
|
||||
|
||||
@@ -34,6 +34,11 @@
|
||||
<field name="restrict_partner_id" readonly="1"/>
|
||||
</group>
|
||||
</group>
|
||||
<group name="linked_group" position="after">
|
||||
<group name="move_line_ids" string="Product Moves" colspan="2">
|
||||
<field name="move_line_ids" nolabel="1" readonly="1" colspan="2"/>
|
||||
</group>
|
||||
</group>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user