Skip to content

Commit

Permalink
temp rebasing PR 690 (4074e6f)
Browse files Browse the repository at this point in the history
  • Loading branch information
roboadhoc committed Oct 28, 2023
2 parents 484bb44 + 4074e6f commit e64b6b8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 20 deletions.
6 changes: 6 additions & 0 deletions sale_exception_credit_limit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,9 @@
# directory
##############################################################################
from . import models
from odoo import api, SUPERUSER_ID


def _post_init_credit(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
env['res.company'].search([]).write({'account_use_credit_limit':True})
2 changes: 1 addition & 1 deletion sale_exception_credit_limit/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
'data': [
'security/sale_exception_credit_limit_security.xml',
'data/exception_rule_data.xml',
'data/config_company_settings.xml',
'views/res_partner_views.xml',
'views/res_config_settings_views.xml',
],
'demo': [
'demo/res_partner_demo.xml'
],
'post_init_hook': '_post_init_credit',
'installable': True,
}
4 changes: 0 additions & 4 deletions sale_exception_credit_limit/data/config_company_settings.xml

This file was deleted.

1 change: 0 additions & 1 deletion sale_exception_credit_limit/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@
##############################################################################
from . import sale_order
from . import res_partner
from . import res_company
13 changes: 0 additions & 13 deletions sale_exception_credit_limit/models/res_company.py

This file was deleted.

1 change: 0 additions & 1 deletion sale_exception_credit_limit/models/res_partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
##############################################################################
from odoo import models, fields, api
from odoo.exceptions import ValidationError
import json



Expand Down

0 comments on commit e64b6b8

Please sign in to comment.