Browse Source

[CHNG] Removed Depends decorator

pull/30/merge
SHEREEF PT 8 years ago
parent
commit
90083cf8f4
  1. 4
      account_limit/__manifest__.py
  2. 1
      account_limit/models/account.py
  3. 4
      account_limit/views/account_credit_limit_view.xml

4
account_limit/__manifest__.py

@ -24,8 +24,8 @@
{
'name': 'Account Credit Limit',
'version': '10.0.1.0',
'summary': """Generate warning message when credit limit of an account is exceed.""",
'version': '10.0.2.0',
'summary': """Generate Warning Message When Credit Limit of an Account is Exceed.""",
'description': """Account credit limit is a handy plugin for Odoo Accounting module to set a Credit limit
for each Account. The module will bring new fields total Credit, Debit and Balance in Accounts tree view and
Account form view. The module also produce a warning message while making journal entries which will exceed

1
account_limit/models/account.py

@ -28,7 +28,6 @@ from odoo.exceptions import Warning
class AccountAccount(models.Model):
_inherit = 'account.account'
@api.depends('credit', 'debit', 'balance')
@api.multi
def get_credit_debit_balance(self):
print "get_credit_debit_balance", self

4
account_limit/views/account_credit_limit_view.xml

@ -21,8 +21,8 @@
<field name="inherit_id" ref="account.view_account_list"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
<field name="debit" invisible="True"/>
<field name="credit" invisible="True"/>
<field name="debit"/>
<field name="credit"/>
<field name="balance"/>
</xpath>
</field>

Loading…
Cancel
Save