Add "Stock" prefix to stock move labels
This commit is contained in:
1 parent
71c4f6e185
commit
2244c964fe
4 files changed
+20
-19
No files matched your search
@@ -221,7 +221,7 @@ class Purchase(
|
||||
'stock.shipment.in.return', None, None, "Shipment Returns"),
|
||||
'get_shipment_returns', searcher='search_shipment_returns')
|
||||
moves = fields.Function(
|
||||
fields.Many2Many('stock.move', None, None, "Moves"),
|
||||
fields.Many2Many('stock.move', None, None, "Stock Moves"),
|
||||
'get_moves', searcher='search_moves')
|
||||
|
||||
quoted_by = employee_field(
|
||||
@@ -1258,13 +1258,13 @@ class Line(sequence_ordered(), ModelSQL, ModelView):
|
||||
fields.Float("Invoice Progress", digits=(1, 4)),
|
||||
'get_invoice_progress')
|
||||
moves = fields.One2Many(
|
||||
'stock.move', 'origin', "Moves", readonly=True,
|
||||
'stock.move', 'origin', "Stock Moves", readonly=True,
|
||||
states={
|
||||
'invisible': ~Eval('moves'),
|
||||
})
|
||||
moves_ignored = fields.Many2Many(
|
||||
'purchase.line-ignored-stock.move', 'purchase_line', 'move',
|
||||
"Ignored Moves",
|
||||
"Ignored Stock Moves",
|
||||
domain=[
|
||||
('id', 'in', Eval('moves', [])),
|
||||
('state', '=', 'cancelled'),
|
||||
@@ -1272,8 +1272,9 @@ class Line(sequence_ordered(), ModelSQL, ModelView):
|
||||
states={
|
||||
'invisible': ~Eval('moves_ignored'),
|
||||
})
|
||||
moves_recreated = fields.Many2Many('purchase.line-recreated-stock.move',
|
||||
'purchase_line', 'move', 'Recreated Moves', readonly=True)
|
||||
moves_recreated = fields.Many2Many(
|
||||
'purchase.line-recreated-stock.move', 'purchase_line', 'move',
|
||||
"Recreated Stock Moves", readonly=True)
|
||||
moves_exception = fields.Function(
|
||||
fields.Boolean("Moves Exception"), 'get_moves_exception')
|
||||
moves_progress = fields.Function(
|
||||
@@ -2089,7 +2090,7 @@ class LineIgnoredMove(ModelSQL):
|
||||
purchase_line = fields.Many2One(
|
||||
'purchase.line', "Purchase Line", ondelete='CASCADE', required=True)
|
||||
move = fields.Many2One(
|
||||
'stock.move', "Move", ondelete='RESTRICT', required=True,
|
||||
'stock.move', "Stock Move", ondelete='RESTRICT', required=True,
|
||||
domain=[
|
||||
('origin.id', '=', Eval('purchase_line', -1), 'purchase.line'),
|
||||
('state', '=', 'cancelled'),
|
||||
@@ -2109,7 +2110,7 @@ class LineRecreatedMove(ModelSQL):
|
||||
purchase_line = fields.Many2One(
|
||||
'purchase.line', "Purchase Line", ondelete='CASCADE', required=True)
|
||||
move = fields.Many2One(
|
||||
'stock.move', "Move", ondelete='RESTRICT', required=True,
|
||||
'stock.move', "Stock Move", ondelete='RESTRICT', required=True,
|
||||
domain=[
|
||||
('origin.id', '=', Eval('purchase_line', -1), 'purchase.line'),
|
||||
('state', '=', 'cancelled'),
|
||||
@@ -2171,12 +2172,12 @@ class HandleShipmentExceptionAsk(ModelView):
|
||||
'Handle Shipment Exception'
|
||||
__name__ = 'purchase.handle.shipment.exception.ask'
|
||||
recreate_moves = fields.Many2Many(
|
||||
'stock.move', None, None, 'Recreate Moves',
|
||||
'stock.move', None, None, 'Recreate Stock Moves',
|
||||
domain=[('id', 'in', Eval('domain_moves'))],
|
||||
help=('The selected moves will be recreated. '
|
||||
'The other ones will be ignored.'))
|
||||
domain_moves = fields.Many2Many(
|
||||
'stock.move', None, None, 'Domain Moves')
|
||||
'stock.move', None, None, 'Domain Stock Moves')
|
||||
|
||||
|
||||
class HandleShipmentException(Wizard):
|
||||
|
||||
@@ -32,7 +32,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
</record>
|
||||
|
||||
<record model="ir.action.act_window" id="act_purchase_move_relate">
|
||||
<field name="name">Moves</field>
|
||||
<field name="name">Stock Moves</field>
|
||||
<field name="res_model">stock.move</field>
|
||||
<field
|
||||
name="domain"
|
||||
|
||||
@@ -250,7 +250,7 @@ class Sale(
|
||||
'stock.shipment.out.return', None, None, "Shipment Returns"),
|
||||
'get_shipment_returns', searcher='search_shipment_returns')
|
||||
moves = fields.Function(
|
||||
fields.Many2Many('stock.move', None, None, "Moves"),
|
||||
fields.Many2Many('stock.move', None, None, "Stock Moves"),
|
||||
'get_moves', searcher='search_moves')
|
||||
origin = fields.Reference(
|
||||
"Origin", selection='get_origin',
|
||||
@@ -1373,13 +1373,13 @@ class SaleLine(TaxableMixin, sequence_ordered(), ModelSQL, ModelView):
|
||||
fields.Float("Invoice Progress", digits=(1, 4)),
|
||||
'get_invoice_progress')
|
||||
moves = fields.One2Many(
|
||||
'stock.move', 'origin', "Moves", readonly=True,
|
||||
'stock.move', 'origin', "Stock Moves", readonly=True,
|
||||
states={
|
||||
'invisible': ~Eval('moves'),
|
||||
})
|
||||
moves_ignored = fields.Many2Many(
|
||||
'sale.line-ignored-stock.move', 'sale_line', 'move',
|
||||
"Ignored Moves",
|
||||
"Ignored Stock Moves",
|
||||
domain=[
|
||||
('id', 'in', Eval('moves', [])),
|
||||
('state', '=', 'cancelled'),
|
||||
@@ -1388,7 +1388,7 @@ class SaleLine(TaxableMixin, sequence_ordered(), ModelSQL, ModelView):
|
||||
'invisible': ~Eval('moves_ignored', []),
|
||||
})
|
||||
moves_recreated = fields.Many2Many('sale.line-recreated-stock.move',
|
||||
'sale_line', 'move', 'Recreated Moves', readonly=True)
|
||||
'sale_line', 'move', 'Recreated Stock Moves', readonly=True)
|
||||
moves_exception = fields.Function(
|
||||
fields.Boolean("Moves Exception"), 'get_moves_exception')
|
||||
moves_progress = fields.Function(
|
||||
@@ -2139,7 +2139,7 @@ class SaleLineIgnoredMove(ModelSQL):
|
||||
sale_line = fields.Many2One(
|
||||
'sale.line', "Sale Line", ondelete='CASCADE', required=True)
|
||||
move = fields.Many2One(
|
||||
'stock.move', "Move", ondelete='RESTRICT', required=True,
|
||||
'stock.move', "Stock Move", ondelete='RESTRICT', required=True,
|
||||
domain=[
|
||||
('origin.id', '=', Eval('sale_line', -1), 'sale.line'),
|
||||
('state', '=', 'cancelled'),
|
||||
@@ -2159,7 +2159,7 @@ class SaleLineRecreatedMove(ModelSQL):
|
||||
sale_line = fields.Many2One(
|
||||
'sale.line', "Sale Line", ondelete='CASCADE', required=True)
|
||||
move = fields.Many2One(
|
||||
'stock.move', "Move", ondelete='RESTRICT', required=True,
|
||||
'stock.move', "Stock Move", ondelete='RESTRICT', required=True,
|
||||
domain=[
|
||||
('origin.id', '=', Eval('sale_line', -1), 'sale.line'),
|
||||
('state', '=', 'cancelled'),
|
||||
@@ -2223,10 +2223,10 @@ class HandleShipmentExceptionAsk(ModelView):
|
||||
'Handle Shipment Exception'
|
||||
__name__ = 'sale.handle.shipment.exception.ask'
|
||||
recreate_moves = fields.Many2Many(
|
||||
'stock.move', None, None, 'Recreate Moves',
|
||||
'stock.move', None, None, 'Recreate Stock Moves',
|
||||
domain=[('id', 'in', Eval('domain_moves'))])
|
||||
domain_moves = fields.Many2Many(
|
||||
'stock.move', None, None, 'Domain Moves')
|
||||
'stock.move', None, None, 'Domain Stock Moves')
|
||||
|
||||
|
||||
class HandleShipmentException(Wizard):
|
||||
|
||||
@@ -20,7 +20,7 @@ this repository contains the full copyright notices and license terms. -->
|
||||
</record>
|
||||
|
||||
<record model="ir.action.act_window" id="act_sale_move_relate">
|
||||
<field name="name">Moves</field>
|
||||
<field name="name">Stock Moves</field>
|
||||
<field name="res_model">stock.move</field>
|
||||
<field
|
||||
name="domain"
|
||||
|
||||
Reference in new issue
Block a user