mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[FIX] Various fixes:
- Error with the sequence number. - Visible texts that should be in uppercases. - order_id should only be visible if group_stock_request_order option is enabled. - adds more tests - adds consistency between models company-wise
This commit is contained in:
@@ -12,6 +12,12 @@ class StockRequestAllocation(models.Model):
|
||||
comodel_name='stock.request',
|
||||
required=True, ondelete='cascade',
|
||||
)
|
||||
company_id = fields.Many2one(string='Company',
|
||||
comodel_name='res.company',
|
||||
readonly=True,
|
||||
related='stock_request_id.company_id',
|
||||
store=True,
|
||||
)
|
||||
stock_move_id = fields.Many2one(string='Stock Move',
|
||||
comodel_name='stock.move',
|
||||
required=True, ondelete='cascade',
|
||||
|
||||
Reference in New Issue
Block a user