mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-19 10:12:01 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -0,0 +1,5 @@
|
|||
# Copyright (C) 2021 - TODAY, Open Source Integrators
|
||||
# Copyright (C) 2021 Serpent Consulting Services
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from . import po_backorder_wizard
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
# Copyright (C) 2021 - TODAY, Open Source Integrators
|
||||
# Copyright (C) 2021 Serpent Consulting Services
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from odoo import models
|
||||
|
||||
|
||||
class POBackorderWizard(models.TransientModel):
|
||||
_name = "pobackorder.report.wizard"
|
||||
_description = "PO Backorder Report Wizard"
|
||||
|
||||
def action_print_report(self):
|
||||
data = self.env["purchase.order.line"].search(
|
||||
[
|
||||
"&",
|
||||
("product_type", "=", "product"),
|
||||
"|",
|
||||
("bo_value", "!=", 0),
|
||||
("uigr_value", "!=", 0),
|
||||
]
|
||||
)
|
||||
return self.env.ref(
|
||||
"purchase_backorder.action_po_backorder_report"
|
||||
).report_action(data)
|
||||
|
|
@ -0,0 +1,37 @@
|
|||
<odoo>
|
||||
|
||||
<record id="po_backorder_report_view" model="ir.ui.view">
|
||||
<field name="name">PO Backorder Report Wizard</field>
|
||||
<field name="model">pobackorder.report.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form>
|
||||
<footer>
|
||||
<button
|
||||
type="object"
|
||||
name="action_print_report"
|
||||
string="Print Report"
|
||||
class="btn-primary"
|
||||
/>
|
||||
<button string="Cancel" class="btn-default" special="cancel" />
|
||||
</footer>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<record id="action_po_backorder_wizard" model="ir.actions.act_window">
|
||||
<field name="name">Generate PO Backorder Report</field>
|
||||
<field name="res_model">pobackorder.report.wizard</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="view_mode">form</field>
|
||||
<field name="view_id" ref="po_backorder_report_view" />
|
||||
<field name="target">new</field>
|
||||
</record>
|
||||
|
||||
<menuitem
|
||||
id="menu_po_backorder_report"
|
||||
action="action_po_backorder_wizard"
|
||||
parent="purchase.menu_procurement_management"
|
||||
sequence="12"
|
||||
/>
|
||||
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue