mirror of
https://github.com/bringout/oca-financial.git
synced 2026-04-23 12:22:01 +02:00
Initial commit: OCA Financial packages (186 packages)
This commit is contained in:
commit
3e0e8473fb
8757 changed files with 947473 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
# Copyright (C) 2019 Open Source Integrators
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||||
from odoo import models
|
||||
|
||||
|
||||
class StockScrap(models.Model):
|
||||
_name = "stock.scrap"
|
||||
_inherit = ["stock.scrap", "analytic.mixin"]
|
||||
|
||||
def _prepare_move_values(self):
|
||||
res = super()._prepare_move_values()
|
||||
res.update(
|
||||
{
|
||||
"analytic_distribution": self.analytic_distribution,
|
||||
}
|
||||
)
|
||||
return res
|
||||
|
||||
def action_validate(self):
|
||||
self = self.with_context(validate_analytic=True)
|
||||
return super().action_validate()
|
||||
Loading…
Add table
Add a link
Reference in a new issue