diff --git a/purchase_recurring_orders/README.rst b/purchase_recurring_orders/README.rst new file mode 100755 index 000000000..2efe9a8ee --- /dev/null +++ b/purchase_recurring_orders/README.rst @@ -0,0 +1,44 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Purchase Recurring Orders +========================= +This module allows you to create recurring orders for purchases. + +Configuration +============= +No additional configuration required + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +Developer: (V16) Unnimaya C O, + (V17) Ayana K P, + (V18) Gayathri V, +Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com + +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit `Our Website `__ + +Further information +=================== +HTML Description: ``__ diff --git a/purchase_recurring_orders/__init__.py b/purchase_recurring_orders/__init__.py new file mode 100644 index 000000000..0f1cf5b3a --- /dev/null +++ b/purchase_recurring_orders/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import models +from . import wizard diff --git a/purchase_recurring_orders/__manifest__.py b/purchase_recurring_orders/__manifest__.py new file mode 100644 index 000000000..3abcc9346 --- /dev/null +++ b/purchase_recurring_orders/__manifest__.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +{ + 'name': 'Purchase Recurring Orders', + 'version': '18.0.1.0.0', + 'category': 'Inventory,Purchases', + 'summary': """Helps to create Purchase Recurring orders""", + 'description': """This module Helps to create recurring orders for + Purchases based on the information provided.""", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['purchase'], + 'data': [ + 'security/ir.model.access.csv', + 'data/ir_cron_data.xml', + 'data/ir_sequence_data.xml', + 'wizard/renew_wizard_views.xml', + 'views/recurring_orders_views.xml', + 'views/purchase_order_views.xml', + 'views/res_partner_views.xml', + ], + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/purchase_recurring_orders/data/ir_cron_data.xml b/purchase_recurring_orders/data/ir_cron_data.xml new file mode 100644 index 000000000..3574fcdf7 --- /dev/null +++ b/purchase_recurring_orders/data/ir_cron_data.xml @@ -0,0 +1,39 @@ + + + + + + Prolongation Check for Recurring Orders Agreements + + + ir.actions.server + code + model.revise_agreements_expirations_planned() + + 1 + days + + + + Confirm Current Orders + + ir.actions.server + code + model.confirm_current_orders_planned() + 1 + days + + + + Generate Recurring Orders for Next Year + + ir.actions.server + code + model.generate_next_orders_planned() + 1 + days + + + diff --git a/purchase_recurring_orders/data/ir_sequence_data.xml b/purchase_recurring_orders/data/ir_sequence_data.xml new file mode 100644 index 000000000..7983fe818 --- /dev/null +++ b/purchase_recurring_orders/data/ir_sequence_data.xml @@ -0,0 +1,12 @@ + + + + + + Agreement Sequence + purchase.r_o.agreement.sequence + 4 + AG-%(y)s- + + + diff --git a/purchase_recurring_orders/doc/RELEASE_NOTES.md b/purchase_recurring_orders/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..f1c596452 --- /dev/null +++ b/purchase_recurring_orders/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 15.01.2025 +#### Version 18.0.1.0.0 +#### ADD + +- Initial commit for Purchase Recurring Orders diff --git a/purchase_recurring_orders/models/__init__.py b/purchase_recurring_orders/models/__init__.py new file mode 100644 index 000000000..b79da236c --- /dev/null +++ b/purchase_recurring_orders/models/__init__.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from . import purchase_agreement_renewal +from . import purchase_order +from . import purchase_recurring_agreement +from . import recurring_agreement_line diff --git a/purchase_recurring_orders/models/purchase_agreement_renewal.py b/purchase_recurring_orders/models/purchase_agreement_renewal.py new file mode 100644 index 000000000..e0a1348ff --- /dev/null +++ b/purchase_recurring_orders/models/purchase_agreement_renewal.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import fields, models + + +class PurchaseAgreementRenewal(models.Model): + """Renew purchase recurring agreement""" + _name = 'purchase.agreement.renewal' + _description = "Purchase Agreement Renewal" + + recurring_agreement_id = fields.Many2one('purchase.recurring.agreement', + string='Agreement Reference', + ondelete='cascade') + date = fields.Datetime(string='Date', help="Date of the Renewal") + comments = fields.Char( + string='Comments', size=200, help='Renewal comments') diff --git a/purchase_recurring_orders/models/purchase_order.py b/purchase_recurring_orders/models/purchase_order.py new file mode 100644 index 000000000..5b191fef8 --- /dev/null +++ b/purchase_recurring_orders/models/purchase_order.py @@ -0,0 +1,98 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author:Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import api, fields, models + + +class PurchaseOrder(models.Model): + """purchase Order Inherited""" + _inherit = 'purchase.order' + + @api.model + def _prepare_agreement_vals(self, order): + """ Method for creating agreement values""" + return { + 'name': order.name, + 'partner_id': order.partner_id.id, + 'company_id': order.company_id.id, + 'start_date': fields.Datetime.now(), + } + + @api.model + def _prepare_agreement_line_vals(self, order_ids, agreement): + """ Returns the Agreement Line Values in a Dictionary Format""" + return { + 'recurring_agreement_id': agreement.id, + 'product_id': order_ids.product_id.id, + 'quantity': order_ids.product_qty, + } + + def action_button_generate_agreement(self): + """Generates Purchase Recurring Agreement""" + agreements = [] + agreement_obj = self.env['purchase.recurring.agreement'] + agreement_line_obj = self.env['recurring.agreement.line'] + for purchase_order in self: + agreement_vals = self._prepare_agreement_vals(purchase_order) + agreement = agreement_obj.create(agreement_vals) + agreements.append(agreement) + for order_id in purchase_order.order_line: + agreement_line_vals = self._prepare_agreement_line_vals( + order_id, agreement) + agreement_line_obj.create(agreement_line_vals) + if len(agreements) == 1: + view = self.env.ref( + 'purchase_recurring_orders.' + 'purchase_recurring_agreement_view_form') + return { + 'type': 'ir.actions.act_window', + 'view_mode': 'form', + 'res_model': 'purchase.recurring.agreement', + 'views': [(view.id, 'form')], + 'view_id': view.id, + 'target': 'new', + 'res_id': agreement[0].id, + 'nodestroy': True, + } + return True + + from_agreement = fields.Boolean( + string='From Agreement?', copy=False, + help='This field indicates if the purchase order comes from ' + 'an agreement.') + recurring_agreement_id = fields.Many2one('purchase.recurring.agreement', + string='Agreement Reference', + help="this indicates the Purchase " + "Agreement", + ondelete='restrict') + + def view_order(self): + """Returns the Corresponding Order""" + return { + 'view_type': 'form', + 'view_mode': 'form', + 'res_model': 'purchase.order', + 'context': self.env.context, + 'res_id': self[:1].id, + 'view_id': [self.env.ref('purchase.purchase_order_form').id], + 'type': 'ir.actions.act_window', + 'nodestroy': True + } diff --git a/purchase_recurring_orders/models/purchase_recurring_agreement.py b/purchase_recurring_orders/models/purchase_recurring_agreement.py new file mode 100644 index 000000000..529c2a630 --- /dev/null +++ b/purchase_recurring_orders/models/purchase_recurring_agreement.py @@ -0,0 +1,424 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from datetime import timedelta +from dateutil.relativedelta import relativedelta +from odoo import api, exceptions, fields, models, _ + + +class PurchaseRecurringAgreement(models.Model): + """Model for generating purchase recurring agreement""" + _name = 'purchase.recurring.agreement' + _inherit = 'mail.thread' + _description = "Purchase Recurring Agreement" + + @api.model + def _get_next_term_date(self, date, unit, interval): + """Returns the Next Term Date""" + if unit == 'days': + date = date + timedelta(days=interval) + elif unit == 'weeks': + date = date + timedelta(weeks=interval) + elif unit == 'months': + date = date + relativedelta(months=interval) + elif unit == 'years': + date = date + relativedelta(years=interval) + return date + + def _compute_next_expiration_date(self): + """Calculates the Next Expiration Date According to the Prolongation + Unit Chosen""" + for agreement in self: + if agreement.prolong == 'fixed': + agreement.next_expiration_date = agreement.end_date + elif agreement.prolong == 'unlimited': + now = fields.Date.from_string(fields.Datetime.today()) + date = self._get_next_term_date( + fields.Date.from_string(agreement.start_date), + agreement.prolong_unit, agreement.prolong_interval) + while date < now: + date = self._get_next_term_date( + date, agreement.prolong_unit, + agreement.prolong_interval) + agreement.next_expiration_date = date + else: + agreement.next_expiration_date = self._get_next_term_date( + fields.Datetime.from_string( + agreement.last_renovation_date or + agreement.start_date), + agreement.prolong_unit, agreement.prolong_interval) + + def _default_company_id(self): + """Returns the Current Company Id""" + company_model = self.env['res.company'] + company_id = company_model._company_default_get('purchase') + return company_model.browse(company_id.id) + + name = fields.Char( + string='Name', size=100, index=True, required=True, + help='Name that Helps to Identify the Agreement') + number = fields.Char( + string='Agreement Number', index=True, size=32, copy=False, + help="Number of Agreement. Keep Empty to Get the Number Assigned by a " + "Sequence.") + active = fields.Boolean( + string='Active', default=True, + help='Uncheck this Field, Quotas are not Generated') + partner_id = fields.Many2one('res.partner', string='Supplier', index=True, + change_default=True, required=True, + help="Supplier You are Making the " + "Agreement with") + company_id = fields.Many2one('res.company', string='Company', required=True, + help="Company that Signs the Agreement", + default=_default_company_id) + start_date = fields.Date( + string='Start Date', index=True, copy=False, + help="Beginning of the Agreement. Keep Empty to Use the Current Date") + prolong = fields.Selection( + selection=[('recurrent', 'Renewable Fixed Term'), + ('unlimited', 'Unlimited Term'), + ('fixed', 'Fixed Term')], + string='Prolongation', default='unlimited', + help="Sets the term of the agreement. 'Renewable fixed term': It sets " + "a fixed term, but with possibility of manual renew; 'Unlimited " + "term': Renew is made automatically; 'Fixed term': The term is " + "fixed and there is no possibility to renew.") + end_date = fields.Date( + string='End date', help="End Date of the Agreement") + prolong_interval = fields.Integer( + string='Interval', default=1, + help="Interval in time units to prolong the agreement until new " + "renewable (that is automatic for unlimited term, manual for " + "renewable fixed term).") + prolong_unit = fields.Selection( + selection=[('days', 'Days'), + ('weeks', 'Weeks'), + ('months', 'Months'), + ('years', 'Years')], + string='Interval Unit', default='years', + help='Time unit for the prolongation interval') + agreement_line_ids = fields.One2many('recurring.agreement.line', + inverse_name='recurring_agreement_id', + string='Agreement Lines') + order_ids = fields.One2many('purchase.order', copy=False, + inverse_name='recurring_agreement_id', + string='Orders', readonly=True) + renewal_ids = fields.One2many('purchase.agreement.renewal', copy=False, + inverse_name='recurring_agreement_id', + string='Renewal Lines', + readonly=True) + last_renovation_date = fields.Datetime( + string='Last Renovation Date', + help="Last date when agreement was renewed (same as start date if not " + "renewed)") + next_expiration_date = fields.Datetime( + compute="_compute_next_expiration_date", + help="Date when agreement will expired ", + string='Next Expiration Date') + state = fields.Selection( + selection=[('empty', 'Without Orders'), + ('first', 'First Order Created'), + ('orders', 'With Orders')], + string='State', help="Indicates the state of recurring agreement", + readonly=True, default='empty') + renewal_state = fields.Selection( + selection=[('not_renewed', 'Agreement not Renewed'), + ('renewed', 'Agreement Renewed')], + string='Renewal State', + help="Renewal Status of the Recurring agreement", readonly=True, + default='not_renewed') + notes = fields.Text('Notes', help="Notes regarding Renewal agreement") + order_count = fields.Integer(compute='_compute_order_count', + help="Indicates the No. of Orders Generated " + "with this Agreement") + + _sql_constraints = [ + ('number_uniq', 'unique(number)', 'Agreement Number Must be Unique !'), + ] + + def get_orders(self): + """Returns All Orders Generated from the Agreement""" + self.ensure_one() + return { + 'type': 'ir.actions.act_window', + 'name': 'Orders', + 'views': [[False, 'list'], [False, 'form']], + 'res_model': 'purchase.order', + 'domain': [('recurring_agreement_id', '=', self.id)], + 'context': "{'create': False}" + } + + def _compute_order_count(self): + """Finds the count of orders generated from the Agreement""" + for record in self: + record.order_count = self.env['purchase.order'].search_count( + [('recurring_agreement_id', '=', self.id)]) + + @api.constrains('start_date', 'end_date') + def _check_dates(self): + """Method for ensuring start date will be always less than + or equal to end date""" + for record in self: + if record.end_date and record.end_date < record.start_date: + raise exceptions.Warning( + _('Agreement End Date must be Greater than Start Date')) + + @api.model + def create(self, vals): + """Function that supering create function""" + if not vals.get('start_date'): + vals['start_date'] = fields.Datetime.today() + if not vals.get('number'): + vals['number'] = self.env['ir.sequence'].get( + 'purchase.r_o.agreement.sequence') + return super().create(vals) + + def write(self, vals): + """Function that supering write function""" + value = super().write(vals) + if (any(vals.get(rec) is not None for rec in + ['active', 'number', 'agreement_line_ids', 'prolong', + 'end_date', + 'prolong_interval', 'prolong_unit', 'partner_id'])): + self.unlink_orders(fields.Datetime.today()) + return value + + @api.returns('self', lambda value: value.id) + def copy(self, default=None): + default = dict(default or {}) + if 'name' not in default: + default['name'] = _("%s (Copy)") % self.name + return super().copy(default=default) + + def unlink(self): + """Function that supering unlink function which will unlink Self and + the Current record""" + for agreement in self: + if any(agreement.mapped('order_ids')): + raise exceptions.Warning( + _('You Cannot Remove Agreements with Confirmed Orders!')) + self.unlink_orders(fields.Datetime.from_string(fields.Datetime.today())) + return models.Model.unlink(self) + + @api.onchange('start_date') + def onchange_start_date(self, start_date=False): + """Method for updating last renovation date""" + if not start_date: + return {} + result = {'value': {'last_renovation_date': start_date}} + return result + + @api.model + def revise_agreements_expirations_planned(self): + """Method for changing the prolong as unlimited""" + for agreement in self.search([('prolong', '=', 'unlimited')]): + if agreement.next_expiration_date <= fields.Datetime.today(): + agreement.write({'prolong': 'unlimited'}) + return True + + @api.model + def _prepare_purchase_order_vals(self, agreement, date): + """Creates purchase order values""" + # Order Values + order_vals = {'date_order': date, 'origin': agreement.number, + 'partner_id': agreement.partner_id.id, + 'state': 'draft', 'company_id': agreement.company_id.id, + 'from_agreement': True, + 'recurring_agreement_id': agreement.id, + 'date_planned': date, + 'fiscal_position_id': self.env[ + 'account.fiscal.position'].with_context( + company_id=agreement.company_id.id). + _get_fiscal_position(agreement.partner_id), + 'payment_term_id': agreement.partner_id. + property_supplier_payment_term_id.id, + 'currency_id': agreement.partner_id. + property_purchase_currency_id.id or + self.env.user.company_id.currency_id.id, + 'user_id': agreement.partner_id.user_id.id} + return order_vals + + @api.model + def _prepare_purchase_order_line_vals(self, agreement_line_ids, order): + """Returns the Purchase Order Line Values as a Dictionary Which can be + Used While creating the Purchase Order""" + product_lang = agreement_line_ids.product_id.with_context({ + 'lang': order.partner_id.lang, + 'partner_id': order.partner_id.id, + }) + fpos = order.fiscal_position_id or order.fiscal_position_id._get_fiscal_position( + order.partner_id) + # filter taxes by company + product_taxes = agreement_line_ids.product_id.supplier_taxes_id._filter_taxes_by_company( + self.company_id) + taxes = fpos.map_tax(product_taxes) + # Order Line Values as a Dictionary + order_line_vals = { + 'order_id': order.id, + 'product_id': agreement_line_ids.product_id.id, + 'product_qty': agreement_line_ids.quantity, + 'date_planned': order.date_planned, + 'price_unit': agreement_line_ids.product_id. + _get_tax_included_unit_price( + order.company_id, + order.currency_id, + order.date_order, + 'purchase', + fiscal_position=order.fiscal_position_id, + product_uom=agreement_line_ids.product_id.uom_po_id), + 'product_uom': agreement_line_ids.product_id.uom_po_id.id or + agreement_line_ids.product_id.uom_id.id, + 'name': product_lang.display_name, + 'taxes_id': [x.id for x in taxes], + } + # product price changed if specific price is added + if agreement_line_ids.specific_price: + order_line_vals['price_unit'] = agreement_line_ids.specific_price + order_line_vals['taxes_id'] = [ + (6, 0, tuple(order_line_vals['taxes_id']))] + # product price changed if specific price is added + if agreement_line_ids.additional_description: + order_line_vals['name'] += " %s" % ( + agreement_line_ids.additional_description) + return order_line_vals + + def create_order(self, date, agreement_lines): + """Create Purchase Order from Recurring Agreement """ + self.ensure_one() + order_line_obj = self.env['purchase.order.line'].with_context( + company_id=self.company_id.id) + order_vals = self._prepare_purchase_order_vals(self, date) + order = self.env['purchase.order'].create(order_vals) + for agreement_line in agreement_lines: + # Create Purchase Order Line Values + order_line_vals = self._prepare_purchase_order_line_vals( + agreement_line, order) + order_line_obj.create(order_line_vals) + agreement_lines.write({'last_order_date': fields.Datetime.today()}) + if self.state != 'orders': + self.state = 'orders' + return order + + def _get_next_order_date(self, line, start_date): + """Return The date of Next Purchase order generated from the + Agreement""" + self.ensure_one() + next_date = fields.Datetime.from_string(self.start_date) + while next_date <= start_date: + next_date = self._get_next_term_date( + next_date, line.ordering_unit, line.ordering_interval) + return next_date + + def generate_agreement_orders(self, start_date, end_date): + """Method for generating agreement orders""" + self.ensure_one() + if not self.active: + return + lines_to_order = {} + # Get next expiration date + exp_date = fields.Datetime.from_string(self.next_expiration_date) + if exp_date < end_date and self.prolong != 'unlimited': + end_date = exp_date + for line in self.agreement_line_ids: + if not line.active_chk: + continue + # Get Date of Next Order + next_order_date = self._get_next_order_date(line, start_date) + while next_order_date <= end_date: + if not lines_to_order.get(next_order_date): + lines_to_order[next_order_date] = self.env[ + 'recurring.agreement.line'] + lines_to_order[next_order_date] |= line + next_order_date = self._get_next_order_date( + line, next_order_date) + dates = lines_to_order.keys() + sorted(dates) + for date in dates: + order = self.order_ids.filtered( + lambda x: ( + fields.Date.to_string( + fields.Datetime.from_string(x.date_order)) == + fields.Date.to_string(date))) + if not order: + self.create_order( + fields.Datetime.to_string(date), lines_to_order[date]) + + def generate_initial_order(self): + """This will generate the Initial purchase Order from the Purchase + Agreement""" + self.ensure_one() + agreement_lines = self.mapped('agreement_line_ids').filtered( + 'active_chk') + order = self.create_order(self.start_date, agreement_lines) + self.write({'state': 'first'}) + order.button_confirm() + return { + 'domain': "[('id', '=', %s)]" % order.id, + 'view_type': 'form', + 'view_mode': 'form', + 'res_model': 'purchase.order', + 'context': self.env.context, + 'res_id': order.id, + 'view_id': [self.env.ref('purchase.purchase_order_form').id], + 'type': 'ir.actions.act_window', + 'nodestroy': True + } + + @api.model + def generate_next_orders_planned(self, years=1, start_date=None): + """Method for generating the planned orders""" + if start_date: + start_date = fields.Datetime.from_string(start_date) + self.search([]).generate_next_orders( + years=years, start_date=start_date) + + def generate_next_year_orders(self): + """This will Generate Orders for Next year""" + return self.generate_next_orders(years=1) + + def generate_next_orders(self, years=1, start_date=None): + if not start_date: + start_date = fields.Datetime.from_string(fields.Date.today()) + end_date = start_date + relativedelta(years=years) + for agreement in self: + agreement.generate_agreement_orders(start_date, end_date) + return True + + @api.model + def confirm_current_orders_planned(self): + """This will Confirm All Orders satisfying the Domain""" + tomorrow = fields.Date.to_string( + fields.Datetime.from_string(fields.Datetime.today()) + timedelta( + days=1)) + orders = self.env['purchase.order'].search([ + ('recurring_agreement_id', '!=', False), + ('state', 'in', ('draft', 'sent')), + ('date_order', '<', tomorrow) + ]) + for order in orders: + order.signal_workflow('order_confirm') + + def unlink_orders(self, start_date): + """ Remove the relation between ``self`` and the related record.""" + orders = self.mapped('order_ids').filtered( + lambda x: (x.state in ('draft', 'sent') and + x.date_order >= start_date)) + orders.unlink() diff --git a/purchase_recurring_orders/models/recurring_agreement_line.py b/purchase_recurring_orders/models/recurring_agreement_line.py new file mode 100644 index 000000000..278e97022 --- /dev/null +++ b/purchase_recurring_orders/models/recurring_agreement_line.py @@ -0,0 +1,91 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Gayathri V (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import api, fields, models +from odoo.addons.base.models.decimal_precision import dp + + +class RecurringAgreementLine(models.Model): + """Model generating purchase recurring agreement line""" + _name = 'recurring.agreement.line' + _description = 'Recurring Agreement Line' + + active_chk = fields.Boolean( + string='Active', default=True, + help='Unchecking this field, this quota is not generated') + recurring_agreement_id = fields.Many2one( + 'purchase.recurring.agreement', + string='Agreement Reference', + help="The Corresponding Purchase Order Agreement", + ondelete='cascade') + product_id = fields.Many2one('product.product', string='Product', + ondelete='restrict', + required=True) + uom_id = fields.Many2one(related='product_id.product_tmpl_id.uom_id', + help="UOM of the product", string="Uom") + + name = fields.Char( + related="product_id.name", string='Description', + help="Description of the Product") + additional_description = fields.Char( + string='Description', size=30, + help='Additional description that will be added to the product ' + 'description on orders.') + quantity = fields.Float( + string='Quantity', required=True, help='Quantity of the Product', + default=1.0) + ordering_interval = fields.Integer( + string='Interval', required=True, default=1, + help="Interval in time units for making an order of this product") + ordering_unit = fields.Selection( + selection=[('days', 'Days'), + ('weeks', 'Weeks'), + ('months', 'Months'), + ('years', 'Years')], + string='Interval Unit', required=True, + help="It indicated the Recurring Time Unit", default='months') + last_order_date = fields.Datetime( + string='Last Order', help='Date of the last Purchase order generated') + specific_price = fields.Float( + string='Specific Price', + digits_compute=dp.get_precision('Purchase Price'), + help='Specific price for this product. Keep empty to use the list ' + 'price while generating order') + list_price = fields.Float( + related='product_id.list_price', string="List Price", readonly=True, + help='Price of product in purchase order lines') + + _sql_constraints = [ + ('line_qty_zero', 'CHECK (quantity > 0)', + 'All product quantities must be greater than 0.\n'), + ('line_interval_zero', 'CHECK (ordering_interval > 0)', + 'All ordering intervals must be greater than 0.\n'), + ] + + @api.onchange('product_id') + def onchange_product_id(self, product_id=False): + """For getting product name""" + result = {} + if product_id: + product = self.env['product.product'].browse(product_id) + if product: + result['value'] = {'name': product['name']} + return result diff --git a/purchase_recurring_orders/security/ir.model.access.csv b/purchase_recurring_orders/security/ir.model.access.csv new file mode 100644 index 000000000..a52b83b4e --- /dev/null +++ b/purchase_recurring_orders/security/ir.model.access.csv @@ -0,0 +1,5 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_purchase_recurring_agreement,purchase.recurring.agreement,model_purchase_recurring_agreement,purchase.group_purchase_user,1,1,1,1 +access_recurring_agreement_line,recurring.agreement.line,model_recurring_agreement_line,purchase.group_purchase_user,1,1,1,1 +access_purchase_agreement_renewal,purchase.agreement.renewal,model_purchase_agreement_renewal,purchase.group_purchase_user,1,1,1,1 +access_agreement_renewal,agreement.renewal,model_agreement_renewal,purchase.group_purchase_user,1,1,1, diff --git a/purchase_recurring_orders/static/description/assets/cybro-icon.png b/purchase_recurring_orders/static/description/assets/cybro-icon.png new file mode 100644 index 000000000..06e73e11d Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/cybro-icon.png differ diff --git a/purchase_recurring_orders/static/description/assets/cybro-odoo.png b/purchase_recurring_orders/static/description/assets/cybro-odoo.png new file mode 100644 index 000000000..ed02e07a4 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/cybro-odoo.png differ diff --git a/purchase_recurring_orders/static/description/assets/h2.png b/purchase_recurring_orders/static/description/assets/h2.png new file mode 100644 index 000000000..0bfc4707d Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/h2.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/arrows-repeat.svg b/purchase_recurring_orders/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/banner-1.png b/purchase_recurring_orders/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/banner-1.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/banner-2.svg b/purchase_recurring_orders/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/banner-bg.png b/purchase_recurring_orders/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/banner-bg.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/banner-bg.svg b/purchase_recurring_orders/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/banner-call.svg b/purchase_recurring_orders/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/banner-mail.svg b/purchase_recurring_orders/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/banner-pattern.svg b/purchase_recurring_orders/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/banner-promo.svg b/purchase_recurring_orders/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/brand-pair.svg b/purchase_recurring_orders/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/capture (1).png b/purchase_recurring_orders/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/capture (1).png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/check.png b/purchase_recurring_orders/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/check.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/chevron.png b/purchase_recurring_orders/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/chevron.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/close-icon.svg b/purchase_recurring_orders/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/cogs.png b/purchase_recurring_orders/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/cogs.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/collabarate-icon.svg b/purchase_recurring_orders/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/consultation.png b/purchase_recurring_orders/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/consultation.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/cybro-logo.png b/purchase_recurring_orders/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/cybro-logo.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/down.svg b/purchase_recurring_orders/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/purchase_recurring_orders/static/description/assets/icons/ecom-black.png b/purchase_recurring_orders/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/ecom-black.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/education-black.png b/purchase_recurring_orders/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/education-black.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/faq.png b/purchase_recurring_orders/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/faq.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/feature-icon.svg b/purchase_recurring_orders/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/feature.png b/purchase_recurring_orders/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/feature.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/gear.svg b/purchase_recurring_orders/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/hero.gif b/purchase_recurring_orders/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..7a8ad7016 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/hero.gif differ diff --git a/purchase_recurring_orders/static/description/assets/icons/hire-odoo.svg b/purchase_recurring_orders/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/hotel-black.png b/purchase_recurring_orders/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/hotel-black.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/img.png b/purchase_recurring_orders/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/img.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/license.png b/purchase_recurring_orders/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/license.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/life-ring-icon.svg b/purchase_recurring_orders/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/lifebuoy.png b/purchase_recurring_orders/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/lifebuoy.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/mail.svg b/purchase_recurring_orders/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/manufacturing-black.png b/purchase_recurring_orders/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/manufacturing-black.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/notes.png b/purchase_recurring_orders/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/notes.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/notification icon.svg b/purchase_recurring_orders/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/odoo-consultancy.svg b/purchase_recurring_orders/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/odoo-licencing.svg b/purchase_recurring_orders/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/odoo-logo.png b/purchase_recurring_orders/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/odoo-logo.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/patter.svg b/purchase_recurring_orders/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/pattern1.png b/purchase_recurring_orders/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/pattern1.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/photo-capture.png b/purchase_recurring_orders/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/photo-capture.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/pos-black.png b/purchase_recurring_orders/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/pos-black.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/puzzle-piece-icon.svg b/purchase_recurring_orders/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/puzzle.png b/purchase_recurring_orders/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/puzzle.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/replace-icon.svg b/purchase_recurring_orders/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/restaurant-black.png b/purchase_recurring_orders/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/restaurant-black.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/screenshot-main.png b/purchase_recurring_orders/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/screenshot-main.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/screenshot.png b/purchase_recurring_orders/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/screenshot.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/service-black.png b/purchase_recurring_orders/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/service-black.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/skype-fill.svg b/purchase_recurring_orders/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/skype.png b/purchase_recurring_orders/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/skype.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/skype.svg b/purchase_recurring_orders/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/star-1.svg b/purchase_recurring_orders/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/star-2.svg b/purchase_recurring_orders/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/support.png b/purchase_recurring_orders/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/support.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/test-1 - Copy.png b/purchase_recurring_orders/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/test-1 - Copy.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/test-1.png b/purchase_recurring_orders/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/test-1.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/test-2.png b/purchase_recurring_orders/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/test-2.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/trading-black.png b/purchase_recurring_orders/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/trading-black.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/training.png b/purchase_recurring_orders/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/training.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/translate.svg b/purchase_recurring_orders/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/update.png b/purchase_recurring_orders/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/update.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/user.png b/purchase_recurring_orders/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/user.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/video.png b/purchase_recurring_orders/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/video.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/whatsapp.png b/purchase_recurring_orders/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/whatsapp.png differ diff --git a/purchase_recurring_orders/static/description/assets/icons/wrench-icon.svg b/purchase_recurring_orders/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/icons/wrench.png b/purchase_recurring_orders/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/icons/wrench.png differ diff --git a/purchase_recurring_orders/static/description/assets/misc/Cybrosys R.png b/purchase_recurring_orders/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/misc/Cybrosys R.png differ diff --git a/purchase_recurring_orders/static/description/assets/misc/email.svg b/purchase_recurring_orders/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/misc/phone.svg b/purchase_recurring_orders/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/purchase_recurring_orders/static/description/assets/misc/star (1) 2.svg b/purchase_recurring_orders/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/misc/support (1) 1.svg b/purchase_recurring_orders/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/misc/support-email.svg b/purchase_recurring_orders/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/misc/tick-mark.svg b/purchase_recurring_orders/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/misc/whatsapp 1.svg b/purchase_recurring_orders/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/misc/whatsapp.svg b/purchase_recurring_orders/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/purchase_recurring_orders/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/purchase_recurring_orders/static/description/assets/modules/1.gif b/purchase_recurring_orders/static/description/assets/modules/1.gif new file mode 100644 index 000000000..ae3a880a2 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/1.gif differ diff --git a/purchase_recurring_orders/static/description/assets/modules/1.jpg b/purchase_recurring_orders/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..08bbafeb6 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/1.jpg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/2.gif b/purchase_recurring_orders/static/description/assets/modules/2.gif new file mode 100644 index 000000000..d19e2b352 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/2.gif differ diff --git a/purchase_recurring_orders/static/description/assets/modules/2.jpg b/purchase_recurring_orders/static/description/assets/modules/2.jpg new file mode 100644 index 000000000..39006b41a Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/2.jpg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/2.png b/purchase_recurring_orders/static/description/assets/modules/2.png new file mode 100644 index 000000000..a1209a01f Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/2.png differ diff --git a/purchase_recurring_orders/static/description/assets/modules/3.jpg b/purchase_recurring_orders/static/description/assets/modules/3.jpg new file mode 100644 index 000000000..3d171226b Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/3.jpg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/3.png b/purchase_recurring_orders/static/description/assets/modules/3.png new file mode 100644 index 000000000..8513873ea Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/3.png differ diff --git a/purchase_recurring_orders/static/description/assets/modules/4.jpg b/purchase_recurring_orders/static/description/assets/modules/4.jpg new file mode 100644 index 000000000..1f3f2e27f Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/4.jpg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/4.png b/purchase_recurring_orders/static/description/assets/modules/4.png new file mode 100644 index 000000000..3bedf7981 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/4.png differ diff --git a/purchase_recurring_orders/static/description/assets/modules/5.jpg b/purchase_recurring_orders/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..0db717519 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/5.jpg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/5.png b/purchase_recurring_orders/static/description/assets/modules/5.png new file mode 100644 index 000000000..0e311ca87 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/5.png differ diff --git a/purchase_recurring_orders/static/description/assets/modules/6.jpg b/purchase_recurring_orders/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/6.jpg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/courier_management.jpg b/purchase_recurring_orders/static/description/assets/modules/courier_management.jpg new file mode 100644 index 000000000..3e4a22c32 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/courier_management.jpg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/cw_sale.png b/purchase_recurring_orders/static/description/assets/modules/cw_sale.png new file mode 100644 index 000000000..1b75c62d5 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/cw_sale.png differ diff --git a/purchase_recurring_orders/static/description/assets/modules/cw_stock.png b/purchase_recurring_orders/static/description/assets/modules/cw_stock.png new file mode 100644 index 000000000..62af09ec6 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/cw_stock.png differ diff --git a/purchase_recurring_orders/static/description/assets/modules/delivery_split.jpg b/purchase_recurring_orders/static/description/assets/modules/delivery_split.jpg new file mode 100644 index 000000000..76724ebda Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/delivery_split.jpg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/module_image (1).jpeg b/purchase_recurring_orders/static/description/assets/modules/module_image (1).jpeg new file mode 100644 index 000000000..5ae24843e Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/module_image (1).jpeg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/module_image (1).png b/purchase_recurring_orders/static/description/assets/modules/module_image (1).png new file mode 100644 index 000000000..0dea4f332 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/module_image (1).png differ diff --git a/purchase_recurring_orders/static/description/assets/modules/module_image (2).jpeg b/purchase_recurring_orders/static/description/assets/modules/module_image (2).jpeg new file mode 100644 index 000000000..c4c4fdb15 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/module_image (2).jpeg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/module_image (2).png b/purchase_recurring_orders/static/description/assets/modules/module_image (2).png new file mode 100644 index 000000000..a5dc79613 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/module_image (2).png differ diff --git a/purchase_recurring_orders/static/description/assets/modules/module_image (3).jpg b/purchase_recurring_orders/static/description/assets/modules/module_image (3).jpg new file mode 100644 index 000000000..191937370 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/module_image (3).jpg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/module_image (4).jpeg b/purchase_recurring_orders/static/description/assets/modules/module_image (4).jpeg new file mode 100644 index 000000000..0e2040762 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/module_image (4).jpeg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/module_image (5).jpeg b/purchase_recurring_orders/static/description/assets/modules/module_image (5).jpeg new file mode 100644 index 000000000..0ed5f6b0b Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/module_image (5).jpeg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/module_image-1.jpeg b/purchase_recurring_orders/static/description/assets/modules/module_image-1.jpeg new file mode 100644 index 000000000..31f066e9c Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/module_image-1.jpeg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/module_image.jpeg b/purchase_recurring_orders/static/description/assets/modules/module_image.jpeg new file mode 100644 index 000000000..0cbac311c Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/module_image.jpeg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/module_image.png b/purchase_recurring_orders/static/description/assets/modules/module_image.png new file mode 100644 index 000000000..612be4b77 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/module_image.png differ diff --git a/purchase_recurring_orders/static/description/assets/modules/multi_product_return_from_website.jpg b/purchase_recurring_orders/static/description/assets/modules/multi_product_return_from_website.jpg new file mode 100644 index 000000000..7f2cc2ab5 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/multi_product_return_from_website.jpg differ diff --git a/purchase_recurring_orders/static/description/assets/modules/purchase_history_of_product.jpg b/purchase_recurring_orders/static/description/assets/modules/purchase_history_of_product.jpg new file mode 100644 index 000000000..dab7b184c Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/modules/purchase_history_of_product.jpg differ diff --git a/purchase_recurring_orders/static/description/assets/screenshots/1.png b/purchase_recurring_orders/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..b09aadcef Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/screenshots/1.png differ diff --git a/purchase_recurring_orders/static/description/assets/screenshots/2.png b/purchase_recurring_orders/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..cc304003a Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/screenshots/2.png differ diff --git a/purchase_recurring_orders/static/description/assets/screenshots/3.png b/purchase_recurring_orders/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..a152ad4fa Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/screenshots/3.png differ diff --git a/purchase_recurring_orders/static/description/assets/screenshots/4.png b/purchase_recurring_orders/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..b24dab84c Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/screenshots/4.png differ diff --git a/purchase_recurring_orders/static/description/assets/screenshots/5.png b/purchase_recurring_orders/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..dfe2cf632 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/screenshots/5.png differ diff --git a/purchase_recurring_orders/static/description/assets/screenshots/6.png b/purchase_recurring_orders/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..0d99623fb Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/screenshots/6.png differ diff --git a/purchase_recurring_orders/static/description/assets/screenshots/7.png b/purchase_recurring_orders/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..3b3705919 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/screenshots/7.png differ diff --git a/purchase_recurring_orders/static/description/assets/screenshots/8.png b/purchase_recurring_orders/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..862d2ba44 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/screenshots/8.png differ diff --git a/purchase_recurring_orders/static/description/assets/screenshots/9.png b/purchase_recurring_orders/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..bce68d6ac Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/screenshots/9.png differ diff --git a/purchase_recurring_orders/static/description/assets/screenshots/hero.gif b/purchase_recurring_orders/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..d56315a3c Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/screenshots/hero.gif differ diff --git a/purchase_recurring_orders/static/description/assets/y18.jpg b/purchase_recurring_orders/static/description/assets/y18.jpg new file mode 100644 index 000000000..eea1714f2 Binary files /dev/null and b/purchase_recurring_orders/static/description/assets/y18.jpg differ diff --git a/purchase_recurring_orders/static/description/banner.png b/purchase_recurring_orders/static/description/banner.png new file mode 100644 index 000000000..7c283bc9a Binary files /dev/null and b/purchase_recurring_orders/static/description/banner.png differ diff --git a/purchase_recurring_orders/static/description/icon.png b/purchase_recurring_orders/static/description/icon.png new file mode 100644 index 000000000..1870cdade Binary files /dev/null and b/purchase_recurring_orders/static/description/icon.png differ diff --git a/purchase_recurring_orders/static/description/index.html b/purchase_recurring_orders/static/description/index.html new file mode 100644 index 000000000..2c063e8fc --- /dev/null +++ b/purchase_recurring_orders/static/description/index.html @@ -0,0 +1,1235 @@ + + + + + + Purchase Recurring Orders + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+
+

+ Create Recurring Orders for Purchases Orders. +

+

Purchase Recurring Orders +

+
+
+ +
+ +
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+

Key + Highlights

+
+
+
+
+ +
+
+ Creates Recurring Orders for Purchase. +
+
+
+
+
+
+ +
+
+ Recurring Order Agreements. +
+
+
+
+
+
+ +
+
+ Create Next Year Orders at one click. +
+
+
+
+
+
+ +
+
+ Scheduled action for creating Recurring + Orders. +
+
+
+
+
+ +
+
+
+ University Education Management +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Recurring Order + + Agreements. + +

+
+
+

+ Menu for viewing and creating + Recurring + Order Agreements. +

+
+
+
+ +
+
+
+
+
+
+
+
+
+

+ Products in Agreement + + Order Line +

+
+
+

+ Create new recurring order + agreement by filling the details + in the form and add the products + in Agreement Order Line. Click + on the Generate Initial Order + button for generating the first + order + +

+
+
+
+ +
+
+
+
+
+
+
+
+
+

+ Purchase + + Order +

+
+
+

+ First Generated + according to the details added + in the Recurring purchase + agreement. + +

+
+
+
+ +
+
+
+
+
+
+
+
+
+

+ All + + Order + +

+
+
+

+ We can see all orders created + from the recurring purchase + agreement from the smart button + which shows the number of + orders. + +

+
+
+
+ +
+
+
+
+
+
+
+
+
+

+ It is possible to create next year orders at + + one click. +

+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+

+ The Number of Orders are + + increased. +
+
+ +
+
+

+
+
+
+
+
+
+

+ Initial and + + Next year Orders. + +

+
+
+

+ All orders generated + including Initial and Next + year Orders. +

+
+
+
+ +
+
+
+
+
+
+
+
+
+

+ If prolongation type changed to Renewable then a button appears for Renew Agreement. + +

+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+

+ + Scheduled Action for generating Recurring Orders for Next Year. + +

+
+
+
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+
+ +
+

+ Generates Recurring Orders + for + purchase orders.

+
+ +
+
+
+
+
+
+ +
+

+ Generates Recurring Orders + Agreements for + purchase.

+
+
+
+
+
+
+
+ +
+

+ It is possible to create + next + year orders at one + click.

+
+
+
+
+
+
+
+ +
+

+ Can Automatically generate + recurring orders on + scheduled + time.

+
+
+
+
+
+
+
+
+
+
+
+ +
+ +
+ +
+

+ This module allows users to automate the creation of recurring purchase orders in Odoo. It simplifies the process of reordering goods or services at regular intervals, reducing manual effort. +

+
+
+ +
+ +
+

+ You can configure recurring purchase orders by creating a purchase order template and specifying the recurrence interval (e.g., weekly, monthly). The module automatically generates purchase orders based on the defined schedule. +

+
+
+ +
+ +
+

+ Yes, the module supports flexible scheduling. You can define custom recurrence rules, such as specific days of the week, months, or any other interval that suits your business needs. +

+
+
+ +
+ +
+

+ Yes, you can edit or deactivate a recurring order template at any time. Changes will be reflected in future purchase orders, and deactivating a template will stop the creation of new recurring orders. +

+
+
+
+ +
+
+
+
+
+
+ +
+
+

+ Latest Release 18.0.1.0.0 +

+ + 15th January, 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + +
+

+ Related Products +

+ +
+ + + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/purchase_recurring_orders/views/purchase_order_views.xml b/purchase_recurring_orders/views/purchase_order_views.xml new file mode 100644 index 000000000..67300b95a --- /dev/null +++ b/purchase_recurring_orders/views/purchase_order_views.xml @@ -0,0 +1,27 @@ + + + + + purchase.order.inherit.purchase.recurring.orders + purchase.order + + + + + + + purchase.order.inherit.purchase.recurring.orders + purchase.order + + + + + + + + + diff --git a/purchase_recurring_orders/views/recurring_orders_views.xml b/purchase_recurring_orders/views/recurring_orders_views.xml new file mode 100644 index 000000000..90936518d --- /dev/null +++ b/purchase_recurring_orders/views/recurring_orders_views.xml @@ -0,0 +1,178 @@ + + + + + purchase.agreement.renewal.view.tree + purchase.agreement.renewal + list + + + + + + + + + + + purchase.recurring.agreement.view.list + purchase.recurring.agreement + list + + + + + + + + + + + + + + + + purchase.recurring.agreement.view.form + purchase.recurring.agreement + 6 + +
+
+
+ +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + purchase.recurring.agreement.view.search + purchase.recurring.agreement + + + + + + + + + + + Recurring Order Agreement + purchase.recurring.agreement + list,form + +

+ Click to set a new agreement. +

+

+ Agreements are the way you define the commercial relation with + your customers which specify certain + products/services that you are providing them which requires a + recurring order. +

+
+
+ + + diff --git a/purchase_recurring_orders/views/res_partner_views.xml b/purchase_recurring_orders/views/res_partner_views.xml new file mode 100644 index 000000000..f2da26423 --- /dev/null +++ b/purchase_recurring_orders/views/res_partner_views.xml @@ -0,0 +1,27 @@ + + + + + ir.actions.act_window + Purchase Recurring Agreement + purchase.recurring.agreement + list,form + {'search_default_partner_id': active_id} + + + + res.partner.inherit.purchase.recurring.orders + res.partner + + + + +